9
.
Program
43
9.2.2. Detailed Description of the Function
The following explains the details of Total Power ON Time Monitor (register number: #1017 to
#1018) performed by using ''Read from Holding Register (function code: #03)''.
Additional Information
For details on register addresses and register numbers, refer to
8-9 Modbus Communication
Data Lists
of the
Multi-function Compact Inverter MX2 Series Type V1 User’s Manual
(Cat.
No. I585).
●CMND instruction operand
・
Setting contents of the first control word C (C: CIO 5010)
CH
Contents
Data
Description
C
Number of command data bytes (4-digit hex)
#0008
8 bytes in S to S+3
C
+
1
Number of response data bytes (4-digit hex)
#000B
11 bytes from D to the upper byte of D+5
C
+
2
Upper
#0 (fixed)
#0000
#0 (fixed)
Serial port number (1-digit hex)
Not used.
Lower
Destination network address (2-digit hex)
Own network
C
+
3
Upper
Destination node address (2-digit hex)
#0080
Local node
Lower
Destination unit address (2-digit hex)
SCU number 0, Port 1
C
+
4
Upper
Response needed/not needed (1-digit hex)
#0703
Response needed
Logical port number (1-digit hex)
No.7 to use
#0 (fixed)
#0 (fixed)
Lower
Resend times (1-digit hex)
3 times
C
+
5
Response timeout (4-digit hex)
#0000
2s: Default value
・
Setting contents of the first command word S (S: CIO 5020)
CH
Contents
Data
Description
S
Command code (4-digit hex)
#2804
Modbus-RTU communication command
S
+
1
Upper
Slave address (2-digit hex)
#0103
#01: Destination Device address
Lower
Function code (2-digit hex)
#03: Read from Holding Register
S
+
2
Register address (4-digit hex) (= register number - 1). #1016
Total Power ON Time Monitor
S
+
3
Number of read words (4-digit hex)
#0002
2 words
・
Storing contents of the first response word D (D: CIO 5500)
CH
Contents
Data
Description
D
Command code (4-digit hex)
#2804
Command code for S
D
+
1
End code (4-digit hex)
#
****
End code for FINS command
D
+
2
Upper
Slave address (2-digit hex)
#0103
#01: Slave address of S + 1
Lower
Function code (2-digit hex)
#03: Function code of S+1
D
+
3
Upper
Number of bytes to read (2-digit hex)
#04
**
#04: Twice the number of read words S+3
Lower
Read data (first byte)
First byte of total power ON time
D
+
4
Upper
Read data (second byte)
#
****
Second byte of total power ON time
Lower
Read data (third byte)
Third byte of total power ON time
D
+
5
Upper
Read data (forth byte)
#
**
00
Forth byte of total power ON time
Lower
(Not used)
#00: (Not used)
●Send/Receive messages
・
Send message Command data surrounded by bold lines above + CRC16 data (2 bytes)
・
Receive message Response data surrounded by bold lines above + CRC16 data (2 bytes)
*CRC16: Error check code of send/receive data (When sending the data, the error check code
is automatically added in the send data by Modbus-RTU communication command.
After the error check code is automatically checked when receiving the data, the
error check code is deleted from the receive data.)
Содержание CJ2*-CPU Series
Страница 63: ...58...
Страница 64: ...2015 1115 P641 E1 01...