Delta AH500 Programming Manual page 561

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

D10 (high) D10 (low) D11 (high) D11 (low) D12 (high) D12 (low) D13 (high) D13 (low)
16#01
*
D10
16#2301
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
8-bit mode, data transmission 0x01234567
16#23
*
16-bit mode, data transmission 0x1234567
D11
16#6745
C ha pt er 6 A p pl i e d In s tr uc t io n
16#45
*
*
D12
16#67
D13
6 - 3 9 3

Advertisement

Table of Contents
loading

Table of Contents