SAMOFCU2 Protocol

 

SIDC/FCU-2000 controller is produced/sold at SAM-O SYSTEM, in Korea. It is used such as <Figure 1>.

 

1. Read settings
<Figure 1> Read setting example of SIDC/FCU-2000 controller

Device part of <Figure 1> input Com Port(COM1), Com Baud(9600), Parity Bit(0), Data Bit(8), Stop Bit(1) respectively, and input TxRTS, RxECHO, 1000(Read TRS end Delay), 1000(Write TRS end Delay) for not receiving BACK sign of 485 communication.

 

SIDC/FCU-2000 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 forcedly) : 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 : Address to read(1 ~ 40). But if read size is over 2, it reads all 40 analog or digital value.

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

4) Save start address for Communication Server - Position of ScanBuf to save read value.

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

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

                     - 0 : Display only real data to memory without saving Status value and COS value. If it reads 40 AI, it displays only 40 real data value at WORD memory.

                     - 1 : Display Status value and COS value at memory. If it reads 40 AI, it displays 40 status, COS and measurement values each to 120 WORD memory.

 

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 you set AI, AO, AD, BI, BO and BD memory to display status value and read the data, it displays status value, COS and real measurement value(AI, AO, AD : WORD,  BI, BO, BD : BYTE), in order.

 

2. Writing settings

You can set time, analog, digital, schedule, configuration download etc by using writing settings of SIDC/FCU-2000 controller.

 

Digital Write

Digital write setting parameters are as follows :

1) PORT : 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 and 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 : Write current time.

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

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

SCH1 ~ SCH7 : Write schedule data from sunday to saturday.

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

Input method of Configuration Data)

Enter Configuration Data of the number of 128 Byte to SCAN directory "CFGss_pp.ppp" under WorkDirectory by classifying each data as ','.

ss is STATION number (00 ~ 255), and 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, OvrType setting – 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) 1st BO value of SIDC/FCU-2000 controller of no.1 STATION connected with no.0 port.

 

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/FCU-2000 controller of no.1 STATION connected with no.0 port 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/FCU-2000 controller of no.1 STATION connected with no.0 port.

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

 

Analog Write

Analog write setting parameters are as follows: 

1) PORT : 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 and 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 : Write current time.

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

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

SCH1 ~ SCH7 : Write schedule data from sunday to saturday.

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

Input method of Configuration Data)

Enter Configuration Data of the number of 128 Byte to SCAN directory "CFGss_pp.ppp" under WorkDirectory by classifying each data as ','.

ss is STATION number (00 ~ 255), and 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, OvrType setting– 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 : Minute), and sub 4 digits are End time(Hour : Minute).

 

Write example 1)

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

If you set as above, you can change 2nd AO value of SIDC/FCU-2000 controller of no.1 STATION connected with no.0 port.

 

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/FCU-2000 controller of no.1 STATION connected with no.0 port as Set Only status.

 

Write example 3)

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

If you set as above and write analog value as 12201635, you can send schedule data of SIDC/FCU-2000 controller of no.1 STATION connected with no.0 port to controller by setting no.15 schedule number of monday schedule as RunFlag = 1 (ON) and Pointer Number = 3, and setting Schedule Start Time as 12 : 20 and Schedule Stop Time as 16 : 35.

 

Write example 4)

PORT : 2  STATION : 3  EXTRA1 : CFG89

If you set as above, you can write Configuration Download data to no.89 Pkt No address of SIDC/FCU-2000 controller of no.3 STATION connected with no.2 port.
But, assume that Configuration Download data of the number of 128 byte is entered at 'WorkDirectory\SCAN\CFG03_89.002' file by classifying each data as comma.