EasyManua.ls Logo

Delta CP2000 Series - Page 786

Delta CP2000 Series
868 pages
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...
Chapter 16 PLC Function ApplicationsCP2000
16-103
PLC controlling slave device
Serial
No.
Example
MODRW command
S1 S2 S3 S4 n
Node
ID
Functio
n code
Addres
s
Registe
r
Length:
1
Reads 4 sets of data comprising the
PLC slave device's X0 to X3 state, and
saves the read data in bits 0 to 3 of D0
K20 H2 H400 D0 K4
2
Reads 4 sets of data comprising the
PLC slave device's Y0 to Y3 state, and
saves the read data in bits 0 to 3 of D1
K20 H2 H500 D1 K4
3
Reads 4 sets of data comprising the
PLC slave device's M0 to M3 state, and
saves the read data in bits 0 to 3 of D2
K20 H2 H800 D2 K4
4
Reads 4 sets of data comprising the
PLC slave device's T0 to T3 state, and
saves the read data in bits 0 to 3 of D3
K20 H2 H600 D3 K4
5
Reads 4 sets of data comprising the
PLC slave device's C0 to C3 state, and
saves the read data in bits 0 to 3 of D4
K20 H2 HE00 D4 K4
6
Reads 4 sets of data comprising the
PLC slave device's T0 to T3 count
value, and saves the read data of D10
to D13
K20 H3 H600 D10 K4
7
Reads 4 sets of data comprising the
PLC slave device's C0 to C3 count
value, and saves the read data of D20
to D23
K20 H3 HE00 D20 K4
8
Reads 4 sets of data comprising the
PLC slave device's D0 to D3 count
value, and saves the read data of D30
to D33
K20 H3 H1000 D30 K4
9
Writes 4 sets of the PLC slave device's
Y0 to Y3 state, and writes the values as
bits 0 to 3 of D1
K20 HF H500 D1 K4
10
Writes 4 sets of the PLC slave device's
M0 to M3 state, and writes the values
as bits 0 to 3 of D2
K20 HF H800 D2 K4
11
Writes 4 sets of the PLC slave device's
T0 to T3 state, and writes the values as
bits 0 to 3 of D3
K20 HF H600 D3 K4
12
Writes 4 sets of the PLC slave device's
C0 to C3 state, and writes the values
as bits 0 to 3 of D4
K20 HF HE00 D4 K4
13
Writes 4 sets of the PLC slave device's
T0 to T3 state, and writes the values of
D10 to D13
K20 H10 H600 D10 K4
14
Writes 4 sets of the PLC slave device's
C0 to C3 state, and writes the values of
D20 to D23
K20 H10 HE00 D20 K4
15
Writes 4 sets of the PLC slave device's
D0 to D3 state, and writes the values of
D30 to D33
K20 H10 H1000 D30 K4

Table of Contents

Other manuals for Delta CP2000 Series

Related product manuals