SKY-CONTROL SIDC-100M Communication Driver

 

 

SKY-Control SIDC-100M communication driver is driver to communicate with controller of SKY Control Co., Ltd in Korea.

 

1. Read settings

<Figure 1> Read setting example for SIDC-100M 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.

Enter in the order of TxRTS, RxECHO, 30000(Reading TRS end Delay) and 30000(Writing TRS end Delay), in order not to recieve BACK signal of 485 communication. 

 

SIDC-100M driver's read schedule

Read schedule setting parameters are as follows :

1) STATION - STATION number.

2) COMMAND – Command type.

TIME : Reading current time.

AI, AO, AD : Reading analog value.

BI, BO, BD : Reading digital value.

COS(Reading COS), ACOS(Reading COS forcibly) : Reading COS value.

SCH1 ~ SCH7  : Reading schedule data from Sunday to Saturday.

3) Read Start Address – TIME, COS, ACOS : Don't care.

- AI, AO, AD, BI, BO, BD : Read start address(1 ~ 40). But if read size is over 2, it reads all analog or digital value of the number of 40.

- SCH1 ~ SCH7 : Schedule number(1 ~ 20).

4) Save start address for Communication Server - Position of ScanBuf where read value is saved.

5) Read Size - In case of AI, AO, AD, BI, BO and BD, if read size is over 2, it reads all analog/digital data of 40.

6) Display Selection of Status Value - Select whether to save status value of AI, AO, AD, BI, BO, BD reading and COS value to memory.

                     - 0 : Display only real data to memory without saving status value and COS value. If read 40 AI, it display only 40 real data value to WORD memory.

                     - 1 : Display status value and COS value to memory. If read 40 AI, it displays 120 WORD memory status, COS and measurement value, as each 40 WORDs.

 

READ schedule example)

READ,   1,   TIME,   1,    0,   1,

READ,   1,      AI,    1,   10,  40,  0,

READ,   1,      AO,   1,  200,  40,  0,

READ,   1,      BI,    1,  400,  40,  0,

READ,   1,      BO,   1,  600,  40,  0,

 

If set the AI, AO, AD, BI, BO and BD memory to display status value and read data, it display status value, COS and real measurement value (AI, AO, AD : Word,  BI, BO, BD : Byte), in order.

 

2. Writing settings

Writing of SIDC-100M controller can output time, analog, digital, schedule and configuration download etc.

 

Digital Write

Digital write setting parameters are as follows :

1) PORT : Set PORT number.

2) STATION : STATION number of SIDC/FCU2000.

3) ADDRESS : When output command is AI, AO, AD, BI, BO, BD, OVRAI, OVRAO, OVRAD, OVRBI, OVRBO, OVRBD – Output address(1 ~ 40).

                      When output command is SCH1 ~ SCH7 – High 2 digits : RunFlag (ON/OFF), Sub 2 digits : Schedule number (1 ~ 20).

                      Etc : Don't care.

4) EXTRA1 : Output command.

TIME : Writing current time.

AI, AO, AD, BI, BO, BD : Writing analog/digital value.

OVRAI, OVRAO, OVRAD, OVRBI, OVRBO, OVRBD : Writing analog/digital override point value.

SCH1 ~ SCH7  : Wrting schedule data from Sunday to Saturday.

CFG00 ~ CFG90 : Configuration Download Pkt No 00 ~ 90.

Input Method of Configuration Data) 

128 byte Configuration Data enter 128 byte data to SCAN directory "CFGss_pp.ppp" under Work directory, by classifying each data as ','.

 ss is STATION number(00 ~ 255), pp is Pkt No(00 ~ 90) and ppp is port number(000 ~ 255), in here.

5) EXTRA2 : Selection area of setting type.

If output command is OVRAI, OVRAO, OVRAD, OVRBI, OVRBO and OVRBD, set OvrType– 0 : RELEASE, 1 : Set Only, 2 Set With Value.

When output command is SCH1 ~ SCH7 – Output point number (1 ~ 40).

Etc : Don't care.

 

