MASTER-K250 communication driver

 

 

MASTER-K250 communication driver is the driver to communicate with PLC of LSIS Co., Ltd.  in Korea.

 

1. Read Settings

 

<Figure 1> is read setting example of MASTER-K250 communication driver.

<Figure 1>  Read setting example of MASTER-K250 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 setting of PLC.

Baud rate, parity bit, data bit, stop bit of MASTER-K250 PLC can set by using DIP switch such as <Table 1>.

DIP switch no. ON OFF Remarks
1 9600 BPS 4800 BPS  
2 Parity Bit enable Parity Bit disable  
3 Even Parity Odd Parity when switch 2 = ON
4 7 Bit 8 Bit  
<Table 1> DIP switch setting for MASTER-K250 PLC

Please refer MASTER-K PLC manual for more infromation about communication setting.

 

MASTER-K250 communication driver read schedule

Read schedule setting parameters are as follows:

1) Station – don't care.

2) Read memory type – memory type = (P(input/output), M, L, K, F, T, C, D, S. ( refer to <Table 2> )

When you can't input memory type,  calculate the absolute address.

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

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

5) Read Size – word unit read size.

 

Read schedule example)

READ,  0,  P,  0,  0,  2,

READ,  0,  M,  0,  2,  2,

READ,  0,  D,  0,  4,  2,

READ,  0,  L,  0,  6,  2,

 

 

<Table 2> is absolute address and range for each memory type( P, M, L, K, F, T, C, D, S )

 

Memory type

Range

absolute address

D

0 ~ 1023

B000 ~ B7FF

M

0 ~ 63

C000 ~ C3FF

P

0 ~ 31

C400 ~ C5FF

K

0 ~ 31

C600 ~ C7FF

L

0 ~ 31

C800 ~ C8FF

F

0 ~ 15

C900 ~ C9FF

T

0 ~ 127

CA00 ~ CA7F

C

0 ~ 127

CA80 ~ CAFF

S

0 ~ 31

CB00 ~ CB1F

<Table 2> Absolute address and range for each memory type
 
2. Writing settings

You can set MASTER-K250 PLC by using 'writing settings'. 

 

Digital Write

Digital write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             don't care.

3)  ADDRESS          writing address in PLC memory.

4)  Extra1                  PLC memory type or command = P,M,L,K or RUN,STOP.

5) Extra2                   don't care.

 

Write example 1)

PORT:0,  station:0, ADDRESS:0100, Extra1: M,  Extra2 : 0

The setting parameter shown above is M0100 memory control(On, Off) example of MASTER-K250 PLC.

 

Write example 2)

PORT:0,  station:0, ADDRESS:0000, Extra1: RUN,  Extra2 : 0

The setting parameter shown above is PLC run control example of MASTER-K250 PLC.

 

 

Analog Write

Analog write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             don't care.

3)  ADDRESS          writing address in PLC memory.

4)  Extra1                  PLC memory type = P,M,L,K,T,C,D,S.

5) Extra2                   don't care.

 

Write example 1)

PORT:0,  station:0, ADDRESS:0090, Extra1: L,  Extra2 : 0

The setting parameter shown above is L0090 memory setting example of MASTER-K250 PLC.