EasyManua.ls Logo

Delta DVP-EX2 - Page 473

Delta DVP-EX2
1006 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
DVP-ES2/EX2/EC5/SS2/SA2/SX2/SE&TP Operation Manual - Programming
3-352
API
Mnemonic Operands Function
Controllers
ES2/EX2/
EC5
SS2
SA2
SE
SX2
113 ETHRW
Ethernet
communication
Type
OP
Bit Devices Word devices Program Steps
X Y M S K H KnX
KnY
KnM
KnS
T C D E F
ETHRW: 9 steps
S
1
*
S
2
*
*
*
D
*
n
*
*
*
PULSE
16-bit
32-bit
ES2/EX2/
EC5
SS2
SA
2
SX2
ES2/EX2/
EC5
SS2
SE/
ES2-E
SX2/
SA2
ES2/EX2/
EC5
SS
2
SA2
SX2
Operands:
S
1
: IP address, communication port number, and read/write mode S
2
: Device address D:
Source/Destination data register n: Data length; Range: K1~K96 (word), K1~K256 (bit)
Explanations:
1. S
1
: IP address, communication port number, and read/write mode
The operand S
1
occupies five consecutive data registers. The functions are as follows.
IP address: Two data registers are occupied, that is, S
1
+0 and S
1
+1.
IP addressIP3.IP2.IP1.IP0192.168.0.2
If S
1
is D100, the values in D100 and D101 are H’0002 and H’C0A8 respectively.
D100 (S
1
+0)
D101 (S
1
+1)
High
Low
High
Low
IP1
IP0
IP3
IP2
0
2
192
168
H’0002
H’C0A8
S
1
+2: Communication port number
The communication port number of the Ethernet port on DVP-SE/ES2-E and that of the
communication card installed in DVP-EH3 are K108. The communication ports on the
left-side Ethernet modules connected to a CPU module are numbered according to their
distances from the CPU module. The numbers start from K100 to K107.
S
1
+3: Station address of a slave
S
1
+4: Read/Write function code setting
The definition is the same as Modbus. The function codes supported are H’01, H’02, H’03,
H’04, H’05, H’06, H’0F and H’10.
2. S
2
: Device address
The definition is the same as Modbus.
3. The operand D specifies a source data register or a destination data register. For example, D
specifies D10 and set the function code to H03; when it reads 2 length of data, the data will be
stored in D10 and D11.

Table of Contents

Related product manuals