7 Applied Instructions
7.9 External Device (optional device)
423
FXCPU Structured Programming Manual
(Basic & Applied Instruction)
1
Outline
2
Instruction List
3
Configuration of
Instruction
4
How to Read
Explanation of
Instructions
5
Basic Instruction
6
Step Ladder
Instructions
7
Applied
Instructions
8
Interrupt Function
and Pulse Catch
Function
A
Relationships
between devices
and addresses
7.9.8 RS2
Outline
This instruction transmits and receives data by no-procedure communication via serial port of RS-232C or
RS-485 installed in the basic unit.
In the case of FX
3G PLC, data can be transmitted and received by no-procedure communication also via
standard built-in port (RS-422).
1. Format and operation, execution form
2. Set data
*1. Rounding up below the decimal point
*2. In the case of 14-point or 24-point type of FX3G PLC, ch2 cannot be used. Ch0 is applicable to FX3G
PLC only.
3. Applicable devices
FX3U(C) FX3G FX2N(C) FX1N(C) FX1S FXU/FX2C FX0N FX0(S)
Instruction
name
Operation
Execution
form
Expression in each language
Structured ladder ST
RS2 16 bits Continuous RS2(EN, s, m, n, n1, d);
Variable Description Data type
Input
variable
EN Execution condition Bit
Head device in which transmission data is stored
• 16-bit processing mode: m÷2 points
*1
occupied
ANY16
Number of transmission data bytes [Setting range: 0 to 4096] ANY16
Number of reception data bytes [Setting range: 0 to 4096] ANY16
Used channel number [Setting content: K0: ch0, K1: ch1, K2: ch2]
*2
ANY16
Output
variable
ENO Execution state Bit
Head device for storing reception data upon completion of reception
• 16-bit processing mode: n÷2 points
*1
occupied
ANY16
Operand
type
Bit Devices Word Devices Others
System User Digit designation
System
User
Special
Unit
Index
Const
ant
Real
Number
Character
String
Pointer
XYMTCS
D.b
KnX KnY KnM KnS T C D R
U\G
VZModifier K H E
""
P
zz z
zz z z
zz z
zz z z
zz
RS2
EN
s
ENO
m
n
n1
d