Kaiyi — 8.4 Control Registers

AH500 Module Manual 8-8 CR# Attribute Register name Description (256 values/16 words) word device through COM1 20483~ 20498 R/W Selecting Enable boxes to enable the reading of data from bit devices through COM2 (256 values/16 words) Bit=0: Disabling the reading of data from a bit device through COM2 Bit=1: Enabling the reading of data from a bit device through COM2 24579~ 24594 R/W Selecting Enable boxes to enable the reading of data from word devices through COM2 (256 values/16 words) Bit=0: Disabling the reading of data from a word device through COM1 (256 values/16 words) Bit=1:

Enabling the reading of data from a word device through COM2 (256 values/16 words) 28675~ 28690 R/W Selecting Enable boxes to enable the writing of data into bit devices through COM2 (256 values/16 words) Bit=0: Disabling the writing of data into a bit device through COM1 (256 values/16 words) Bit=1: Enabling the writing of data into a bit device through COM2 (256 values/16 words) 32771~ 32786 R/W Selecting Enable boxes to enable the writing of data into word devices through COM2 (256 values/16 words) Bit=0: Disabling the writing of data into a word device through COM2 Bit=1: Enabling the writing of data into a word device through COM2 36864 R/W Status of sending a command through COM1 1:

The sending of a command is executed. 0: The sending of a command is complete. 36865 R/W Status of receiving a command through COM1 0: A command has not been received. 1: The receiving of a command is being processed. 2: A command is received successfully. 3: A command fails to be received. 4: Checksum error 5: Communication timeout 36866 R/W Communication protocol for exchanging data through COM1 0: MODBUS 1: RS 36867 R/W Sending/Receiving a command through COM1 0: After a command is sent, a command is received. 1: A command is sent, but no command is received. 2: No command is sent, but a command is received. 36868 R/W Timeout period after which no data is received through COM1 0:

No timeout 1~65535 ms 36869 R/W Number of times the sending of a command through COM1 is retried 0~255 36870 R/W Length of a packet which is sent through COM1 Length of a packet which is sent 36871 R/W Length of a packet which is expected to be received through COM1 Length of a packet which is expected to be received 36872~ 37367 R/W Contents of a packet sent through COM1 Contents of a packet which is sent 37368 R/W Status of sending a command through COM2 1: The sending of a command is executed. 0: The sending of a command is complete.