![CEL-MAR ADA-DIOC40 User Manual Download Page 12](http://html1.mh-extra.com/html/cel-mar/ada-dioc40/ada-dioc40_user-manual_2579165012.webp)
0x02 – number of data bytes
0x00 – data1: current input status
0x01 – data2: previous input status
0x5A – checksum CRC16 -Low
0xFF – checksum CRC16 -Hi
Checksum CRC16 is countered from first byte (0x40) to last data bytes data2 (together with this byte).
Generating polynomial CRC16 (MODBUS) = 0xA001
6.2. MODBUS-RTU COMMUNICATION MODE
6.2.1. TABLE OF MODBUS ADDRESSES
6.2.1.1. BINARY OUTPUT STATUS FUNCTION 0x01 [0X-REFERENCES]
The module has 1 binary output, OC type marked as DO.
Register
address
Modbus
address
Description
Attr. Function
00001
0
Output status
R/W
01/05
6.2.1.2. BINARY INPUT STATUS FUNCTION 0x02 [1X-REFERENCES]
The module has 1 binary input, marked as DI.
Register
address
Modbus
address
Description
Attr.
Function
10001
0
Input status
R
02
6.2.1.3. HOLDING REGISTERS READ BY FUNCTION 03 [4X – REFERENCES]
Register
address
Modbus
address
Description
Attr.
Function
40001
0
Output status
R/W
03/06
40002
1
Input status
R
03
40003
2
Input status change counter from 0 to 1
MSB
R/W
03/06
40004
3
Input status change counter from 0 to 1 LSB
R/W
03/06
40005
4
Input status change counter from 1 to 0 MSB
R/W
03/06
40006
5
Input status change counter from 1 to 0 LSB
R/W
03/06
40007
7
Empty
R/W
03/06
6.2.2. CONSTRUCTING FRAME OF MODBUS PROTOCOL
Device address
Function
Data
CRC-16Lo
CRC-16Hi
6.2.3. MODBUS PROTOCOL FUNCTIONS
Function
code
Description
Supported
01 (0x01)
Readout of binary output status
YES
02 (0x02)
Readout of binary input status
YES
03 (0x03)
Readout of holding registers
YES
05 (0x05)
Change of single output status
YES
06 (0x06)
Change of single register value HR
YES
6.2.3.1. FUNCTION 0x01 - READOUT OF BINARY OUTPUT STATUS
Function 0x01 is used to readout status (ON / OFF) of the binary output.
The status of each binary output is presented one bit:
0 – means that binary output is in OFF status OFF – disable
1 – means that binary output is in ON status – enable
Register of the binary output status is 16-bits
12
ADA-DIOC40
Summary of Contents for ADA-DIOC40
Page 19: ...19 ADA DIOC40...