Docsity

Ethernet Based Communication-Programmable Logic Controllers-Lecture 15 Slides-Electrical and Computer Engineering, Slides of Programmable Logic Controllers

Toggle sidebar
bg1
15-1
Programmable Logic
Controllers
Ethernet-Based Communication
Setup and MSG Instruction Use
Dr. D. J. Jackson Lecture 15-1Electrical & Computer Engineering
Setup and MSG Instruction Use
Communications Setup
• Assuming an RSLogix ladder logic program is
properly setup to use one of the PLCs on the
kddldfldb
networ
k
, two a
dd
itiona
l
d
ata
f
i
l
es nee
d
to
b
e
created to support use of the MSG instruction
– A MESSAGE data file
• Will hold all information for configured MSG instructions
– A ROUTING INFORMATION data file
•
Will hold routing information from configured MSG
Dr. D. J. Jackson Lecture 15-2Electrical & Computer Engineering
Will hold routing information from configured MSG
instructions
pf3
pf4
pf5

Partial preview of the text

Download Ethernet Based Communication-Programmable Logic Controllers-Lecture 15 Slides-Electrical and Computer Engineering and more Slides Programmable Logic Controllers in PDF only on Docsity!

Programmable Logic

Controllers

Ethernet-Based Communication

Setup and MSG Instruction Use

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 15-

Setup and MSG Instruction Use

Communications Setup

• Assuming an RSLogix ladder logic program is

properly setup to use one of the PLCs on the

network, two additional data files need to bek dd l d f l d b

created to support use of the MSG instruction

  • A MESSAGE data file
    • Will hold all information for configured MSG instructions
  • A ROUTING INFORMATION data file
    • Will hold routing information from configured MSG

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 15-

Will hold routing information from configured MSG instructions

MESSAGE Data File

  • Select a valid file number, usually the next available integer after the last configured data file
  • Type: Message
  • NAME: MESSAGE (optional)
  • Number of elements should correspond to the maximum unique number of MSG instructions in your program

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 15-

  • Use default values for all other entries/selections
  • This example will create the data file MG9 supporting 10 elements

ROUTING INFORMATION Data File

  • The routing information (RI) data file is used to hold information for MSG instructions when multi-hop communication is used
  • Ethernet-based communication uses this, even on a local network
  • In general, there should be one element in the routing f d f l f

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 15-

information data file for every unique MSG instruction

  • Routing information is placed in the RI data file when MSG instructions are configured and verified

MSG Setup Screen (This Controller)

  • Select Channel 1 for Ethernet communication on the configured PLC network
  • Select the communication command as 500CPU write for writing data from the source PLC to the target device
  • Set the starting address for the data to write in the Data bl dd f ld

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 15-

Table Address field

  • Size in elements: one word in this example

MSG Setup Screen (Target Device)

  • Set the starting destination address for the data to write in the Data Table Address field
  • Local/Remote: Local
  • Routing Information (RI) File
    • Select a word from the configured RI data file to hold routing information for the MSG instruction
    • A good practice would be to use

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 15-

g p the same element number as the MSG instruction you are configuring

MSG Setup Screen (Multihop Tab)

  • Configure the destination PLC IP address in the Multihop Tab
  • This information will be used to automatically populate the Routing Information data file when the MSG instruction is verified when the program is verified

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 15-

Routing Information Data File

Electrical & Computer Engineering Dr. D. J. Jackson Lecture 15-

• After verifying the MSG instruction (i.e. the

ladder program containing the MSG

instruction), the RI data file should be

configured as shown above