About the Sample PLC5 Program
5604-RIO-PDPMV1
♦
ProLinx Standalone
Rockwell Automation® Remote I/O to PROFIBUS DP-V1 Master Gateway
ProSoft Technology, Inc.
Page 11 of 45
November 20, 2008
3
About the Sample PLC5 Program
In This Chapter
How the Sample Program Works .......................................................... 11
Connect your PC to the Processor ........................................................ 12
Download the Sample Program to the Processor.................................. 13
In order to communicate with the RIO interface on a ProLinx module, the Remote
I/O Scanner (usually a PLC) must be set up and programmed to scan the
interface. The sample ladder logic in this Setup Guide is for the PLC5 processor.
For this example, you will download the sample program (page 13) to the PLC5
processor, and then continue configuring the 5604-RIO-PDPMV1 module. When
the module is connected between the PLC5 processor and the PROFIBUS
network, you will be able to see data exchange taking place.
3.1
How the Sample Program Works
The sample program sends and receives 768 words of cyclic PROFIBUS data
between the PLC5 and the PROFIBUS slaves. The BTR and BTW rungs in the
LAD2 - BT-XFER routine transfer the entire input and output image during each
scan cycle.
You can use the sample program as-is, or you can incorporate it into an existing
program by copying the routine LAD 2 - BT-XFER and data files from the sample
program and pasting it into your existing program.
Important:
Take care not to overwrite existing data files in your application with data files in the
sample application. Rename either the source or the destination data files, and then search and
replace references in the ladder for instances of any renamed files.