Siemens SINUMERIK 840Di sl Function Manual page 23

Synchronized actions, ncu system software
Hide thumbs Also See for SINUMERIK 840Di sl:
Table of Contents

Advertisement

Data type:
Within an expression in the synchronized actions only the main-run variables of a data type
may be linked logically. However, in order to process various types of data, you can use the
conversion routines provided for type matching (SW 5.2, see conversion routines). In
contrast to full expression in the NC language, the calculation is performed in the data type
of the main run variables.
... DO $R10 = $AC_PARAM[0]
... DO $R10 = $AC_MARKER[0]
The following examples of real-time evaluations were already available in SW version 3.2
(they employ only real-time variables of this SW version):
Conversion routines in SW 5.3 and higher
The user can explicitly call two conversion routines RTOI( ) and ITOR( ) for the type
conversion in the synchronized action implicitTypeconversion from REAL to INT, and vice
versa. These functions are intended for software versions in which an internal type
conversion of values was not yet possible. Both conversion routines can be called
• in the part program, and
• from the synchronized action.
can be called.
Conversion routines (SW 5.2)
In the synchronized action there is no implicit type conversion from REAL to INT and vice
versa. However, the user may explicitly call two conversion routines RTOI( ) and ITOR( ) for
the type conversion. The functions can be called as follows:
• in the part program, and
• from the synchronized action.
ITOR
REAL ITOR( INT ) - Converting integer to real
The function converts the integer value transferred to a real value and returns this value. The
transferred variable is not changed.
Example
$AC_MARKER[1]=561
ID=1 WHEN TRUE DO $AC_PARAM[1] = ITOR( $AC_MARKER[1] )
Synchronized actions
Function Manual, 11/2006, 6FC5397-5BP10-2BA0
2.2 Real -time evaluations and calculations
;
Permissible REAL, REAL
;
not permitted REAL, INT
Detailed description
23

Advertisement

Table of Contents
loading

Table of Contents