Gud Variables - Siemens SINUMERIK 840D sl Programming Manual

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

Advertisement

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

GUD variables capable of synchronized actions
As well as specific system variables, predefined global synchronized-action user variables
(synchronized action GUD) can also be used in synchronized actions. The number of
synchronized action GUD items available to the user is parameterized for each specific data
type and access using the following machine data:
● MD18660 $MM_NUM_SYNACT_GUD_REAL[<x>] = <number>
● MD18661 $MM_NUM_SYNACT_GUD_INT[<x>] = <number>
● MD18662 $MM_NUM_SYNACT_GUD_BOOL[<x>] = <number>
● MD18663 $MM_NUM_SYNACT_GUD_AXIS[<x>] = <number>
● MD18664 $MM_NUM_SYNACT_GUD_CHAR[<x>] = <number>
● MD18665 $MM_NUM_SYNACT_GUD_STRING[<x>] = <number>
The index <x> is used to specify the data block (access rights) and the value <number> to
specify the number of synchronized-action GUDs for each data type (REAL, INT, etc.). A 1-
dimensional array variable with the following naming scheme is then created in the relevant
data block for each data type.: SYG_<data type><access right>[<index>]:
Job Planning
Programming Manual, 06/2009, 6FC5398-2BP20-0BA0
Motion synchronous actions
10.3 Main run variables for synchronized actions
649

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents