8 - programming examples, General, Individual commands – Rockwell Automation 1775-KA PLC-3 Communication Adapter Module User Manual User Manual
Page 95: Programming examples

Chapter
8
8Ć1
Programming Examples
This chapter presents some detailed examples of 1775–KA module
commands and message procedures.
The first set of examples shows individual commands that could be
programmed directly into a PLC–3 message (MSG) instruction. Figure
8.1 illustrates the differences in reading and writing data between two
PLC–3 stations. Figure 8.2 shows how to write different types of data to a
remote PLC–3 station. Figure 8.3 shows how to write different types of
data to a remote PLC or PLC–2 station.
Figure 8.1
Reading and Writing PLC-3 Data Word
I0012
01
EN
MSG
MESSAGE TYPE 1
CTL = FB200:0000=200
CHANNEL: E2.5.1
$NA:17=#H045 $B3:5
DN
ER
STAT
12
STAT
15
STAT
13
Destination
(local)
Source
(remote)
Reading word 5 of binary file 3 at data highway station 045 into word 17 of integer file 4.
Writing word 5 of binary file 3 into word 17 of integer file 4 at data highway station 045.
I0012
02
EN
MSG
MESSAGE TYPE 1
CTL = FB200:0001=200
CHANNEL: E2.5.1
#H045=N4:17 $B3:5
DN
ER
STAT
12
STAT
15
STAT
13
Destination
(local)
Source
(remote)
10032-I
General
Individual Commands