Download

Application Note: WI-GTWY-9-MD1 (DF1) & Allen Bradley Micrologix 1500 PLC
PURPOSE
The purpose of this document is to provide the reader with an application note using a Micrologix
PLC with DF1 communications to a WI-GTWY-9-MD1 module.
BACKGROUND
The WI-GTWY-9 DF1 Driver allows the WI-GTWY-9-MD1 to communicate with Allen-Bradley
devices supporting the DF1 protocol. Supported commands allow communication with 500 CPU
devices (SLC-500 & Micrologix) and with PLC2 series devices. The WI-GTWY-9-MD1 will only
support the full-duplex operation this is the default DF1 mode of most equipment. DF1 full
duplex is a “peer-to-peer” protocol. Both DF1 devices can initiate commands to the other device,
and both devices will respond to commands from the other device. The WI-GTWY-9-MD1 can
act as both a command initiator and a command responder.
MATERIALS
The materials used for this application were,
Allen Bradley Micrologix 1500 PLC with programming cable,
RSLogix 500,
RSLinx,
WI-GTWY-9-MD1,
W-Series Configuration Utility (Build 148 or higher),
RS232 DB9 serial cable.
APPLICATION
This application should be read in conjunction with user manuals for details on powering and
programming the WI-I/O 9 Radio’s. The reader would also have a firm understanding of
programming Allen-Bradley Micrologix PLC’s with the RS Logix software tool.
Weidmuller
Page 1 of 8
App Note WI-GTWAY-9-MD1
WI-GTWY-9-MD1 DF1 Application Note
Issue 1.4 - January 2010
In this application the Micrologix PLC is referenced and select under “Controller Properties” as a
Bul. 1764 Micrologix 1500 LRP Series C.
Under “Channel Configuration”, Channel 1 is used and setup as follows.
Weidmuller 2010
Page 2 of 8
App Note WI-GTWY-9-MD1 (DF1) 1.4
WI-GTWY-9-MD1 DF1 Application Note
Issue 1.4 - January 2010
The following RS Logix rung logic was used in this application.
From the above example the first 3 rungs show the PLC being the initiator and WI-GTWY-9MD1 being the responder. The last 2 rungs show the PLC being the responder. The functions of
each rung are as follows,
Rung 0000 below show’s PLC logic, writing values from Integer file N7: 0 to local digital outputs
on the WI-GTWY-9-MD1. The PLC logic is setup to trigger a MSG command using S:2/5 (time
clock status bit) on transitions from low to high. A MSG (message command) is used to transfer
the data from PLC to WI-GTWY-9-MD1. The location B43:20 is I/O register 4320 in the WIGTWY-9-MD1.
Weidmuller 2010
Page 3 of 8
App Note WI-GTWY-9-MD1 (DF1) 1.4
WI-GTWY-9-MD1 DF1 Application Note
Issue 1.4 - January 2010
Rung 0000 MSG command - Setup Screen
Rung 0001 below shows a MSG command writing an Integer to a 4-20mA Since the Micrologix
platform supports signed integers (-32768 to 32767) and the radios support unsigned integers (0 to
65535). Use Long integer files types (32 bit) for Analogue inputs and outputs, the radio will
ignore the upper 16 bits of this file and give a correctly scaled output.
Note: Long Integers are supported by Micrologix 1500 only, for SLC-50/3 and above, conversion
from 16 bit unsigned integers to Floating Point is required, reference application note SLC-500
Float point for details).
Rung 0001 MSG command - Setup Screen
Weidmuller 2010
Page 4 of 8
App Note WI-GTWY-9-MD1 (DF1) 1.4
WI-GTWY-9-MD1 DF1 Application Note
Issue 1.4 - January 2010
Rung 0002 show’s the PLC as an Initiator reading (via the WI-GTWY-9-MD1) an analogue input.
This is being read into a Long integer file type (32 bit), as the radios are 16 bit unsigned integers.
Rung 0002 MSG command - Setup Screen
Rung 0003 shows the PLC being the responder in the W-series configuration under serial
mapping’s you will see the initiator command of a file write to PLC location B3: 1. Under serial
mapping’s on the WI-GTWY-9-MD1 a file write command is used from register 10 to PLC
location B3: 1. The WI-GTWY-9-MD1 does the polling to the PLC in this instance and is set up
using the “request delay” time in the options section under serial mappings. This is currently set
to 500msec.
Weidmuller 2010
Page 5 of 8
App Note WI-GTWY-9-MD1 (DF1) 1.4
WI-GTWY-9-MD1 DF1 Application Note
Issue 1.4 - January 2010
Data File location and address of PLC
Rung 0004 also show’s the PLC as the responder and the WI-GTWY-9-MD1 reading the local I/O
from the PLC and mapping them to the Digital outputs on a remote unit. In the W-series
configuration under serial mapping’s the Initiator command of File Read from PLC location B3: 2
is used and values are placed into registers 30 and onwards. These registers are then mapped from
the WI-GTWY-9-MD1 under mappings to the Digital outputs on a remote unit.
Weidmuller 2010
Page 6 of 8
App Note WI-GTWY-9-MD1 (DF1) 1.4
WI-GTWY-9-MD1 DF1 Application Note
Issue 1.4 - January 2010
Register that values from PLC B3: 2 are written to
Weidmuller 2010
Page 7 of 8
App Note WI-GTWY-9-MD1 (DF1) 1.4
WI-GTWY-9-MD1 DF1 Application Note
Issue 1.4 - January 2010
500 CPU – (SLC-500 & Micrologix) file types and addressing
The WI-GTWY-9-MD1 provides a linear address space of 10,000 data words. This is compatible
with PLC2 addresses, but does not match the addressing used by the 500CPU modules (SLC-500
& Micrologix). These address data by file number and file offset. To address an image location, L,
in the WI-GTWY-9-MD1, set the file number to L / 100 and set the file offset to L % 100. For
example, to read image location 4320 in the WI-GTWY-9-MD1, read from file number 43, offset
20.
Weidmuller 2010
Page 8 of 8
App Note WI-GTWY-9-MD1 (DF1) 1.4
Similar pages