Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » Arcus cosine(Arcus cosine of numerical value)
Arcus cosine [message #1803619] Tue, 05 March 2019 15:30 Go to next message
Philipp Ziegler is currently offline Philipp ZieglerFriend
Messages: 4
Registered: February 2019
Junior Member
Hello,
I am looking for a way to get the arcus cosine of a value.
How does the function look like? I tried the following functions:
ACOS; ARCOS; ACS; ARCCOS but nothing works.

Thank you for your answer.
Kind regards,
Philipp Ziegler
Re: Arcus cosine [message #1803620 is a reply to message #1803619] Tue, 05 March 2019 15:32 Go to previous messageGo to next message
Philipp Ziegler is currently offline Philipp ZieglerFriend
Messages: 4
Registered: February 2019
Junior Member
I need it to program structured text.
Re: Arcus cosine [message #1803630 is a reply to message #1803620] Tue, 05 March 2019 18:01 Go to previous messageGo to next message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 907
Registered: January 2014
Senior Member
Hi,

in IEC 61131-3 there is a ACOS function defined for ANY_REAL (i.e., REAL and LREAL). If you have a different data-type you can use the convert functions defined in IEC 61131-3 (e.g., INT_TO_REAL).

Alois
Re: Arcus cosine [message #1803649 is a reply to message #1803630] Wed, 06 March 2019 08:39 Go to previous messageGo to next message
Philipp Ziegler is currently offline Philipp ZieglerFriend
Messages: 4
Registered: February 2019
Junior Member
okay, I solved it with iec 61131-3-function-blocks and with the editing of my own composite functionblock.
Re: Arcus cosine [message #1803652 is a reply to message #1803649] Wed, 06 March 2019 09:10 Go to previous message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 907
Registered: January 2014
Senior Member
It should work also in an ST algorithm. Would it be possible to have your use-case so that I can do some tests to fix if necesary.
Previous Topic:MQTT
Next Topic:Building FORTE with open62541
Goto Forum:
  


Current Time: Fri Nov 15 15:44:54 GMT 2019

Powered by FUDForum. Page generated in 0.02143 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top