Chapter 6 Applied Instruction The communication command which the AH500 series PLC receives: 3. After the receiving of the data from the ES2 series PLC is complete, SM100 is ON if no error occurs. 4. The data which is received from the ES2 series PLC is stored in the device specified by users. After the receiving of the data is complete, the AH500 series PLC automatically checks whether the data which is received is correct. If an error occurs, SM102 is ON. 5. When the ES2 series PLC receives the communication command, Y0.0 is ON. Example 5: 1. Function code 15 (16#0F): The AH500 series PLC writes the states into several bit devices in the ES2 series PLC.
The AH500 series PLC is connected to the ES2 series PLC. (ASCII mode: SM210 is OFF.) The AH500 series PLC is connected to the ES2 series PLC. (RTU mode: SM210 is ON.) 2. ASCII Mode: The AH500 series PLC is connected to the ES2 series PLC. When SM96 and X0.0 are on, the AH500 series PLC sends and receives the following commands. AH ES2 6-416 Data Description ‘0’ 16#30 ADR 1 ADR (10) is the station address of the slave. ‘0’ 16#30 ADR 0 ‘0’ 16#30 CMD 1 CMD (10) is the command code. ‘5’ 16#35 CMD 0 0’ 16#30 Initial data address ‘5’ 16#35 ‘0’ 16#30 ‘0’ 16#30 ‘F’ 16#46 Output value ‘F’ 16#46 ‘0’ 16#30 ‘0’ 16#30 ‘F’ 16#46 LRC CHK 1 LRC CHK (01) is the error checking code. ‘7’ 16#37 LRC CHK 0