Write example 1)

PORT : 0  STATION : 1  ADDRESS : 0001  EXTRA1 : BO 

If you set as above, you can control(ON/OFF) first BO value of SIDC-100M controller connected with no.0 port and no.1 STATION.

 

Write example 2)

PORT : 0  STATION : 1  ADDRESS : 0012  EXTRA1 : OVRBO  EXTRA2:2

If you set as above, you can Override 12th BO point of SIDC-100M controller connected with no.0 port and no.1 STATION, as Set With Value status.

 

Write example 3)

PORT : 0  STATION : 1  EXTRA1 : CFG00 

If you set as above, you can output Configuration Download data to no.0 Pkt No address of SIDC-100M controller connected with no.0 port and no.1 STATION.

But, assume that Configuration Download data is entered as much as 128 byte to 'WorkDirectory\SCAN\CFG01_00.000' file by classifying each data as comma.

 

Analog Write

Analog write setting parameters are as follows :

1) PORT : Set PORT number.

2) STATION : STATION number of SIDC/FCU2000.

3) ADDRESS : When output command is AI, AO, AD, BI, BO, BD, OVRAI, OVRAO, OVRAD, OVRBI, OVRBO, OVRBD – Output address(1 ~ 40).

                      When output command is SCH1 ~ SCH7 – High 2 digits : RunFlag (ON/OFF), Sub 2 digits : Schedule number (1 ~ 20).

                      Etc : Don't care.

4) EXTRA1 : Output command.

TIME : Writing current time.

AI, AO, AD, BI, BO, BD : Writing analog/digital value.

OVRAI, OVRAO, OVRAD, OVRBI, OVRBO, OVRBD : Writing analog/digital override point value.

SCH1 ~ SCH7  : Writing schedule data from Sunday to Saturday.

CFG00 ~ CFG90 : Configuration Download Pkt No 00 ~ 90.

Input Method of Configuration Data) 

128 byte Configuration Data enter 128 byte data to SCAN directory "CFGss_pp.ppp" under Work directory, by classifying each data as ','.

ss is STATION number(00 ~ 255), pp is Pkt No(00 ~ 90) and ppp is port number(000 ~ 255), in here.

5) EXTRA2 : Selection area of setting type.

If output command is OVRAI, OVRAO, OVRAD, OVRBI, OVRBO and OVRBD, set OvrType – 0 : RELEASE, 1 : Set Only, 2 Set With Value.

                     When output command is SCH1 ~ SCH7 – Output point number(1 ~ 40).

                     Etc : Don't care.

 

When output command is SCH1 ~ 7, high 4 digits of analog output value are start time(hour : min) and sub 4 digits are end time(hour : min).

 

Write example 1)

PORT : 0  STATION : 1  ADDRESS : 0002  EXTRA1 : AO 

If you set as above, you can change second AO value of SIDC-100M controller of no.0 port and no.1 STATION.

 

Write example 2)

PORT : 0  STATION : 1  ADDRESS : 0027  EXTRA1 : OVRAO  EXTRA2:1

If you set as above, you can Override 27th AO point of SIDC-100M controller connected with no.0 port and no.1 STATION as Set Only status.

 

Write example 3)

PORT : 0  STATION : 1  ADDRESS : 0115  EXTRA1 : SCH2  EXTRA2:3

If you set as above and write 12201635 value, it sends schedule data to controller by setting RunFlag = 1 (ON), Pointer Number = 3, Schedule Start Time(start time) as 12:20, Schedule End Time(stop time) as 16:35, which are no.15 schedule number of SIDC-100M controller's Monday schedule connected with no.0 port and no.1 STATION.

 

Write example 4)

PORT : 2  STATION : 3  EXTRA1 : CFG89 

If you set as above, you can output Configuration Download data to no.89 Pkt No address of SIDC-100M controller connected with no.2 port and no.3 STATION.

But, assume that Configuration Download data is entered as much as 128 byte to 'WorkDirectory\SCAN\CFG03_89.002' file by classifying each data as comma.