15 Applied Instructions (External Device (optional device))
15.1 RS / Serial Communication
390
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
15.1 RS / Serial Communication
Outline
This instruction sends and receives data in no-protocol communication by way of a serial port (only the ch1) in
accordance with RS-232C or RS-485 provided in the main unit.
1. Format and operation, execution form
2. Set data
3. Applicable devices
S: Refer to "Cautions".
FX3U(C) FX3G(C) FX3S FX2N(C) FX1N(C) FX1S FXU/FX2C FX0N FX0(S)
Instruction
name
Operation
Execution
form
Expression in each language
Structured ladder/FBD ST
RS 16 bits Continuous RS(EN, s, m, n, d);
Variable Description Data type
Input
variable
EN Execution condition Bit
Head device storing data to be sent ANY16
Number of bytes of data to be sent ANY16
Number of bytes to be received ANY16
Output
variable
ENO Execution state Bit
Head device storing received data when receiving is completed ANY16
Operand
type
Bit Devices Word Devices Others
System user Digit designation
System
user
Special
unit
Index
Cons
tant
Real
Number
Character
String
Pointer
XYMTCS
D.b
KnX KnY KnM KnS T C D R
U\G
V Z Modifier K H E
"
"
P
z
S1
z
z
S1
zz
z
S1
zz
z
S1
z
RS
EN
s
ENO
m
n
d