F-49
FX Series PLC User's Manual - Data Communication Edition
Non-Protocol Communication (RS/RS2 Instruction)
6 Creating Programs (RS Instruction)
6.2 How to Use RS Instruction
A
Comm
on I
te
ms
B
N:
N N
etwo
rk
C
Paral
le
l Li
nk
D
Com
puter Li
nk
E
In
verter
C
omm
uni
cation
F
N
on-Proto
col
C
ommunicati
on
(R
S/RS
2 Instru
ction
)
G
No
n-
Protoc
ol
Co
mmuni
ca
tion
(FX
2N
-2
32IF)
H
Programm
ing
Comm
uni
cation
I
Re
mo
te
Ma
intenance
Apx.A
D
isco
nti
nued
models
2. Handling of 8-bit data (when M8161 is set to ON)
1) Send data and amount of remaining data
2) Receive data and amount of received data
Caution on other instructions using M8161
M8161 is shared by RS, ASCI, HEX, CCD, and CRC (provided only in FX
3U
and FX
3UC
PLCs) instructions.
If M8161 is changed during the sending/receiving operation of the RS instruction, the data may not be
received normally.
X010
FNC 80
RS
D200
K 4
D500
K 10
m
n
8-bit mode
Ignored
Lowest-order 8-bit
16-bit data
Highest-order 8-bits are ignored,
and only the lowest-order 8-bits are
regarded as valid data.
M8000
M8161
STX
D200 lowest-
order byte
D201 lowest-
order byte
D202 lowest-
order byte
D203 lowest-
order byte
ETX
STX
D500 lowest-
order byte
D501 lowest-
order byte
D502 lowest-
order byte
D503 lowest-
order byte
D504 lowest-
order byte
D505 lowest-
order byte
ETX
Terminator
They cannot exceed the upper limit number of devices (bytes) to be
received, specified by "n". When the PLC receives the terminator (ETX) or
"n" data, receiving is completed.
Terminator
Header
Header
Send data
(PLC
external
equipment)
Receive data
(external
equipment
PLC)
S
D
Head address specified by S
Number of bytes to be sent specified by "m"
Head address specified by D
0
1
2
3
4
Amount of remaining
data
D8122
Send data
SD (TXD)
D
200
low
es
t-order by
te
D
201
low
es
t-order by
te
D
202
low
es
t-order by
te
D
203
low
es
t-order by
te
STX
ETX
When the receiving
complete flag M8123
is reset, the amount of
received data is reset
also.
6
5
4
3
2
1
0
Receive data
RD (RXD)
Amount of received
data
D8123
D
500
low
es
t-order by
te
D
501
low
es
t-order by
te
D
502
low
es
t-order by
te
D
503
low
es
t-order by
te
D
504
low
es
t-order by
te
D
505
low
es
t-order by
te
STX
ETX
Summary of Contents for FX-485ADP
Page 2: ......
Page 120: ...B 2 FX Series PLC User s Manual Data Communication Edition N N Network ...
Page 188: ...C 2 FX Series PLC User s Manual Data Communication Edition Parallel Link ...
Page 244: ...D 2 FX Series PLC User s Manual Data Communication Edition Computer Link ...
Page 344: ...E 2 FX Series PLC User s Manual Data Communication Edition Inverter Communication ...
Page 700: ...H 2 FX Series PLC User s Manual Data Communication Edition Programming Communication ...
Page 752: ...I 2 FX Series PLC User s Manual Data Communication Edition Remote Maintenance ...
Page 817: ......