SACI JBUS communication driver

 

SACI JBUS communication driver is the driver to communicate with controller(IFRA) of SACI Corp.

 

1. Read settings

 

<Figure 1> is read setting example of SACI JBUS communication driver.

<Figure 1>  Read setting example of SACI JBUS communication driver

Device settings are fixed to Com Port(COM1), Com Baud(9600), Parity Bit(0), Data Bit(8), Stop Bit(1), respectively.

 

Read schedule example)

READ STATION Read Type Read Address(Parameter) Memory Save Address Read Size
READ, 2, W, 13038, 0, 2,
FLOAT, 2, F, 12336, 0, 7,
FLOAT, 2, F, 12903, 7, 10,
FLOAT, 2, F, 12943, 17, 10,
FLOAT, 2, F, 12983,, 27, 5,
DWORD, 2, D, 12884, 0, 4,
READ, 1, W, 199, 2, 1,
FLOAT, 1, F, 222, 40, 8,
FLOAT, 1, F, 270, 48, 10,
DWORD, 1, D, 12336, 4, 4,

1) STATION : It is unique number which was set at each indicator. If this number is in discord with you input, communication is impossible.

2) Read Type : There is WORD, FLOAT, DWORD memory type at JBUS. Because memory type is different according to each address, if you read the value of relevant address, you have to write W when value to read is WORD and F when value to read is FLOAT and D when value to read is DWORD.

3) Read Start Address : Address position to read (Because it uses address as hexadecimal at indicator manual, use address by converting as decimal number. Refer to <Table 2> and <Table 3> for detailed memory area.)

4) Save Start Address for Communication Server : Buf position to save the read status value.

5) Read Size : The number of items to read at a time. (In case of DWORD or FLOAT, limit the read size as 10, because if the read size is over 10, timeout or other communication trouble is possible to occur)

 

2. Writing settings

Write to direct address of controller, regardless of SCAN File.

 

Digital Write

You can output ON/OFF status by using digital write.

Digital write setting parameters are as follows :

1) PORT           Connected PORT number           

2) Station         Station number        Unique number which was set at each indicator.

3) ADDRESS    Address to output        Output the hexadecimal value as it is in contrast with reading.

4) EXTRA2        Channel number to output      It is possible to use number between 0 and 15.

 

Write example 1) When indicator is TMC device,

STATION:1, ADDRESS:32F1, EXTRA1:3

If you set as above, you can change Digital Output 4th channel value of TMC device.

 

Analog Write

You can write FLOAT or DWORD value to controller by using analog write.

Analog write setting parameters are as follows :

1) PORT           Connected PORT number

2) Station         Station number        Unique number which was set at each indicator.

3) ADDRESS    Address to output        Output the hexadecimal value as it is in contrast with reading.

4) EXTRA1        Memory type of address to output            W = Output 2 byte value. F = Output 4 byte value as point format. D = Output 4 byte as LONG value.

 

Write example 1) When indicator is TMC device,

STATION:1, ADDRESS:3030, EXTRA1:F

If you set as above, you can change Voltage value of TMC device.

 

3. PARAMETERS and Memory Information of SACI device

There is much parameter information at SACI device.

Address area is different for each indicator. Refer to manual which is offered when buy the indicator for etc memory information, because there is much more area, in reality.

 

Memory information of TMC device

