User`s manual
FX communication
RS instruction 9
9-13
9
9.3 Number of Communication Data
9.3.1 Deal with 16 bits Data
When M8161 is set to OFF (M8161 is shared by an ASCII instruction, a HEX instruction and a
CCD instruction.)
1 ) Send data and remaining number of send data
2 ) Receive data and number of receive data
Upper 8 bits Lower 8 bits
16-bit data
16-bit data is divided into the
lower 8 bits and the upper 8
bits, then sent or received.
STX D200 lower D200 upper D201 lower D201 upper ETX
STX D500 lower D500 upper D501 lower D501 upper D502 lower D502 upper ETX
Head address specified by
Send byte count
specified by "m"
S·
Terminator
Head address specified by
It does not exceed the upper limit number
of receive data points (byte count)
specified by "n".
Receive is completed when the terminator
(ETX) or "n" points are received.
Terminator
D·
Header
Header
Send data
(Programmdble
controller
→
External
equipment)
Receive data
(External
equipment
→
Programmdble
controller)
X010
M8000
FNC 80
RS
D200 K 4 D500 K 10
S·
m
D·
n
M8161
16-bit mode
OFF during RUN
OFF
D200 lower
D200 upper
D201 lower
D201 upper
0
1
2
3
4
STX
ETX
Remaining number
of send data D8122
Send data SD (TXD)
D500 lower
D500 upper
D501 lower
D501 upper
D502 lower
D502 upper
The number of receive
data is also reset when
the receive completion
flag M8123 is reset.
6
5
4
3
2
1
0
STX
ETX
Receive data RD (RXD)
Number of receive data
D8123