HSCP communication driver

 

HSCP communication driver is the driver to communicate with normal controller of Autobase Inc. in Korea.

 

1. Read Settings

 

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

<Figure 1>  Read setting example of HSCP communication driver

Device part of  <Figure 1> input Com Port(COM1), Baud Rate(19200), Parity Bit(0), Data Bit(8), Stop Bit(1) respectively, according to setting of controller.

 

HSCP communication driver read schedule

Read schedule setting parameters are as follows:

1) Station – 0 ~ 255 station number of controller.

2) Device memory type – memory type = DI, DO, AI, AO

3) Read Start Address Reading start address in device memory.

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

5) Read Size – Word unit read size.

 

Read schedule example)

READ, 0, DI,   0,   0,  2,

READ, 0, DO,  0,   2,  2,

READ, 0, AI,   0,   4,  16,

READ, 0, AO,  0,  20,  16,

 

2. Writing settings

You can set controller by using write settings.

  

Digital Write

Digital write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION              0 ~ 255 station number of controller.

3)  ADDRESS           Writing address of device type.

4)  Extra1                   Write device type = DO, AO.

5)  Extra2                   Don't care.

 

Write example 1)

PORT:0,  station:1, ADDRESS:0003, Extra1:DO,  Extra2 :

The setting parameter shown above is a bit control(On/Off) example for 0(1st) Word, 3(4th) bit.

 

Analog Write

Analog write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION              0 ~ 255 station number of controller.

3)  ADDRESS           Writing address of device type.

4)  Extra1                   Write device type = DO, AO.

5)  Extra2                   Don't care.

 

Write example 1)

PORT:0,  station:1, ADDRESS:0015, Extra1:AO,  Extra2 :

The setting parameter shown above is setting example for 15 Word memory of AO device.