![SEW DFD11B Manual Download Page 36](http://html1.mh-extra.com/html/sew/dfd11b/dfd11b_manual_1250019036.webp)
36
Manual – DFD11B DeviceNet Fieldbus Interface
5
Programming samples in RSLogix 5000
Project Planning and Startup
In order to copy the data from the new data structure to the drive, CPS commands
are added into the 'MainRoutine' that write the data to the local I/O.
Make sure that these CPS commands are executed
before
the automatically (by
DeviceNet Tag Generator) generated
DNet_ScannerOutputsRoutine
.
Please note that the structure DNet_Scanner_N10_POL_O.Data contains the PD to
all drives on the gateway, so that the 6 data bytes of to each drive have to be copied
to the structure with a specific offset: [0], [6], [12] ... [42].
7. Finally save and download the project to the PLC. set the PLC to Run Mode and set
the
Scanner CommandRegister.Run
to '1' to activate the data exchange via
DeviceNet.
Now the actual values from the device can be read and setpoint values can written
(
→
following figure).
11760AXX
11761AXX
0
0
I