AS Ser ies Pro gra mm in g M anu al
API
Instruction code
1808
MODRW
Device
X
S
1
S
2
S
3
S
n
Data
type
S
1
S
2
S
3
S
n
Symbol
_6
Explanation
1.
The operand S
2.
S
is the function code.
2
The following table shows an example.
Function
code
16#01
16#02
16#03
6 - 6 3 8
Operand
S
, S
1
Y
M
S
T
: Unit address
S
1
: Function code
S
2
: Device address
S
3
S : Register for reading/writing the data
n : Data length
must be between 0–254; 0 is the broadcasting mode.
1
Description
PLC reads the data from several bit devices.
PLC reads the data from several bit devices.
PLC reads the data from several word
devices.
, S
, S, n
2
3
C
HC
D
FR
SM
Pulse instruction
16-bit instruction
-
Data
length
1-1600
1-1600
1-100
Function
Reading and Writing Modbus data
SR
E
K
16#
32-bit instruction
AS
Devices that support devices for slaves
X, Y, M, SM, S, T, C, HC
X, Y, M, SM, S, T, C, HC
X, Y, SR, D, T, C, HC, E
"$"
F
-