99
96-8000 Rev AC
May 2010
Programming
S
ySteM
v
ariableS
i
n
-d
ePth
Variables #750 and #751
These variables collect the input from serial port 2. The programmer can test
for data queued in the serial port 2 buffer and collect the data for processing.
Variable #750 will inform the programmer of data waiting at the RS232 port 2.
A value of 1 means that the receive buffer has data queued, otherwise a value
of 0 is returned. Variable 751 collects the first character from the input buffer
when data is queued. This means that the buffer content is first checked to see
if it is empty; if not the value of the next character queued is returned.
1-Bit Discrete Inputs
Inputs designated as “spare” can be connected to external devices and used
by the programmer.
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.
CAUTION! Do not use outputs that are reserved by the system. Using these out-
puts may result in injury or damage to your equipment.
The user can change the state of these outputs by writing to variables desig
-
nated 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)
If the control is not equipped with the M-code relay board, then M21 through
M28 will be mapped from #1132-#1139. If the M-code relay board is installed,
see the 8M-option section for information and instructions.
NOTE: Always test or dry run programs that have been developed for
macros that are using new hardware.
Maximum Axis Loads
The following variables are used to contain the maximum load values for each
axis. They can be cleared by cycling power to the machine or by setting the
macro to zero in a program (for example, #1064=0;).
Содержание 96-8000
Страница 15: ...6 96 8000 Rev AC May 2010 Mill Warning Decals ...
Страница 16: ...7 96 8000 Rev AC May 2010 Safety Lathe Warning Decals ...
Страница 41: ...32 96 8000 Rev AC May 2010 ...
Страница 93: ...84 96 8000 Rev AC May 2010 ...
Страница 129: ...120 96 8000 Rev AC May 2010 ...
Страница 133: ...124 96 8000 Rev AC May 2010 ...
Страница 268: ......
Страница 269: ......