Siemens SINUMERIK 840Di sl Function Manual page 25

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

Advertisement

Examples:
previously
$AC_MARKER[1]=561
ID=1 WHEN TRUE DO $AC_PARAM[1] = ITOR( $AC_MARKER[1] )
As of SW 6.4
$AC_MARKER[1]=561
ID=1 WHEN TRUE DO $AC_PARAM[1] = $AC_MARKER[1]
previously
$AC_PARAM[1] = 561.4378
ID=1 WHEN TRUE DO $AC_MARKER[1] = RTOI( $AC_PARAM[1] )
As of SW 6.4
$AC_PARAM[1] = 561.4378
ID=1 WHEN TRUE DO $AC_MARKER[1] = $AC_PARAM[1]
Internal type conversion of values in SW 7.4 and higher
Without the call of the RTOI and ITOR function, type conversions can be triggered for value
assignments and parameter transfers of multiple implicit type conversions. The following
data type conversions are possible:
• REAL to BOOL
• INT to BOOL
• BOOL to REAL or INT
Examples:
implicit conversion from INTEGER to BOOLen
$AC_MARKER[1]=561
ID=1 WHEN $A_IN[1] == TRUE DO $A_OUT[0]=$AC_MARKER[1]
implicit conversion from REAL to BOOLen
R401 = 100.542
WHEN $A_IN[0] == TRUE DO $A_OUT[2]=$R401
implicit conversion from BOOLen to INTEGER
ID=1 WHEN $A_IN[2] == TRUE DO $AC_MARKER[4] = $A_OUT[1]
implicit conversion from BOOLen to REAL
R401 = 100.542
WHEN $A_IN[3] == TRUE DO $R10 = $A_OUT[3]
For type conversions from REAL to INT, a fractional value < 0.5 is rounded off. Otherwise,
the value is rounded down as with the ROUND function. Alarm 20145 is output if values are
exceeded.
References:
/PGA/ Programming Manual Work Preparation, Motion-Synchronous Actions, Chapter "Main-
Run Variables for Synchronized Actions"
Synchronized actions
Function Manual, 11/2006, 6FC5397-5BP10-2BA0
2.2 Real -time evaluations and calculations
Detailed description
; 561
: 561
25

Advertisement

Table of Contents
loading

Table of Contents