PCD communication driver

 

PCD communication driver is the driver to communicate with P8 protocol of Saia-Burgess Controls in Switzerland.

 

Note) PCD controller have 2 Protocol, P8 and S-BUS. PCD communication driver use P8 protocol.

Baud rate, parity bit, data bit, stop bit of P8 protocol are fixed to 9600, 2, 7, 1.

 

1. Read settings

 

<Figure 1> is read setting example of PCD communication driver. 

<Figure 1>  Read setting example of PCD communication driver

Device part of  <Figure 1> input Com Port(COM1), Baud Rate(9600), Parity Bit(2), Data Bit(7), Stop Bit(1) respectively. ( fixed to 9600, 2, 7, 1 )

 

PCD communication driver¡¯s read schedule 

Read schedule setting parameters are as follows:

1) Station – don't care.

2) Read data type – data type = I,O,F,R,T,C, S0 ~ S7.

3) Read Start Address reading start address in data type. ( 0 ~ FFF )

4) Save start address for Communication Server – Saving start address of Communication Server.

5) Read Size – word or double word unit read size.

digital area ( I,O,F ) : 1 = 16bit unit,

analog area ( R,T,C ) : 1~16 word, DWORD read = double word of analog area.

 

Read schedule example)

READ,   0,     I,    2,    2,   1,

READ,   0,     O,    0,   10,   1,

READ,   0,     O,    1,   11,   1,

READ,   0,     O,    2,   12,   1,

READ,   0,     F,    0,   20,   1,

READ,   0,     F,    1,   21,   1,

READ,   0,     F,    2,   22,   1,

READ,   0,     S7,   0,   23,   1,

DWORD,  0,    R,    0,    0,  16,

DWORD,  0,    T,    0,   16,  16,

 

Note) S0~S7 data type read PCD status.

The readed PCD status are as follows:

0=Stop, 

1=Run,

2=Halted,

3=Conditional Running,

4 = Disconnected

 

2. Writing settings

You can control PCD controller by using 'write settings'.

 

Digital Write

Digital write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             don't care.

3)  ADDRESS           writing address in data type.

4)  Extra1                   write data type = O, F, S.

5)  Extra2                   Don't care.

 

Write example 1)

PORT : 0 , STATION : 0,  ADDRESS : 0021,  EXTRA1 : F,  EXTRA2 :

The setting parameter shown above is control( On/Off ) example of F0021 address.

 

Write example 2)

PORT : 0 , STATION : 0,  ADDRESS : 0021,  EXTRA1 : S7,  EXTRA2 :

The setting parameter shown above is Run/Stop( On/Off ) example of PCD own cpu status.

 

Analog Write

Analog write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             don't care.

3)  ADDRESS           writing address in data type.

4)  Extra1                   write data type = R, T, C.

5)  Extra2                   Don't care.

 

Write example 1)

PORT : 0 , STATION : 0,  ADDRESS : 0304,  EXTRA1 : T,  EXTRA2 :

The setting parameter shown above is setting example of T304 address.