3 ladder logic example – Rice Lake 920i Programmable HMI Indicator/Controller - ControlNet Interface User Manual
Page 19

Appendix
15
4.3
Ladder Logic Example
The following example shows the ladder logic used to retrieve and swap bytes to load a 4-word package for
processing.
0000
B3:4
5
Load new command
MOV
Move
Source
N7:8
32<
Dest
N7:2
8192<
MOV
Command for
ControlNet
0001
B3:4
4
Swap Commard Word
SWP
Swap
Source
#N7:2
Length
1
SWP
Command for
ControlNet
0002
B3:4
6
Send To Scanner
MOV
Move
Source
N7:2
8192<
Dest
O:9.3
8192<
MOV
Command to Scanner
0003
MOV
Move
Source
I:9.5
8192<
Dest
N7:4
32<
MOV
Word 1 Input I:9.5
0004
MOV
Move
Source
I:9.6
18689<
Dest
N7:5
329<
MOV
Word 2 Input I:9.6
0005
MOV
Move
Source
I:9.7
0<
Dest
N7:6
0<
MOV
Word 3 Input I:9.7
0006
MOV
Move
Source
I:9.8
4865<
Dest
N7:7
275<
MOV
Word 4 Input I:9.8
This manual is related to the following products: