SNCU-2A Light Controller Communication Driver

 

SNCU-2A Light Controller is driver to communicate with light control device of Shingyoung ENT Co., Ltd, in Korea.

 

1. Read settings

 

<Figure 1> is read setting example of SNCU-2A Light Controller communication driver.

<Figure 1> Read setting example of SNCU-2A Light Controller 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 device.

 

Reference) SNCU-2A device is Gateway for connecting with LCU(Light controller).

 

SNCU-2A Light Controller driver's read schedule

Read schedule setting parameters are as follows:

1) LCU Address of Device – Input LCU address between no.0 and no.63.

2) Read Data Type – RELAY, Etc : Reading relay current value,

LSTS : Reading LCU status(Error etc),

PSTS : Reading PSW status(Error etc).

3) Read Start Address – Don't care.

4) Save Start Address for Communication Server - Saving start address of Communication Server.

5) Read Size – Set as 1. ( It is different according to type to read, Refer to <Table 1> )

 

Read schedule example)

READ,     0,    RELAY,     0,    0,   1,

READ,     1,    RELAY,     0,   60,   1,

 

<Table 1> is read data type and contents which are used at SNCU-2A Light Controller communication driver.

Read Data Type Contents

Save Addr and Contents of Read Data

Remarks

RELAY or ETC Reading relay current value

Save addr + 0 ~ 19 : Relay current value between no.0 and no.191,

Save addr + 20 : Not save, Always 0,

Save addr + 21 ~ 24 : Relay current value no.0 and no. 31,

Save addr + 25 : Not save, Always 0,

Save addr + 26 ~ 27 : Relay current value between no.0 and no.11

Each 10 bit,

Last one is 2 bit

LSTS Reading LCU status(Error etc)

Save addr + 0 ~ : LCU status value.

( Save as much as the number of connected LCU(Max 64))

30h(48) = Normal,

55h(85) = Error

PSTS Reading PSW status(Error etc)

Save addr + 0 ~ 47 : PSW status value.

( Save as much as the number of PSW )

30h(48) = Normal,

55h(85) = Error,

00h(0) = Undesignated

<Table 1> Read data type and contents which are used at SNCU-2A Light Controller communication driver

Notice) SNCU-2A Light Controller driver's read value is saved at same address of WORD/DWORD/FLOAT memory and the saved value is different according to memory format.(Only type of saved value is different).

 

If you click the icon  in protocol option part at <Figure 1>, you can see the dialog box such as <Figure 2>. You can also set read schedule by using this part.

<Figure 2> Example of SNCU-2A Light Controller communication driver's Option dialog box

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

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

<Figure 3> SNCU-2A Light Controller communication driver's read schedule Add/Edit dialog box
2. Writing settings

You can Relay Control, Group Control, Group Data Download, Schedule Download and etc of SNCU-2A Light Controller by using writing settings.

 

Digital Write

Digital write setting parameters are as follows:

1) Port             Connected Port number. (Not COM number)

2) Station         Input LCU address between no.0 and no.63.

3) Address      Input Relay number, Groupt number and etc. ( Refer to <Table 2> )

4) Extra1          Set output type. ( Refer to <Table 2> )

5) Extra2          In case of that output type is GSCH, High 2 digits = Output time, Sub 2 digits = Set the output minute.

 

<Table 2> is description for output type, output parameters and etc which are used at SNCU-2A Light Controller, and <Table 3> is input method of download data.

Output Type(Extra1) Address
(Decimal number)
Contents

Output/Download Data

Remarks

SCAN Don't care Set as SCAN mode

Don't care

 

STOP Set as STOP mode

 

 

RELAY 0 ~ 192 Relay number Control each relay

Output value (0 = OFF, 1 = ON)

 

GROUP 0 ~ 29 Group number Control Group

 

A_GROUP 0 ~ 29 Group number Control All Group  
GDN 0 ~ 29 Group number Group data download

Send after entering data, such as <Table 3> method.

Whether to use current Group of 192 relays.

(0 = Unuse, 1 = Use)

PSW 0 ~ 15 Switch number Each PSW data download

Relay number between 1 and 8

Data : 255 = Unuse,

0 ~ 191 = Relay number.

GPSW 0 ~ 15 Switch number Group PSW data download

Relay number between 1 and 8

Data : 255 = Unuse,

0 ~ 191 = Relay number.

GSCH.xx 0 ~ 29 Group number Group schedule data download

Output value, ( 0 = OFF, 1 = ON )

Extra2 : High 2 digits = Output time,

Sub 2 digits = Output minute

Extra1 : xx = Input Real No between no.0 and no.17 ( Default = No.0 )

TIME Don't care Set the time of SNCU-2A device as computer current time

Don't care

Set the LCU address as 0

CLEAR Don't care Delete the data of downloaded Group/PSW/Schedule and etc

0 = Delete Group data,

1 = Delete pattern data,(Don't care)

2 = Delete each PSW data,

3 = Delete Group PSW data,

4 = Delete Schedule data

 

T_SET Don't care Entire LCU settings

Don't care

 

<Table 2> Description for output type, output parameters and etc which are used at SNCU-2A Light Controller

File Name

Input the WorkDirectory\SCAN\comm%03d.ini command

(%03d : PORT number, File is deleted automatically after reading)

Writing Method

Input the number which is classified by comma( , ), at single line

Remarks

 

<Table 3> Input method of download data which is used at SNCU-2A Light Controller communication driver

(Importance) Setting data download is entered to designated file, as data to download.

 

Download Data Example(Copy to WorkDirectory\SCAN\ Folder)

 

Write example 1)

PORT : 0   STATION : 0   ADDRESS : 0000  EXTRA1 : RELAY  EXTRA2 : 0

If you set as above and writing digital value, you can control(ON/OFF) no.0(first) relay of SNCU-2A no.0 LCU device connected with no.0 port.

 

Write example 2)

PORT : 0   STATION : 0   ADDRESS : 0001  EXTRA1 : RELAY  EXTRA2 : 0

If you set as above and writing digital value, you can control(ON/OFF) no.1(second) relay of SNCU-2A no.0 LCU device connected with no.0 port.

 

Write example 3)

PORT : 0   STATION : 0   ADDRESS : 0191  EXTRA1 : RELAY  EXTRA2 : 0

If you set as above and writing digital value, you can control(ON/OFF) no.191(last) relay of SNCU-2A no.0 LCU device connected with no.0 port.

 

Write example 4)

PORT : 0   STATION : 0   ADDRESS : 0002  EXTRA1 : GROUP  EXTRA2 : 0

If you set as above and writing digital value, you can control(ON/OFF) no.2(third) group of SNCU-2A no.0 LCU device connected with no.0 port. (But, group data has to be downloaded to do the real output)

 

Write example 5)

PORT : 0   STATION : 0   ADDRESS : 0003  EXTRA1 : GDN  EXTRA2 : 0

If you set as above and writing digital value, you can download data for no.3(forth) group of SNCU-2A no.0 LCU device connected with no.0 port. (But, relay data to be set at group is input at 'WorkDirectory\SCAN\comm000.ini' file)

 

Reference) Data input example when use no.0, no.2, no.6 relay) 1,0,1,0,0,0,1,¡¦.

 

Write example 6)

PORT : 0   STATION : 0   ADDRESS : 0000  EXTRA1 : GSCH.01  EXTRA2 : 1231

If you set as above and writing ON digital value, you can set operation time 12:31, ON driving and no.1 real number schedule to no.0(first) schedule of SNCU-2A no.0 LCU device connected no.0 port.

 

Write example 7)

PORT : 0   STATION : 0   ADDRESS : 0000  EXTRA1 : GSCH.01  EXTRA2 : 2345

If you set as above and writing OFF digital value, you can set operation time 23:45, OFF driving, no.1 real number schedule to no.0(first) schedule of SNCU-2A no.0 LCU device connected no.0 port.

 

Write example 8)

PORT : 0   STATION : 0   ADDRESS : 0000  EXTRA1 : TIME  EXTRA2 : 0

If you set as above and writing digital value, you can adjust current time of SNCU-2A device connected with no.0 port, as computer time.

 

Write example 9)

PORT : 0   STATION : 0   ADDRESS : 0000  EXTRA1 : CLEAR  EXTRA2 : 0

If you set as above and writing OFF digital value, you can delete the group data of SNCU-2A no.0 LCU device connected with no.0 port. ( Deleting the data such as PSW, schedule and etc, can be done by analog output(Output value = 0 ~ 4) )

 

Write example 10)

PORT : 0   STATION : 5   ADDRESS : 0000  EXTRA1 : T_SET  EXTRA2 : 0

If you set as above and writing OFF digital value, you can set total LCU amount of SNCU-2A no.0 LCU device connected with no.0 port, as 5.

 

Analog Write

Set the analog write setting by using same method with digital write, but the output value is different.

 

3. Communication cable connection

Connect communication cable to SNCU-2A Light Controller device, as follows.

 

RS-232C communication cable connection

Connect COM1 or COM2 terminal of SNCU-2A Light Controller device, as follows.

<Figure 4> is appearance of SNCU-2A Light Controller device, and <Figure 5> is LCU device.

<Figure 4> Appearance of SNCU-2A Light Controller device
<Figure 5> Appearance of LCU device
4. SNCU-2A Example Project

Example of AUTOBASE 9 Project which used SNCU-2A Light Controller device : SNCU-2A Example Project