INET Lightrol communication driver

 

INET Lightrol communication driver is the driver to communicate with lighting controller of Hana Mechanism in Korea.

 

1. Read Settings

 

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

<Figure 1>  Read setting example of INET Lightrol communication driver

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

 

Note) Baud rate, parity bit, data bit,  stop bit of INET Lightrol controller are fixed to 4800, 0, 8, 1.

 

INET Lightrol communication driver read schedule

Read schedule setting parameters are as follows:

1) Station – 0 ~ 63 LCU number.

2) Read command – Command = fixed to DATA. ( refer to <Table 1> )

3) Read Start Address Don't care(fixed to 0).

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

5) Read Size – Fixed to 1.

 

Note) INET Lightrol controller can read data for changed relay. ( after reboot or relay output )

 

 Read schedule example)

READ,     1,    DATA,     0,    0,   1,

READ,     2,    DATA,     0,  100,   1,

 

<Table 1> is data saving address and contents of  INET Lightrol communication driver. 

Data Saving Address Contents Data value
Start Add + 0 ~ 11 indivisual relay status 00h ~ BFh indivisual relay status value(0 ~ F bit)
Start Add + 12 ~ 13 group status data 00h ~ 1Fh group status value(0 ~ F bit)
Start Add + 14 pattern data 0 ~ 8 pattern status value(0 ~ 7 bit)
Start Add + 15 intensity of illumination intensity of illumination value
<Table 1> Data saving address and contents of  INET Lightrol communication driver

INET Lightrol communication driver store the same data in WORD, DWORD, FLOAT memory, but the data format are different.

If you click the icon  in protocol option part, you can see the dialogue box such as <Figure 3>. you can also set read schedule by using this part. 

<Figure 2> Example of INET Lightrol communication driver¡¯s Option dialog box

 You can set read schedule by using , , button and listbox of <Figure 2>.

<Figure 3> Example of INET Lightrol communication driver¡¯s read schedule Add/Edit dialog box

When you click Add button or Edit button in dialogue box of <Figure 2>, dialogue box of <Figure 3> is shown.

 

2. Writing settings

You can control indivisual/group relay by using 'writing settings'. 

 

Digital Write

Digital write and analog write have the same setting parameters except output value(0 or 1).

 

Analog Write

Analog write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             0 ~ 63 LCU number.

3)  ADDRESS          Writing relay, group number. ( hex-decimal unit )

4)  Extra1                   Command = RELAY, GROUP, SWITCH, G_DATA. ( refer to <Table 2> )

5)  Extra2                   Reading file number when SWITCH, G_DATA write command.

 

<Table 2> is write command and contents of INET Lightrol communication driver .

Command Contents Range of address Remarks
RELAY control of indivisual relay 00h ~ BFh relay number  
GROUP group control 00h ~ 1Fh group number,
you can control for setting group
 
SWITCH setting of initial switch/relay map 0 ~ 7 switch number max 6 ¢¥ 4 relay,
refer to <Table 3>
G_DATA setting of group data 00h ~ 1Fh group number max 48
refer to <Table 3>
<Table 2> Write command and contents of INET Lightrol communication driver

(Inportant) Setting of switch, group data input such as follows.

Command

Folder, filename

Remarks
SWITCH

work folder\SCAN\SWITCH_%03d.ini

%03d  = number of Extra2
G_DATA

work folder\SCAN\G_DATA_%03d.ini

<Table 3> Switch, group setting data filename for SWITCH, G_DATA write command

 Write example 1)

PORT:0,  station:1, ADDRESS:0000, Extra1: RELAY,  Extra2 : 0

The setting parameter shown above is an indivisual relay control(On/Off) example for 0 address, 1 LCU number.

 

Write example 2)

PORT:0,  station:1, ADDRESS:0005, Extra1: RELAY,  Extra2 : 0

The setting parameter shown above is an indivisual relay control(On/Off) example for 5 address, 1 LCU number.

 

Write example 3)

PORT:0,  station:1, ADDRESS:0000, Extra1: GROUP,  Extra2 : 0

The setting parameter shown above is a group relay control(On/Off) example for 0 group address, 1 LCU number.

 

Write example 4)

PORT:0,  station:1, ADDRESS:0000, Extra1: SWITCH,  Extra2 : 1

The setting parameter shown above is switch setting example for 0 switch address, 1 LCU number. The setting data read from 'work folder\SCAN\SWITCH_001.ini' file.

 

Write example 5)

PORT:0,  station:1, ADDRESS:0001, Extra1: G_DATA,  Extra2 : 2

The setting parameter shown above is group setting example for 1 group address, 1 LCU number. The setting data read from 'work folder\SCAN\G_DATA_002.ini' file. 

 

3. Connectoin of communication cable and main power

 Connection of communication cable and main power line are as follows.

 

Connection of communication cable

Please connect RS-485 communication cable to HOST +, HOST - connector of INET Lightrol controller such as <Figure 4>.

<Figure 4> is connection example of main power and communication cable to INET Lightrol controller.

 

      INET Lightrol HOST connector         RS-485 connector of computer

                 HOST + connector --------------------------   + connector

                 HOST - connector ---------------------------   - connector

<Figure 4> Connection example of main power and communication cable to INET Lightrol controller

 

Connection of main power

Please connect 220V AC main power to R, N connector of INET Lightrol controller.