Address(Hexadecimal) Address(Decimal) Contents Read/Write Memory Format Remarks
3030 12336 ESCALAV R/W FLOAT   Voltage
3034 12340 ESCV_BCD R DWORD  
3038 12344 ESCALAI R/W FLOAT   Current
303C 12348 ESCI_BCD R DWORD  
3040 12352 REF_ENER R/W FLOAT   Energy constant
3044 12356 REF_BCD R DWORD  
3048 12360 ESCALAP R FLOAT    
3154 12628 TOTAL_0 R/W DWORD*4  
3164 12644 TOTAL_1 R/W DWORD*4  
3174 12660 TOTAL_2 R/W DWORD*4  
3184 12676 TOTAL_3 R/W DWORD*4  
3194 12692 TOTAL_4 R/W DWORD*4  
31A4 12708 TOTAL_5 R/W DWORD*4  
31B4 12724 TOTAL_6 R/W DWORD*4  
31C4 12740 TOTAL_7 R/W DWORD*4  
31D4 12756 TOTAL_8 R/W DWORD*4  
31E4 12772 TOTAL_9 R/W DWORD*4  
31F4 12788 TOTAL_10 R/W DWORD*4  
3204 12804 TOTAL_11 R/W DWORD*4  
3214 12820 TOTAL_12 R/W DWORD*4  
3224 12836 TOTAL_13 R/W DWORD*4  
3234 12852 TOTAL_14 R/W DWORD*4  
3244 12868 TOTAL_15 R/W DWORD*4  
3254 12884 TOTAL_16 R/W DWORD*4  
32DA 13018 NOMBRE R/W 10 BYTE SERIAL NUMBER
32E4 13028 ID          R/w BYTE     IDENTITY
32E5 13029 TIPO      R   DEVICE TYPE
32EB 13035 CLAVE   R/W   ACCESS CODE.MAX.9999
32EF 13039 STATUS_GEN R BYTE     STATUS GENETAL
32F0 13040 STATUS_DIG R/W BYTE     Indicates pulses or digital output
32F1 13041 SALIDA_DIG R/W BYTE Indicates the status of the digital output
<Table 2> Memory information of TMC device
Address
(Hexadecimal)
Address
(Decimal)
Contents Read/Write Memory Type Remarks
0072   NOMINAL VOLTAGE WRITING W FLOAT Write only
0076   NOMINAL CURRENT WRITING W FLOAT Write only
00B8   NOMINAL ENERGY IMPULSE W FLOAT Write only
00C7 199 INPUT STATUS R BYTE BIT 0 = ABIT
1 = BBIT
2 = CBIT
3 = D(1 = OPEN, 0 = CLOSE)
BIT 7 = OK BATTERY1= OK
00DE 222 P R FLOAT    
00E2 226 Q R FLOAT    
00E6 230 S R FLOAT    
00EA 234 COS R FLOAT    
00EE 238 Vr R FLOAT    
00F2 242 Vs R FLOAT    
00F6 246 Vt R FLOAT    
00FA 250 Freq R FLOAT    
00FE 254 Ep+ R DWORD  
0102 258 Ep- R DWORD  
0106 262 Eq+ R DWORD  
010A 266 Eq- R DWORD  
010E 270 Pr R FLOAT    
0112 274 Ps R FLOAT    
0116 278 Pt R FLOAT    
011A 282 Qr R FLOAT    
011E 286 Qs R FLOAT    
0122 290 Qt R FLOAT    
0126 294 Sr R FLOAT    
012A 298 Ss R FLOAT    
012E 302 St R FLOAT    
0132 306 Ir R FLOAT    
0136 310 Is R FLOAT    
013A 314 It R FLOAT    
02D0   ENERGY COUNTERS SETTING EP+ W DWORD Write only
02D4   ENERGY COUNTERS SETTING EP- W DWORD Write only
02D8 ENERGY COUNTERS SETTING EQ+ W DWORD Write only
02DC   ENERGY COUNTERS SETTING EQ- W DWORD Write only
3030 12336 TOTAL ENERGY COUNTER R FLOAT*4 EP+,EP-,EQ+,EQ-
3433 13363 ID R BYTE HIBYTE = IDENTITY
3531 13617 NOMINAL VOLTAGE R FLOAT Read only
3532 13618 NOMINAL CURRENT R FLOAT Read only
3731 14129 NOMINAL ENERGY IMPULSE R FLOAT Read only
<Table 3> Memory information of MFR and TECM device

Except above table, because there is much more area in reality, refer to manual about etc memory information which is offered when buy the indicator.