Download Communication/CompoWay/F
Transcript
7.9 Commands and responses (Communication/Modbus) 7.9 Commands and responses (Communication/Modbus) The E5AR/ER provides a set of command frames that make use of variable area read/write commands, operation commands, and other services provided by the Modbus communication protocol. E5AR/ER command frames are explained below. ■ Monitor value read (Communication/Modbus) Command Slave Function address mode Read start address Number of elements CRC-16 2 2 2 bytes 1 1 Address H'0400 H'0402 H'0404 H'0406 H'0408 H'040A H'040C H'4400 H'4402 H'4404 H'4406 H'4408 H'440A H'440C Ch 1 2 Monitor value Data name Version Modification type PV Internal SP Bank No. monitor PID Set No. monitor Status Version Modification type PV Internal SP Bank No. monitor PID Set No. monitor Status Address H'8400 H'8402 H'8404 H'8406 H'8408 H'840A H'840C H'C400 H'C402 H'C404 H'C406 H'C408 H'C40A H'C40C Ch 3 4 Monitor value Data name Version Modification type PV Internal SP Bank No. monitor PID Set No. monitor Status Version Modification type PV Internal SP Bank No. monitor PID Set No. monitor Status This command is used to read the PV, status, and other monitor values. The number of elements can be set from H'0004 to 006A (4 to 106) to allow reading of monitor values in contiguous addresses. When used in setting area 1, the response for the PV and internal SP is "0" and the response for the status is as indicated in the notes in "Appendix Setting list Status" (P.A-8). Response Slave Function address mode Byte count 1 Data 1 Most significant Least significant H’03 1 Read data Data 1 1 Number of elements × 2 bytes Data n Data n Most significant Least significant CRC-16 2 The above indicates a normal end. For information on error responses, see "7.5 Reading the variable area" (P.7-10). 7-17 Communication (Modbus) H’03