Kaiyi — 6.19.2 Explanation of Communication Instructions

AH500 Programming Manual 2. The operand D 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 S 1 is a bit device, the length of the data can not be larger than 7200 bits. If S 1 is a 16-bit register, the length of the data can not be larger than 450 words. If S 1 is a 32-bit register, the length of the data can not be larger than 64 words. 4. If the remote device into which the data is written is a bit device, S 1 must be a bit device.

If the remote device into which the data is written is a register, S 1 must be a register. For example, if the remote device is a 32-bit register, S 1 must be a 32-bit counter. 5. The corresponding flags are listed below. Example: 1. The network location of the register into which the data is written is 1-1-0 (network number-node number-unit number), the register L0, and the length of the data is 10 words. (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-427 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 WRITE 1 2 3 4 5 6 7 8 Flag Request flag SM1640 SM1645 SM1650 SM1655 SM1660 SM1665 SM1670 SM1675 Wait flag SM1641 SM1646 SM1651 SM1656 SM1661 SM1666 SM1671 SM1676 Reception flag SM1642 SM1647 SM1652 SM1657 SM1662 SM1667 SM1672 SM1677 Error flag SM1643 SM1648 SM1653 SM1658 SM1663 SM1668 SM1673 SM1678 Timeout flag SM1644 SM1649 SM1654 SM1659 SM1664 SM1669 SM1674 SM1679