HIBRAIN H Series communication driver

 

HIBRAIN H Series communication driver is the driver to communicate with PLC of Samsung Electronics and Hitachi.

 

1. Read settings

 

<Figure 1> is read setting example of HIBRAIN H Series communication driver. 

<Figure 1>  Read setting example of HIBRAIN H Series communication driver

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

In protocol option part, you can set the Lump number(default = 255, 255, 0, 0). Each argument have to separate by comma( , ).

 

Note) Baud Rate and etc of HIBRAIN H series PLC can set by using Dip switch at communcation module.( refer to <Table 1> )

 

Lump number of HiBrain H series PLC are as follows. Please refer to PLC's user manual for more inforamtion.

L : loop No. (loop number of CPU link)

U : unit No. (station number of CPU link)

M : module No. (always 00)

P : port No. (always 00)

 

<Table 1> is Dip switch setting explanation for communication module .(RS-232C or RS-422)

For HiBrain H series communication driver, you have to set ON(sum check use) the dip switch number 8.

 

<Table 2> is mode switch setting explanation of HiBrain PLC's serial port.

For HiBrain H series communication driver, you have to set 0 mode when you using RS-232C or 2, 4 mode when you using RS-422.

 

Note) HiBrain serial port for RS-232C communication have 15 pin socket, so you should to care the connection communication cable.

Please refer to PLC's user manual for more inforamtion.( you have to connect all 15 pin )

No. Contents

Switch settings

1 data bit(bit length)
baud rate

ON : 8                       OFF : 7

300   600   1200  2400  4800  9600  19.2K

2  

19.2K

3  

OFF   ON    OFF   ON    OFF   ON    OFF   ON

4  

OFF   OFF   ON    ON    OFF   OFF   ON    ON

OFF   OFF   OFF   OFF   ON    ON    ON    ON

5 use of parity

ON : use                       OFF : don't use

6 even or odd of parity

ON : even(2)                OFF : odd(1)

7 stop bit

ON : 2                        OFF : 1

8 use of sum check

ON : use                   OFF : don't use

<Table 1> Dip switch setting explanation for communication module
No.

RS-232C

RS-422

0

single direction operation(use station)

-

1

"     (don't use station)

dual direction operation(don't use station)

2

"     (   "  )

single direction operation(use station)

3

dual direction operation(don't use station)

dual direction operation(don't use station)

4

"     (   "  )

single direction operation(use station)

5

F-NET

-

6

RS-232C loopback check

-

7

"

-

8

-

RS-422 loopback check

9

-

"

<Table 2> Mode switch setting explanation of HiBrain PLC's serial port

HIBRAIN H Series communication driver read schedule

Read schedule setting parameters are as follows:

1) STATION – PLC station number = 0 ~ 31 or 256. 256 = communication for load socket.

2) Read memory – Read memory type = WX, WY, WR, WL, WM, T, C, CL, TC, DIF, DFN ...  ( refer to <Table 1> )

3) Read start address – Read start address in memory.

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

5) Read size - Read size. Max = 200.( differ read size according to memory )

 

Read schedule example) 

 READ,    0,  WR,    0,   0,    8,

 READ,    0,  WL,    0,  10,   24,

 READ,    0,  WM,    0,  50,   10,

 READ,    0,      T,    0,  60,   10,

 READ,    0,   CL,    0,  70,   10,

 READ,    0,   TC,    0,  80,     1,

 READ,    0,  DIF,    0,  81,     1,

 READ,    0, DFN,   0,  82,     1,

 READ,    0,      X,    0,  83,     8,

 

<Table 3> is memory type and address range for  HiBrain H series PLC. ( address range differ according to CPU model )

Memory type decimal address( or hex-decimal) Hex-decimal address
X 00000 ~ 4FF95 000000 ~ 04FF5F
Y 00000 ~ 4FF95 000000 ~ 04FF5F
T(timer).C(counter) 0 ~ 511 000000 ~ 0001FF
CL 0 ~ 511 000000 ~ 0001FF
WX 0000 ~ 4FF9 000000 ~ 004FF9
WY 0000 ~ 4FF9 000000 ~ 004FF9
TC 0 ~ 511 000000 ~ 0001FF
DIF 0 ~ 511 000000 ~ 0001FF
DFN 0 ~ 511 000000 ~ 0001FF
<Table 3> Memory type and address range for  HiBrain H series PLC

 X, Y, R, L, M and WX, WY, WR, WL, WM for HiBrain H Series communication are same memory area.

 X, Y, R, L, M = bit type, WX, WY, WR, WL, WM  = word type, T = timer, C = counter.

 T, C, CL, TC, DIF, DFN = bit unit address(0 ~ 511 decimal unit address), X, Y, R, L, M  = word unit address.

 

2. Writing settings

You can write the value of PLC memory by using write settings.

 

Digital Write

Digital write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             PLC station number = 0 ~ 31 or 256. 256 = communication for load socket.

3)  ADDRESS           Writing address in memory.

X, Y memory : lower 2 digit = decimal unit address,

R, L, M memory : hex-decimal unit address,

C, T, CL, TC, DIF, DFN : decimal unit address

4)  Extra1                   Writing memory type = X, Y, R, L, M, C, T, CL, TC, DIF, DFN. ( refer to <Table 1> )

5)  Extra2                   High writing address in memory.(decimal unit)

decimal unit memory :  Extra2  x 10000,

hex-decimal unit memory : Extra2   x 10000H.

 

Write example 1)

Port:0,  Station:0,  Address:0000,  Extra1: M,  Extra2: 0

The setting parameter shown above is a control(On/Off) example of M0000 address.

 

Analog Write

Analog write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             PLC station number = 0 ~ 31 or 256. 256 = communication for load socket.

3)  ADDRESS           Writing address in memory.

WX, WY, WR, WL, WM memory : hex-decimal unit address,

C, T, CL, TC, DIF, DFN : decimal unit address.

4)  Extra1                   Writing memory type = WX, WY, WR, WL, WM, C, T, CL, TC, DIF, DFN. ( refer to <Table 1> )

5)  Extra2                   Don't care.

 

Write example 1)

Port:0,  Station:0,  Address:0002,  Extra1: WM,  Extra2: 0

The setting parameter shown above is a word unit write example of WM0002 address.