23
IM 04L51B01-18EN
Example of an Explicit Message Using RSLogix 5000
This is an example of using RSLogix 5000 to configure an Explicit message to be sent to the
GX/GP by a PLC supporting the CIP Data Table Read/Write command.
This section assumes that the reader is familiar with the operations of RSLogix 5000 and
RSLinx and that RSLogix 5000 can communicate with the target GX/GP via RSLinx.
Tag
Making tags initially will be useful. Go to Controller Organizer (a tree on the left side of the
screen) and open Controller Tag to make a tag with Data Type of Message (Name the tag
as MSG1). Also, make a tag used to retain data to be written to the GX/GP (Name the tag
as DATATransfer and store 10 FLOAT values). Make a bit used to launch a message as
WriteMessageBit.
Controller Tags
Name
Data Type
DATATransfer
REAL [10]
MSG1
Message
WriteMessageBit
BOOL
MSG Instruction
Go to the Input/Output tab, then the Ladder Element toolbar to select MSG. The MSG block
is inserted as ladder output. Tag MSG1 is assigned to the MSG block.
MSG
MSG1
(EN)
Message Control
Message
(DN)
(ER)
...
Make the MSG block settings (Click the
...
button in the MSG block). The following shows
an example in which the PLC writes data to the communication channel data C001 to C010
on the GX/GP.
Set the Message Type as “CIP Data Table Write,” Source Element as “DATATransfer”
(a tag in the PLC described earlier), Number of Element as “10” (which can be set to a
larger value if more data should be read or written per message). Set the Destination
Element as “real [6000]. “This corresponds to communication channel data C001 on the GX/
GP.
Message Configuration
Configuration Tab
Message Type
CIP Data Table Write
Source Element
DATATransfer
Number Of Element
10
Destination Element
real [6000]
Next, go to the Communication tab and set a connection path to the GX/GP. The path name
should consist of the PLC Ethernet port name (LocalENB in this example), comma, 2,
comma, and the GX/GP IP address in this order.
Message Configuration
Communication Tab
Path
LocalENB,2,192.168.1.126
Содержание Vigilantplant SMARTDAC+ Series
Страница 31: ...Blank ...