F-47
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
6.2.2
Function and operation
RS instruction specifies the head device storing the sent data sent from the PLC, amount of data, head device
storing the received data and the maximum allowable amount of received data.
Create a program as shown below.
M0
FNC 80
RS
D100
D0
D200
D1
M1
Send data is written.
Command
SET
M8122
Sending command
(pulse operation type)
Receive data is moved.
RST
M8123
M8123
Receiving complete
Sending
request
Receiving
complete
When the command contact (M0) is set to ON, the PLC waits to send and receive.
For handling of sent and received data, refer to Subsection 6.2.3.
When the sending command (M1) is set to ON, write the send data to D100 and so on
(as many devices as specified number).
Give the sending command of the pulse operation type.
After writing the send data, set the sending request device (M8122) to send the data.
When sending is completed, the sending request device (M8122) is automatically reset.
Do not reset it in a sequence program.
For operation when data is sent, refer to Subsection 6.2.4.
When the PLC receives data from the connected equipment, the receiving complete flag
(M8123) turns ON.
When M8123 turns ON, move the received data stored in D200 to another storage area.
After moving the received data, reset the receiving complete flag (M8123).
While M8123 is ON, the PLC cannot receive the next set of data.
For the operation when data is received, refer to Subsection 6.2.5.
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: ......