Mitsubishi FX3U-232-BD User Manual page 493

Fx3u series
Hide thumbs Also See for FX3U-232-BD:
Table of Contents

Advertisement

FX Series PLC User's Manual - Data Communication Edition
Non-Protocol Communication (RS/RS2 Instruction)
8.2.4
Operation when data is sent
When the sending request flag is set to ON while RS2 instruction is driven, the PLC sends the data stored in
the specified data registers
When using communication port ch1, set M8402.
When using communication port ch2, set M8422.
When sending of the data is completed, the sending request flag is automatically set to OFF.
1. Time at which sending is started
When RS2 instruction is executed after the sending request flag is set to ON, the PLC starts to send.
When sending is started, the PLC sends the data stored in the data registers specified by RS2 instruction in
interrupt processing regardless of the operation cycle.
2. Time at which sending is completed
When all send data
*1.
The "terminators", "sum check" and "CR + LF" set in the communication format are included also in
the send data.
3. Cautions on sending
When sending data, observe the following cautions
1) While the sending request flag is ON, do not change the amount of send data or the contents of the send
data.
2) Do not set the sending request flag to OFF in a sequence program.
If the send data is changed while the sending request flag is ON or if the sending request flag is set to
OFF in a sequence program, correct data is not sent.
8.2.5
Operation when data is received
When RS2 instruction is executed, the PLC waits to receive. When the PLC receives data from the connected
equipment and receiving is completed, the receiving complete flag is set to ON.
When communication port ch1 is used, M8403 turns ON.
When communication port ch2 is used, M8423 turns ON.
When the PLC receives data, it stores the received data to the data registers
by the RS2 instruction.
While the receiving complete flag is ON, the PLC cannot receive new data.
1. Time at which receiving is started
When the PLC receives data while it is waiting to receive, it starts receiving data.
When receiving begins, the PLC stores the received data in interrupt processing regardless of the operation
cycle.
When the headers are specified in the communication format, however, the PLC starts receiving when it
continuously receives the codes set in the headers. The PLC stores the received data except the headers.
2. Time at which receiving is completed
Receiving is completed in the following three conditions. When either condition is established, receiving is
completed.
1) When the PLC receives the amount of receive data specified by the RS2 instruction
2) When the "terminators", "sum check" and "CR + LF" set in the communication format are received normally.
..........
Data
..........
Data
..........
Data
..........
Data
..........
Data
3) When data receiving is suspended and the PLC does not receive the next set of data within the time set
within the time-out time setting device (D8409 or D8429), the time-out check flag (M8409 or M8429) turns
ON.
to (
+m-1).
S
S
*1
is sent, sending is completed.
CR+LF
Terminator
Terminator
CR+LF
Terminator
Sum check
Terminator
Sum check
8 Creating Programs (RS2 Instruction)
D
CR+LF
8.2 How to Use RS2 Instruction
to (
+n-1) specified
D
F-55
A
B
C
D
E
F
G
H
I
Apx.

Advertisement

Table of Contents
loading

Table of Contents