Local/global classification of variables and flags – IAI America TT-C3 User Manual

Page 273

Advertising
background image

263

INTELLIGENT ACTUATOR

Appendix

Appendix

13. Local/Global Classification of Variables and Flags

Description

The internal variables and flags used in SEL commands are classified into local and global
variables/flags.
The shared data range used by all programs is called the global range, while the data range used only
by each program is called the local range. To adjust the timings of multiple programs in the
multitasking mode or to allow variables to reference one another, the global range must be used.

Example of Use

Handshake between programs

Program A

Program B

As shown in the above example, global flags can be used to perform operations requiring handshake
between two programs, such as executing “MOVL 1” in program A, waiting for the actuator to move to
the specified position and then executing “MOVL 2” in program B, waiting for the actuator to move to
the specified position and then executing “MOVL 3” in program A, and so on.

The variables and flags in the global range are retained until the power is turned off.
The variables and flags in the local range are cleared (to “0” in the case of variables, or turned OFF in
the case of flags) when the program is started.

Advertising
This manual is related to the following products: