Gud Variables For Synchronous Actions - Siemens SINUMERIK 840D sl Programming Manual

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Results
Type conversion from REAL or INTEGER to BOOL
Result BOOL = TRUE
Result BOOL = FALSE
Type conversion from BOOL to REAL or INTEGER
Result REAL TRUE
Result INTEGER = TRUE
Type conversion from BOOL to REAL or INTEGER
Result REAL FALSE)
Result INTEGER = FALSE
Examples of implicit type conversions
Type conversion from INTEGER to BOOL
$AC_MARKER[1]=561
ID=1 WHEN $A_IN[1] == TRUE DO $A_OUT[0]=$AC_MARKER[1]
Type conversion from REAL to BOOL
R401 = 100.542
WHEN $A_IN[0] == TRUE DO $A_OUT[2]=$R401
Type conversion from BOOL to INTEGER
ID=1 WHEN $A_IN[2] == TRUE DO $AC_MARKER[4] = $A_OUT[1]]
Type conversion from BOOL to REAL
R401 = 100.542
WHEN $A_IN[3] == TRUE DO $R10 = $A_OUT[3]
10.3.3

GUD variables for synchronous actions

Function
In addition to the predefined variables, the programmer can use special GUD variables in
synchronized actions. The variables are displayed on HMI in the operating area parameter
and can be used in Wizard as well as in the variable view and variable protocol.
Configurable parameter ranges
Machine manufacturer
Machine data can be used to add additional channel-specific parameter areas of AXIS,
CHAR and STRING data types to the individual GUD modules for the REAL, INT and BOOL
data types. These areas can be read and written by the parts program and using
synchronized actions.
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
10.3 Main run variables for synchronized actions
if the REAL or INTEGER value does not equal
if the REAL or INTEGER value equals
if the BOOL value = TRUE (1)
if the BOOL value = TRUE (1)
if the BOOL value = FALSE (0)
if the BOOL value = FALSE (0)
Motion synchronous actions
zero
zero
10-11

Advertisement

Table of Contents
loading

Table of Contents