11596-8000
June 1999
OPERATION
The EOB (semicolon) character is not normally sent by the RS-232 port. If it is received by the input port, it will
cause a blank line in the program.
The format of data sent and received for parameters, settings, and offsets is the following:
%
N0 Vnnnnnn
N1 Vnnnnnn
N2 Vnnnnnn
.
.
.
%
The format of data sent and received for macro variables is the same as above except there is a line N9999,
and no line N0. The N number is the data number and V is the value. N0 is a CRC code that is computed by
the control prior to sending the data. The N0 value is mandatory with parameters but is optional with settings
and offsets. If you make a change to some saved data value and leave the old CRC, you will get an alarm when
you try to load that data. With settings and offsets, you should delete the N0 line if you make changes to the
saved data.
Note: Data will be loaded even though an alarm has been generated.
Data that is received garbled is usually converted into a comment and stored into your program while an alarm
is generated. In addition, any parity errors or framing errors will generate an alarm and they will also stop the
receive operation.
At the end of a send or receive function, the bottom left corner of the display will show either: RS232 DONE
for normal completion or RS232 ABORT if any errors cause it to stop. The actual errors are listed in the
ALARM display.
The Haas CNC serial ports optionally support the full DC1, DC2, DC3, DC4 code sequence that is compatible
with paper tape readers and punches. Setting 14 is used to select this mode of operation. Setting 14 can be
set to DC CODES. When this setting is selected, the following occurs:
1) When sending out of the serial port, a DC2 (0x12) will precede all other data. This code is used to
turn on a paper punch.
2) When sending out of the serial port, a DC4 (0x14) will follow all other data. This code is used to
turn off a paper tape punch.
3) When receiving from the serial port, a DC1 (0x11 Xon) is sent first. This code is used to turn on a
paper reader.
4) When receiving from the serial port, a DC3 (0x13 Xoff) is sent after the last % is received. This
code is used to turn off a paper tape reader.