LCM-640 communication driver

 

LCM-640 communication driver is the driver to communicate with lighting controller of ShinA System in Korea.

 

1. Read Settings

 

<Figure 1> is read setting example of LCM-640 communication driver.

<Figure 1>  Read setting example of LCM-640 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 controller.

Baud rate of LA250 can set at controller, but Parity Bit, Data Bit, Stop Bit are fixed to 1, 7, 1.

 

LCM-640 communication driver read schedule

1) Station – station number of LCM-640.

2) Read command – don't care.

3) Read start address –  don't care.

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

5) Read Size – Fixed to 3 word.

 

Read schedule example)

READ,   0,   0,  0,    0,  3,

READ,   1,   0,  0,   10,  3,

 

2. Writing settings

You can control LCM-640 controller by using 'writing settings'. 

 

Digital Write

Digital write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             station number of LCM-640.

3)  ADDRESS          0 ~ 3F(dex-decimal unit) writing address(group) of controller.

4)  Extra1                  don't care.

5) Extra2                   control type. 1 = cold start, 2=  group control, 0 = relay control.

 

Write example 1)

PORT:0,  station:1, ADDRESS:000B, Extra1: ,  Extra2 : 0

The setting parameter shown above is a 12th(0B) lighting control example.

 

Analog Write

LCM-640 communication driver don't support 'Analog Write'.