show the entry list
STEP 7 Micro/WIN -- Creating S7 programs -- Calling blocks and functions
How do you reset the high-speed counters of the S7-200?
Using an S7-200 without twilight switch, how do you have shutters open at sunrise and close at sunset?
How do you count values over 16 bits with the S7-200?
How can you limit the pitch of jumps with S7-200?
How do you configure the positioning module EM253 so that the connected stepper motor can proceed in both directions?
How do you position a servo drive axis using the S7-200 pulse interface?
How do you create a bar display in TD 200 or TD 200C?
How can you optimize use of timers in STEP 7 Micro/WIN?
How do you determine the frequency of a pulse sequence and speeds?
How can you scale analog values with S7-200 in conjunction with CPU224XP and expansion modules EM 231, EM 232 and EM 235?
How do you convert a binary number into Gray code (or vice versa) in STEP 7 Micro/WIN?
How do you convert the number format DOUBLE INTEGER into BCD code (or vice versa) in STEP 7 Micro/WIN?
How do you form the absolute and negative values of numbers in STEP 7 Micro/WIN?
Why does the PID controller created by the instruction wizard sometimes not work?
What do you have to do in the SIMATIC S7-200 in order to edit part of the program once after restarting?
Which library with the inverse functions to the trigonometric functions (sine, cosine, tangent) is available for STEP 7-Micro/WIN?
Scaling the setpoint and actual values in the STEP 7 Micro/WIN V4 wizards for PID control loops
Positioning Wizard for PTO/PWM in STEP 7 Micro/WIN V4.0
How to implement a three step control with PID-loop in the S7-200 via STEP 7-Mirco/WIN?
Which library with the inverse functions to the trigonometric functions (sine, cosine, tangent) is available for STEP 7-Micro/WIN?
Part number:

Description  
The STEP 7 Micro/WIN standard library does include the trigonometric functions sine, cosine and tangent in floating point arithmetic. However, their inverse functions, the so-called arc functions, are not available in the standard library.

The arc functions - arc sine, arc cosine, arc tangent - are available for downloading at the end of this entry in the form of a STEP 7 Micro/WIN library.

Description of the "Arc functions" library


Fig. 1: Arc functions library in STEP 7 Micro/WIN

The arc sine function (ARCSIN)

The arc sine function is the inverse function of the sine function:

y = arcssin (x)  =  sin-1(x)


Fig. 2: ARCSIN
 
Parameter Data type Function
Input [REAL] Function value x: Angle specification in radian measure
Output [REAL] Function value y: Angle output in radian measure
Table 1: Parameters of ARCSIN

Converting from radians to degrees

Angle[radian] = (Angle[degree] * PI) / 180

The arc cosine function (ARCCOS)

The arc cosine function is the inverse function of the cosine function:

y = arccos (x) = cos-1(x)


Fig. 3: ARCCOS
 
Parameter Data type Function
Input [REAL] Function value x: Angle specification in radian measure
Output [REAL] Function value y: Angle output in radian measure
Table 2: Parameters of ARCCOS

Converting from degrees to radians

Angle[radian] = (Angle[degree] * PI) / 180

The arc tangent function (ARCTAN)

The arc tangent function is the inverse function of the tangent function:

y = arctan (x) = tan-1(x)


Fig. 4: ARCTAN
 
Parameter Data type Function
Input [REAL] Function value x: Angle specification in radian measure
Output [REAL] Function value y: Angle output in radian measure
Table 3: Parameters of ARCTAN

Converting from radians to degrees

Angle[radian] = (Angle[degree] * PI) / 180

The STEP 7 Micro/WIN library as archive file
Copy the "arcusfunctions.exe" file into a separate directory and then start the file with a double-click. The STEP 7 Micro/WIN library is then unpacked. You can then integrate the library, which can be used in version V3.2.4.27 and higher of STEP 7 Micro/WIN, into your S7-200 project.

Notes

  • Information about inserting libraries in STEP 7 Micro/WIN is available in 
    Entry ID: 16689345

arcusfunctions.exe ( 36 KB )  

Addition Keywords
Arc tangent, Arc cosine, Arc sine, Arc function

 Entry ID:19308841   Date:2012-05-21 
I regard this article....as helpfulas not helpful                                 
mySupport
My Documentation Manager 
Newsletter 
CAx-Download-Manager 
Support Request
To this entry
Print
Create PDF 
Send to a friend
QuickLinks
Compatibility tool 
Help
Online Help
Guided Tour