|
Function code (Hex) |
Function |
Address range |
Number of registers |
Modicon notation |
Properties |
|---|---|---|---|---|---|
|
1 (0x01) |
Read Coils |
0…1 |
2 |
00001…00002 |
Read digital outputs |
|
2 (0x02) |
Read Discrete Inputs |
0…7 |
8 |
10001…10008 |
Read digital inputs |
|
3 (0x03) |
Read Multiple Holding Registers |
0…7 |
8 |
40001…40008 |
Read input counters |
|
5 (0x05) |
Write Single Coil |
0…1 |
2 |
00001…00002 |
Write digital output |
|
6 (0x06) |
Write Single Holding Register |
0…7 |
8 |
40001…40008 |
Clear input counter |
|
15 (0x0F) |
Write Multiple Coils |
0…1 |
2 |
00001…00002 |
Write digital outputs |
|
16 (0x10) |
Write Multiple Holding Registers |
0…7 |
8 |
40001…40008 |
Clear input counters |
|
Function code (Hex) |
Function |
Address range |
Number of registers |
Modicon notation |
Properties |
|---|---|---|---|---|---|
|
1 (0x01) |
Read Coils |
0…3 |
4 |
00001…00004 |
Read digital outputs |
|
2 (0x02) |
Read Discrete Inputs |
0…5 |
6 |
10001…10006 |
Read digital inputs |
|
3 (0x03) |
Read Multiple Holding Registers |
0…5 |
6 |
40001…40006 |
Read input counters |
|
4 (0x04) |
Read Input Registers |
0…1 |
2 |
30001…30002 |
Read analog inputs. For analog values, the returned value is calculated like this: value = (raw value - offset) ·multiply· |
|
100. Offset and multiply are taken from the calibration file. |
|||||
|
5 (0x05) |
Write Single Coil |
0…3 |
4 |
00001…00004 |
Write digital output |
|
6 (0x06) |
Write Single Holding Register |
0…5 |
6 |
40001…40006 |
Clear input counter |
|
15 (0x0F) |
Write Multiple Coils |
0…3 |
4 |
00001…00004 |
Write digital outputs |
|
16 (0x10) |
Write Multiple Holding Registers |
0…5 |
6 |
40001…40006 |
Clear input counters |