Kaiyi — 6.19.2 Explanation of Communication Instructions

AH500 Programming Manual 2. The operand S 1 specifies a remote device in the inferior PLC which is connected. If the remote device is illegal, the inferior PLC which is connected replies with an error message, and the error code is stored in the superior PLC. 3. The operand n specifies the length of the data. If D is a bit device, the length of the data can not be larger than 7200 bits. If D is a 16-bit register, the length of the data can not be larger than 450 words. If D is a 32-bit register, the length of the data can not be larger than 64 words. 4. If the remote device from which the data is read is a bit device, D must be a bit device.

If the remote device from which the data is read is a register, D must be a register. For example, if the remote device is a 32-bit register, D must be a 32-bit counter. 5. The instruction can be used several times in the program, but only eight instructions are executed at a time. Before the instruction is executed, users need to set the corresponding request flag to ON. If the system does not detect the corresponding flag, an error occurs. 6. The corresponding flags are listed below. Example: 1. The network location of the bit device from which the data is read is 1-1-0 (network number-node number-unit number), the bit device address is 16#00000000, and the length of the data is 10 bits.

(1) Users need to set the parameters in the corresponding registers. (2) The interval of retrying the sending of the command is three seconds, and the number of times the sending of the command is retried is three. 6-423 Item Setting Range Number of times the sending of the command is retried 0-15 Interval of retrying the sending of the command 1-65535 (Unit: 100 ms) Station address 0: PLC 1-247: COM1/COM2 IP address:

Ethernet READ 1 2 3 4 5 6 7 8 Flag Request flag SM1600 SM1605 SM1610 SM1615 SM1620 SM1625 SM1630 SM1635 Wait flag SM1601 SM1606 SM1611 SM1616 SM1621 SM1626 SM1631 SM1636 Reception flag SM1602 SM1607 SM1612 SM1617 SM1622 SM1627 SM1632 SM1637 Error flag SM1603 SM1608 SM1613 SM1618 SM1623 SM1628 SM1633 SM1638 Timeout flag SM1604 SM1609 SM1614 SM1619 SM1624 SM1629 SM1634 SM1639