
Chapter 16 PLC Function Applications
│
CP2000
16-149
16-11 Modbus remote IO control applications (use MODRW)
The CP2000's internal PLC supports 485 read/write functions, which can be realized using the
MODRW command. However, the 485 serial port must be defined as available for the PLC's 485 use
before writing a program, and the Pr.09-31 must be set as -12. After completing settings, the
standard functions defined by 485 can be used to implement read/write commands at other stations.
Communications speed is defined by Pr.09-01, the communications format is defined by Pr.09-04,
and the PLC's current station number is defined by Pr.09-35. The CP2000 currently supports the
functions read coil (0x01), read input (0x02), read register (0x03), write to single register (0x06), write
to several coils (0x0F), and write to several registers (0x10). Explanations and the usage of these
functions are provided as follows:
MODRW command
General
meaning
Slave device is Delta's PLC
meaning
Slave device is Delta's
converter meaning
S1
S2
S3
S4
S5
Node
ID
Command Address
Return:
D area
Length:
K3
H01
H500
D0
K18
Read coil
(Bit)
Read 18 bits of data corresponding to
slave station 3 PLC Y0 to Y21. This
data is stored by bit 0 to 15 of this
station's D0 and bit 0 to bit 3 of D1.
Does not support this function
K3
H02
H400
D10
K10
Read input
(Bit)
Read 10 bits of data corresponding to
slave station 3 PLC X0 to X11. This
data is stored by bit 0 to 9 of this
station's D10.
Does not support this function
K3
H03
H600
D20
K3
Read register
(word)
Read 3 words of data corresponding
to slave station 3 PLC T0 to T2. This
data is stored by D20 to D22.
Read 3 words of data
corresponding to slave station
3 converter parameters 06-00
to 06-02. This data is stored by
D20 to D22
K3
H06
H610
D30
XX
Write to single
register (word)
Write slave station 3 PLC's T16 to this
station's D30 value
Write slave station 3 converter
06 to 16 parameter to this
station's D30 value
K3
H0F
H509
D40
K10
Write to
multiple coils
(Bit)
Write slave station 3 PLC's Y11 to
Y22 to bit 0 to 9 of D40.
Does not support this function
K3
H10
H602
D50
K4
Write to
multiple
registers
(word)
Write slave station 3 PLC's T2 to T5 to
D50 to D53
Write slave station 3 converter
06-02 to 06-05 parameters to
this station's D50 to D53
※
XX indicates doesn't matter
After implementing MODRW, the status will be displayed in M1077 (485 read/write complete), M1078
(485 read/write error), and M1079 (485 read/write time out). M1077 is defined so as to immediately
revert to 0 after the MODRW command has been implemented. However, any of three situations—a
report of no error, a data error report, or time out with no report—will cause the status of M1077 to
change to On.
Example program: Testing of various functions
At the start, will cause the transmitted time sequence to switch to the first data unit.
0
M1002
MOV
K4M0
K1
On only for 1 scan a
Содержание CP2000 Series
Страница 3: ......
Страница 12: ...Chapter 1 Introduction CP2000 1 3 1 2 Model Name 1 3 Serial Number...
Страница 35: ...Chapter 1 Introduction CP2000 1 26 Digital Keypad KPC CC01 Figure 1 32...
Страница 36: ...Chapter 2 Installation CP2000 2 1 Chapter 2 Installation 2 1 Mounting Clearance 2 2 Flow and Power Dissipation...
Страница 42: ...Chapter 3 Unpacking CP2000 3 1 Chapter 3 Unpacking 3 1 Unpacking 3 2 The Lifting Hook...
Страница 72: ...Chapter 4 Wiring CP2000 4 1 Chapter 4 Wiring 4 1 System Wiring Diagram 4 2 Wiring...
Страница 77: ...Chapter 4 Wiring CP2000 4 6 Figure 4 5...
Страница 78: ...Chapter 4 Wiring CP2000 4 7 4 2 1 SINK NPN SOURCE PNP Mode Figure 4 6 Figure 4 7 Figure 4 8 Figure 4 9...
Страница 79: ...Chapter 4 Wiring CP2000 4 8 This page intentionally left bank...
Страница 109: ...Chapter 6 Control Terminals CP2000 6 12 This page intentionally left blank...
Страница 171: ...Chapter 7 Optional Accessories CP2000 7 62 EMC Filter Dimension EMC filter model name EMF021A23A EMF014A43A Figure 7 45...
Страница 172: ...Chapter 7 Optional Accessories CP2000 7 63 EMC filter model name EMF018A43A Figure 7 46...
Страница 173: ...Chapter 7 Optional Accessories CP2000 7 64 EMC filter model name EMF056A23A EMF039A43A Figure 7 47...
Страница 174: ...Chapter 7 Optional Accessories CP2000 7 65 EMC filter model name KMF370A KMF3100A Figure 7 48...
Страница 175: ...Chapter 7 Optional Accessories CP2000 7 66 EMC filter model name B84143D0150R127 Figure 7 49...
Страница 176: ...Chapter 7 Optional Accessories CP2000 7 67 EMC filter model name B84143D0200R127 Figure 7 50...
Страница 182: ...Chapter 7 Optional Accessories CP2000 7 73 Wall Mounting Embedded Mounting...
Страница 197: ...Chapter 7 Optional Accessories CP2000 7 88 6 Installation complete...
Страница 237: ...Chapter 7 Optional Accessories CP2000 7 128 This page intentionally left blank...
Страница 242: ...Chapter 8 Option Cards CP2000 8 5 Communication extension card Slot 1 CMC PD01 CMC DN01 CMC EIP01 EMC COP01 CMC PN01...
Страница 245: ...Chapter 8 Option Cards CP2000 8 8 I O Relay Card EMC D42A EMC D611A EMC R6AA EMC BPS01 EMC A22A...
Страница 247: ...Chapter 8 Option Cards CP2000 8 10 I O Relay Card EMC D42A EMC D611A EMC R6AA EMC BPS01 EMC A22A...
Страница 265: ...Chapter 8 Option Cards CP2000 8 28 This page intentionally left blank...
Страница 277: ...Chapter 09 Specifications CP2000 9 12 575V 690V Figure 9 3 Altitude Derating Curve Figure 9 4...
Страница 279: ...Chapter 09 Specifications CP2000 9 14 230V 460V Advanced Control Pr 00 11 2 PM SVC Pr 05 33 1 2 Figure 9 7 Figure 9 8...
Страница 281: ...Chapter 09 Specifications CP2000 9 16 9 8 Efficiency Curve Figure 9 11 Figure 9 12...
Страница 317: ...Chapter 10 Digital Keypad CP2000 10 36 This page intentionally left blank...
Страница 355: ...Chapter 11 Summary of Parameter Settings CP2000 11 38 11 Advanced Parameters Group 11 Advanced Parameters are reserved...
Страница 361: ...Chapter 11 Summary of Parameter Settings CP2000 11 44 This page intentionally left blank...
Страница 416: ...Chapter 12 Description of Parameter Settings CP2000 12 1 03 3 3 4 5...
Страница 417: ...Chapter 12 Description of Parameter Settings CP2000 12 1 03 4 6 7 8...
Страница 418: ...Chapter 12 Description of Parameter Settings CP2000 12 1 03 5 9 10 11...
Страница 419: ...Chapter 12 Description of Parameter Settings CP2000 12 1 03 6 12 13 14...
Страница 420: ...Chapter 12 Description of Parameter Settings CP2000 12 1 03 7 15 16 17...
Страница 421: ...Chapter 12 Description of Parameter Settings CP2000 12 1 03 8 18 19 20...
Страница 422: ...Chapter 12 Description of Parameter Settings CP2000 12 1 03 9 21 22 23...
Страница 423: ...Chapter 12 Description of Parameter Settings CP2000 12 1 03 10 24 25 26...
Страница 424: ...Chapter 12 Description of Parameter Settings CP2000 12 1 03 11 27 28 29...
Страница 425: ...Chapter 12 Description of Parameter Settings CP2000 12 1 03 12 30 31 32...
Страница 426: ...Chapter 12 Description of Parameter Settings CP2000 12 1 03 13 33 34 35...
Страница 427: ...Chapter 12 Description of Parameter Settings CP2000 12 1 03 14 36 37 38...
Страница 528: ...12 Description of Parameter Setting CP2000 12 1 11 1 11 Advanced Parameters Group 11 Advanced parameters are reserved...
Страница 560: ...Chapter 12 Description of Parameter Settings CP2000 12 2 00 6 III PM SVC Carrier Start up Adjustment...
Страница 835: ...Chapter 16 PLC Function Applications CP2000 16 152 Step 3 Physical configuration CP2000 Step 4 Write to PLC program...
Страница 836: ...Chapter 16 PLC Function Applications CP2000 16 153...
Страница 838: ...Chapter 16 PLC Function Applications CP2000 16 155...
Страница 841: ...Chapter 16 PLC Function Applications CP2000 16 158 This page intentionally left blank...
Страница 857: ...Chapter 17 Introduction to BACnet CP2000 17 16 This page intentionally left blank...