Download tM Series DIO User Manual

Transcript
3.1 01 (0x01) Read Coils
This function code is used to read the current digital output readback value of
the tM module.
Request
00
01
02 ~ 03
Address
Function code
Starting channel
numbers
1 Byte 1 ~ 247
1 Byte 0x01
2 Bytes 0x0000~0x001F for DO readback
value
0x0020~0x003F for DI value
0x0040~0x005F for DIO Latch high
value
04 ~ 05
Output channel
number
0x0060~0x007F for DIO Latch low
value
2 Bytes 0x0001 ~ 0x001F
Response
00
01
02
03
Address
Function code
Byte count
Output channel
readback value
1 Byte
1 Byte
1 Byte
1 Byte
1 ~ 247
0x01
1
Refer to the Supported Modules
section for the details of the value
1 Byte
1 Byte
1 Byte
1 ~ 247
0x81
Refer to the Modbus standard for
more details.
Error Response
00
01
02
Address
Function code
Exception code
tM Series DIO User Manual, Rev: A1.3 7PH-013-A13
105