368
MACROS
96-8000
June 1999
SYSTEM V ARIABLES I N-DEPTH
This section fully describes system variables.
1-Bit Discrete Inputs
For a complete description of discrete inputs, refer to the "Technical Reference" section. Inputs designated as
"spare" can be connected to external devices and used by the programmer.
#1000-#1020 Reserved for HAAS Controller use.
#1021 Spare
#1022 Spare
#1023 Spare
#1024-#1028, 1030, 1031 Reserved for HAAS Controller use.
#1029 Skip signal
1-Bit Discrete Outputs
The HAAS control is capable of controlling up to 56 discrete outputs. However, a number of these outputs are
already reserved for use by the HAAS controller. The following list shows which outputs are "spare", or can be
connected to external devices and used by the programmer, or "reserved" by the control, and cannot be used:
#1100-#1123 Reserved
#1124-#1126 Spare
#1127 Reserved
#1128-#1131 Reserved
#1132-#1139 M-code relay option, spare.
CAUTION!
Do not use outputs that are reserved by the system. Using these
outputs may result in injury or damage to your equipment.
The user can change the state of these outputs by writing to variables designated as "spare". If the outputs are
connected to relays, then an assignment of "1" sets the relay. An assignment of "0" clears the relay.
Referencing these outputs will return the current state of the output and this may be the last assigned value or
it may be the last state of the output as set by some user M code. For example, after verifying that output
#1108 is "spare":
#1108=1; (Turns #1108 relay on)
#101=#3001+1000; (101 is 1 second from now)
WHILE [[#101 GT #3001] AND [#1109 EQ 0]] D01
END1 (Wait here 1 second or until relay #1109 goes high)
#1108=0; (Turns #1108 relay off)