Справочник Пользователя для Mitsubishi Electronics FXCPU

Скачать
Страница из 838
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".
FX
3U(C)
FX
3G(C)
FX
3S
FX
2N(C)
FX
1N(C)
FX
1S
FX
U
/FX
2C
FX
0N
FX
0(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
X Y M T C S D
.b KnX KnY KnM KnS T C D R U
\G
V Z Modifier K H
E
"
"
P
z
S1
z
z
S1
z z
z
S1
z z
z
S1
z
RS
EN
s
ENO
m
n
d