LG MASTER-K 120S Series User Manual page 249

Programmable logic controller
Table of Contents

Advertisement

Chapter 8 Communication Functions
7) Function code types and memory mapping
Code
01
02
03
04
05
06
15
16
• MASTER-K120S Mapping
Address
h0000
h1000
h2000
h3000
h4000
h5000
h6000
8) Modbus addressing rules
MASTER-K120S main unit starts its address from 0 and matches with 1 of Modicon products' data address. So MASTER-
K120S's address n matches n+1 of Modicon products' address. This means that the output contact point 1 (0001) of
Modicon products is marked as communication address 0 and the input contact point 1 (0001) of Modicon products is
marked as communication address 0 in MASTER-K120S.
9) The size of using data
As for data size, MASTER-K120S main unit supports 128 bytes in ASCII mode and 256 bytes in RTU mode. The maximum
size of the Modicon products is different from each other kind. So refer to "Modicon Modbus Protocol Reference Guide."
Function code name
Read Coil Status
Read Input Status
Read Holding Registers
Read Input Registers
Force Single Coil
Preset Single Register
Force Multiple Coils
Preset Multiple Registers
Bit area
Data area
P area
M area
L area
K area
F area
T area
C area
Modicon PLC
Data address
0XXXX(bit-output)
1XXXX(bit-input)
4XXXX(word-output)
3XXXX(word-input)
0XXXX(bit-output)
4XXXX(word-output)
0XXXX(bit-output)
4XXXX(word-output)
Word area
Address
h0000
h1000
h2000
h3000
h4000
h5000
T area(current value area)
h6000
C area(current value area)
h7000
h8000
8-59
Remark
Read bits
Read bits
Read words
Read words
Write bit
Write word
Write bits
Write words
Data area
P area
M area
L area
K area
F area
S area
D area

Advertisement

Table of Contents
loading

Table of Contents