EasyManua.ls Logo

Maynuo Electronic M9712 - Page 38

Default Icon
51 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...
34
Coil Address 2 0~0xFFFF
Force Data (Coil Status) 2 0x0000 or 0xFF00
CRC Error Check 2
Force Single Coil Example in an Illogical Response
Field Name Byte length Example Value
Slave Address 1 1~200
Function Code 1 0x85
Abnormal Code 1 01~04
CRC Error Check 2
A value of 0xFF00 will force the coil to turn ON, and 0x0000 forces the coil to be turn OFF. All other values
are invalid and will not affect the coil status.
Example
The following example places the load in remote control at slave device address of 0x01.
From table 4.8.7.1 below, we know that the PC1 remote address is 0x0510.
Query: 0x01 0x05 0x05 0x00 0xFF 0x00 0x8C 0xF6
The Correponding Response: 0x01 0x05 0x05 0x00 0xFF 0x00 0x8C 0xF6
3. Read Holding Registers (0x03)
Read Holding Registers Example Query
Field Name Byte length Example Value
Slave Address 1 1~200
Function Code 1 0x03
Starting Address 2 0~0xFFFF
No. of Points 2 n=1~32
CRC Error Check 2
Read Holding Registers Example for a Logical Response
Field Name Byte length Example Value
Slave Address 1 1~200
Function Code 1 0x03
Byte Count 1 2*n
Data 2*n
CRC Error Check 2
Read Holding Registers Example in an Illogical Response
Field Name Byte length Example Value
Slave Address 1 1~200
Function Code 1 0x83
Abnormal Code 1 01~04
CRC Error Check 2
Example
The following example reads the present voltage value at the slave device as address 0x01.
株式会社ロイノス

Table of Contents

Related product manuals