AB-PLC5 TCP communication driver

 

AB-PLC5 TCP Communication Driver is the driver to communicate with  AB PLC5 of Rockwell Automation in U.S.A.

 

1. Read settings

 

<Figure 1> is read setting example of AB-PLC5 TCP communication driver.

<Figure 1> Read setting example of AB-PLC5 TCP communication driver

 Device part of  <Figure 1> input Device Type(TCP/IP), IP address of PLC(192.168.1.102), service port number(2222 : fixed) respectively.

 

AB-PLC5 TCP communication driverí»s read schedule

Read schedule setting parameters are as follows:

1) STATION – Don't care(fixed to 0).

2) memory type(and file number) – memory type = B3, N7, F8, N9, N17 ...

3) Read Start Address – read start address of memory.

4) Save Start Address for Communication Server – save start address.

5) Read Size – word unit size. 

 

Read schedule example)

READ,   0,    N7,    0,    0,  10,

READ,   0,    B3,    0,   10,  10,

FLOAT,  0,    F8,    0,    0,   1,

FLOAT,  0,    F8,    1,    1,   1,

FLOAT,  0,    F8,    2,    2,  10,

FLOAT,  0,    F8,   35,   35,  10,

 

2. Writing settings

You can write AB-PLC5 by writing settings.

 

Bit Write

Bit write setting parameters are as follows:

1) PORT : Port no. (0 ~ 255)

2) STATION :  Don't care.

3) ADDRESS : Upper 3 digit = word unit writing address (10 digit), Lower 1 digit = 0 ~ F(16 digit) writing bit pos.. (ex : 001A = 1 word A bit)

4) EXTRA 1 :  Memory type = B3, N7...

5) EXTRA 2 : Don't care.

 

Write example 1)

PORT:0   STATION:1   ADDRESS:0003  EXTRA1:N7   EXTRA2 :

The setting parameter shown above is an example of bit write for 0 word, 3 bit of memory N7 for AB-PLC5 connected with 0 port.

 

 

Word Write

Word write setting parameters are as follows:

1) PORT : Port no. (0 ~ 255)

2) STATION : Don't care.

3) ADDRESS : 10 digit word unit writing address. (ex : 0010 = 10 word address)

4) EXTRA 1 : memory type = N7, N10.

5) EXTRA 2 : Don't care.

 

Write example 1)

PORT:0   STATION:1   ADDRESS:0015   EXTRA1:N10   EXTRA2 :

The setting parameter shown above is an example of word write for 15 word of memory N10 for AB-PLC5 connected with 0 port.