AH500 Programming Manual Example 4: 1. Function code 05 (16#05): The AH500 series PLC writes the state into a bit device 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 The AH500 series PLC sends “ : 00 05 0500 FF00 F7 CR LF”. The AH500 series PLC receives “ : 00 05 0500 FF00 F7 CR LF”. ES2 AH The communication command which the AH500 series PLC sends:
6-415 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