Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
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.
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
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
XY M TCS
D.b
KnX KnY KnM KnS T C D R
U\G
VZModifierKH E
"
"
P
S1 S2
zzz
S1 S2
zzz
S1 S2
zzz
S1 S2
zzz
zz
S1
z
S1 S2
zzz
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