Mitsubishi Electric FX3U-232-BD User Manual page 614

Melsec-f fx series programmable controllers data communication edition
Table of Contents

Advertisement

FX Series PLC User's Manual - Data Communication Edition
Non-Protocol Communication (RS/RS2 Instruction)
2. Terminator
When "terminator provided" is selected in the communication format settings, the values of D8382 and D8383
are used for ch0, and the values of D8412 and D8413 are used for ch1, and the values of D8432 and D8433
are used for ch2.
Up to four terminators can be set.
Terminator
ch0
ch1
ch2
When data is sent, the data set in the devices above is added at the end of the specified send data.
When data is received, receiving is completed
Even if "terminator provided" is selected, terminators are not provided if terminator 1 is set to "00H".
The area before 00H (
Caution
Set the terminator before driving the RS2 instruction. Do not change the setting while the RS2 instruction is
being driven.
*1.
Receiving is also completed when the amount of received data specified by the RS2 instruction is
finished receiving or when data receiving is suspended and the next set of data is not received within
the time-out time setting device (D8379, D8409 or D8429).
3. Sum check
When "sum check provided" is selected in the communication format setting, the sum check is executed for
the sent and received data.
When selecting "sum check provided", make sure to select "terminator provided".
When data is sent, the sum of "data" + "terminator" is calculated, and added to the send data.
When data is received, it is checked whether or not the received sum is equivalent to the sum calculated by
the PLC.
4. CR + LF
When "CR + LF provided" is selected in the communication format setting, the character code of "CR + LF" is
added at the end of the send data.
When data is received, receiving is completed when "CR + LF" is received continuously.
However, receiving is also completed when the specified amount of received data is received or when data
receiving is suspended and the next set of data is not received within the time-out time setting.
Make sure that "CR" is not included in the message.
F-64
Terminator 1
D8382 (lowest-order byte)
D8382 (highest-order byte)
D8412 (lowest-order byte)
D8412 (highest-order byte)
D8432 (lowest-order byte)
D8432 (highest-order byte)
) is used to set the terminators.
in 1-byte units
Terminator 2
Terminator 3
D8383 (lowest-order byte)
D8413 (lowest-order byte)
D8433 (lowest-order byte)
*1
when the data set in the devices above is received.
For details on sum check, refer to Subsection 8.2.6.
8 Creating Programs (RS2 Instruction)
8.2 How to Use RS2 Instruction
Terminator 4
D8383 (highest-order byte)
D8413 (highest-order byte)
D8433 (highest-order byte)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents