Delta AH500 — 6.19.2 Explanation of Communication Instructions

AH500 Programming Manual Communication protocol setup example: 1. The communication setup for this example is RS232 9600, 7, N, 1. 2. Communication port for data transmission is RS232 (SR215=0). 3. The transmission speed and format for the communicationport are 9600, 7, N, 1 (SR209=16#0020). 4. Set the number of times the command is resent (SR211=1). 5. Set the communication timeout to 3000ms (SR210=3000). 6. Set the communication mode to 16-bit mode (SM106=OFF). 7. Enable the communication protocol (SM209=ON). For users who set up the communication port in ISPSoft -> HWCONFIG -> COM Port, this step can be ignored. Example: 1.

Users can set up the PLC communication port in HWCONFIG or set values in the relative spcial auxiliary relays to set up the communication (as the example stated). 2. Write the data which will be sent into the registers starting from D10, and then set SM96 to ON. 3. When X0.1 and X0.3 are ON, the instruction RS is executed. The data in the n registers starting from D10 is sent. After the sending of the data is complete, SM96 is reset to OFF automatically. (Please do not use the instruction RST to reset SM96.) If there is data which needs to be received, the data is stored in the registers starting from D100. 4. After the receiving of the data is complete, SM100 is ON.

Besides, SM100 has to be reset to OFF after the data which has been received is processed. Please do not execute the instruction RST continuously. 6-394 8-bit mode, data transmission 0x01234567 D10 (high) D10 (low) D11 (high) D11 (low) D12 (high) D12 (low) D13 (high) D13 (low) * 16#01 * 16#23 * 16#45 * 16#67 16-bit mode, data transmission 0x1234567 D10 D11 D12 D13 16#2301 16#6745