Dupline SPT-DIN Communication Driver

 

Dupline SPT-DIN communication driver is the driver to communicate with power meter of Carlo Gavazzi in Italy.

 

1. Read settings

 

<Figure 1> is read setting example of  Dupline SPT-DIN communication driver. 

<Figure 1>  Read setting example of  Dupline SPT-DIN communication driver

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

 

Dupline SPT-DIN communication driver¡¯s read schedule

Read schedule setting parameters are as follows:

1) Station – Controller station number.

2) Read Command – Don't care.

3) Read Start Address Read start address(decimal unit) of Dupline SPT-DIN controller. ( Refer to SPT-DIN reference manual )

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

5) Read Size – fixed to 1.

 

Read schedule example) 

READ,   0,    ,      20,    20,    1,

READ,   0,    ,  43520,   30,   1,

READ,   0,    ,  43533,   31,   1,

 

2. Writing settings

You can write the setting value by using write settings.

 

Bit Write

Bit write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             Controller station number.

3)  ADDRESS           Don't care.

4)  Extra1                   Write command = RST.

5)  Extra2                   Don't care.

 

Write example 1) 

PORT : 0,  STATION : 1,  ADDRESS : 0000,  EXTRA1 : RST ,  EXTRA2 :

The setting parameter shown above is power count reset example of 1 station number Dupline SPT-DIN.

 

 

Word Write

Word write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             Don't care.

3)  ADDRESS           Write address(hex-decimal unit) of Dupline SPT-DIN controller. ( Refer to SPT-DIN reference manual )

4)  Extra1                   Don't care.

5)  Extra2                   Don't care.

 

Write example 1) 

PORT : 0,  STATION : 0,  ADDRESS : AA0D,  EXTRA1 :  , EXTRA2 :

The setting parameter shown above is a write example of  AA0Dh EPROM DATA. ( station number = 0 )