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

Скачать
Страница из 838
30 Applied Instructions (External Device Communication)
30.7 ADPRW / MODBUS Read/Write
724
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
30.7
ADPRW / MODBUS Read/Write
Outline
This instruction allows the MODBUS Master to communicate (read/write data) with its associated Slaves.
1. Format and operation, execution form
2. Set data
3. Applicable devices
S : Refer to "Cautions".
Function and operation explanation
1. 16-bit operation
Command Code 
 is operated on Slave Node 
 according to Parameters 
 and 
.
Use 0 as the Slave Node Address for Broadcast commands.
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
ADPRW
16 bits
Continuous
ADPRW (EN, s, s1, s2, s3, s4)
Variable
Description
Data type
Input
variable
EN
Execution condition
Bit
Slave Node Address (K0 to K32)
ANY16
Command Code (See Subsection 30.7.1)
ANY16
Command Parameter depending on the Command Code (See Subsection 30.7.1)
ANY16
Command Parameter depending on the Command Code (See Subsection 30.7.1)
ANY16
Command Parameter depending on the Command Code (See Subsection 30.7.1)
ANY_SIMPLE
Output
variable
ENO
Execution state
Bit
Operand 
type
Bit Devices
Word Devices
Others
System user
Digit specification
System user
Special 
unit
Index
Cons
tant
Real 
Number
Character 
String
Poin
ter
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
S1 S2
z
z z
S1 S2
z
z z
S1 S2
z
z z
S1 S2
z
z z
z z
S1
z
S1 S2
z
z z
s3
s4
ADPRW
EN
ENO
s
s1
s2
Slave Node Address K0 to K32 (00H to 20H)
Command
input
Command Code
Command Parameters 
depending on the Command Code
s3
s4
ADPRW
EN
ENO
s
s1
s2