L
ON
W
ORKS
I
NTERFACE
M
ODULE
16
O
PEN
N
ET
C
ONTROLLER
L
ON
W
ORKS
I
NTERFACE
M
ODULE
U
SER
’
S
M
ANUAL
Data Exchange between L
ON
W
ORKS
Interface Module and CPU Module
Communication data, status data, and ID data are exchanged through registers in the L
ON
W
ORKS
interface module and
link registers in the CPU module. The registers correspond to link registers as listed below:
Note:
A number 1 through 7 comes in place of * depending on the position where the functional module, such as OpenNet
inter face module or analog I/O module, is mounted. Consequently, operand numbers are automatically allocated to each
functional module in the order of increasing distance from the CPU module, star ting with L100, L200, L300, through L700.
Example 1: Receive Data in Registers C000h and C001h
When receive data enters registers C000h and C001h in the L
ON
W
ORKS
interface module, the data is transferred to a link
register in the CPU module as illustrated below:
Example 2: Transmit Data in Link Register L*04
When transmit data is stored to link register L*04 in the CPU module, the data is transferred to registers in the L
ON
W
ORKS
interface module as illustrated below:
Register Address in
L
ON
W
ORKS
Interface Module
Link Register in CPU Module
Function
Area
C000h - C001h
L*00
Receive Data
Communication
Data Area
C002h - C003h
L*01
C004h - C005h
L*02
C006h - C007h
L*03
C008h - C009h
L*04
Transmit Data
C00Ah - C00Bh
L*05
C00Ch - C00Dh
L*06
C00Eh - C00Fh
L*07
C012h
L*12
Error Data
Status Area
C013h
L*13
I/O Counts
C018h
L*24
Software Version
ID Area
C019h
L*25
Expansion Module ID
Registers in the
L
ON
W
ORKS
Interface Module
C001h (8 bits)
C000h (8 bits)
b7
b6
b5
b4
b3
b2
b1
b0
b7
b6
b5
b4
b3
b2
b1
b0
MSB
0
0
0
0
0
0
1
LSB
0
MSB
0
0
0
0
0
0
0
LSB
1
Link Register L*00
in the CPU Module
b15
b14
b13
b12
b11
b10
b9
b8
b7
b6
b5
b4
b3
b2
b1
b0
MSB
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
LSB
1
Link Register L*04
in the CPU Module
b15
b14
b13
b12
b11
b10
b9
b8
b7
b6
b5
b4
b3
b2
b1
b0
MSB
0
1
1
0
0
0
0
0
0
0
1
0
0
0
0
LSB
0
Registers in the
L
ON
W
ORKS
Interface Module
C009h (8 bits)
C008h (8 bits)
b7
b6
b5
b4
b3
b2
b1
b0
b7
b6
b5
b4
b3
b2
b1
b0
MSB
0
1
1
0
0
0
0
LSB
0
MSB
0
0
1
0
0
0
0
LSB
0