Delta AS Series Programming Manual page 974

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

API
Instruction code
1817
MODRWE
Device
X
Y
M
S
1
S
2
S
3
S
4
S
n
D
Data
type
S
1
S
2
S
3
S
4
S
n
D
Symbol
Explanation
1.
S
sets the serial number of a communication port. The number of COM1 is 1, COM2 is 2, Card1 is 11 and Card2 is
1
12. If the value exceeds the valid range, the instruction does not receive any communication data.
2.
Refer to the explanation of the MODRW instruction (API 1808) for the meaning of the operands S
3.
D sets the communication state flags when the instruction completes the communication, and the flags occupy 3
consecutive devices. You must reset the flags to OFF. The following table gives explanations of the flag states.
Operand
S
, S
, S
, S
, S, n, D
1
2
3
4
S
T
C
HC
D
Pulse instruction
-
: Communication port number
S
1
: Unit address
S
2
: Function code
S
3
: Device address
S
4
S : Register for reading and writing the data
n : Data length
D : Flag for completion of the reading and writing data
Cha p ter 6 App l ied Ins truc tio ns
Function
Reading and writing Modbus data without using any
flags
FR
SM
SR
E
16-bit instruction
AS
K
16#
"$"
F
32-bit instruction
-
, S
S
S and n.
2
3,
4,
6 - 6 9 5
6_

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents