PowerFlex 755 Programming With DeviceLogix PDF
PowerFlex 755 Programming With DeviceLogix PDF
DeviceLogix
Presenter: <<Your name>>
<<Your business group>>
Contents
Before you begin......................................................................................................................................... 4
Background ................................................................................................................................................... 4
Lab objectives ............................................................................................................................................... 5
Tools & prerequisites .................................................................................................................................... 5
Lab Setup ...................................................................................................................................................... 6
Connecting to the Drive.............................................................................................................................. 7
Disabling Safe Speed Monitoring Module ................................................................................................ 8
Disable DeviceLogix ................................................................................................................................. 11
Application Example 1: Diverter .............................................................................................................. 13
Downloading Predefined Parameter Set..................................................................................................... 14
Programming the Function Blocks .............................................................................................................. 16
Simulating the Application........................................................................................................................... 26
Application Example 2: Wet Well ............................................................................................................ 27
Background ................................................................................................................................................. 27
Example Application Operation................................................................................................................... 28
Disable DeviceLogix.................................................................................................................................... 29
Downloading the Configuration (Parameters & DeviceLogix)..................................................................... 31
Enable DeviceLogix .................................................................................................................................... 34
Simulating the Application........................................................................................................................... 36
Extra Challenge........................................................................................................................................... 37
3 of 39
Background
DeviceLogix is a function that has been added to a number of Rockwell Automation devices to control
and manage information locally with the device. This is accomplished through the DeviceLogix editor, the
configuration tool for DeviceLogix-capable devices. The editor is a software tool that provides a graphical
interface for configuring function blocks that allow local control within the DeviceLogix-capable device.
Previously DeviceLogix was always tied to RSNetWorx for DeviceNet. With the PowerFlex 755, however,
programming DeviceLogix is accomplished through the DeviceLogix graphical editor (
incorporated in the following drive software:
icon) which is
4 of 39
Lab objectives
This lab is intended to familiarize the student with the DeviceLogix feature in the PowerFlex 755 and its
programming. The goal is to get a view of the flexibility and strengths that DeviceLogix has to offer, and
experience the ease of use while programming a couple of basic sample applications. The student will
use predefined parameter files in which the startup for the application in question has already been
performed. The focus will be on the DeviceLogix part.
This lab takes approximately 45 minutes to complete.
5 of 39
Lab Setup
Verify that the PC and PowerFlex 755 demo are properly connected via Ethernet
On the PowerFlex 755 demo case, position switches IN2, IN3, IN4, IN5 to the left (OFF)
Pull the Safe Off switch (red mushroom button)
Turn on the drive with the Drive Power; this will supply the drive with mains power.
Turn on the 24DC Control Power; this will supply the 24V Auxiliary Power Supply board. The Auxiliary
Power supply board keeps the control boards and logic of the drive powered when mains power is
removed.
Safe
Off
Drive
Power
IN2
IN3,IN4,IN5
Control
Power
6 of 39
3. Select the drive to connect to. The status needs to show that the drive is online before clicking
Connect. If no Network name and or IP address is shown, type in a name for your network (i.e.
PowerFlex 755) Click Add Node type in the IP address of your drive (192.168.1.20) click ok
wait for status to show online click Connect. The drive now starts to upload all parameters.
4. When all parameter have been uploaded, the screen should look like this. You are now connected.
7 of 39
8 of 39
2. Set Operating Mode to Program. Double-click on parameter #6 - Operating Mode. Select Program
in the pull down and click OK.
3. Set Safety Mode to Disabled. Double-click on parameter #21 Safety Mode. Select Disable in the
pull down and click OK.
9 of 39
4. Set Operating Mode to Run. Double-click on parameter #6 - Operating Mode. Select Run in the pull
down and click OK.
10 of 39
Disable DeviceLogix
Disable DeviceLogix before downloading preconfigured parameter file to drive. Downloading will cause an
error if the DeviceLogix is running while trying to download. Locate the 14 - DeviceLogix Embedded in
the tree structure on the left hand side. Expand Host Groups and Double-Click on Status & Control.
Note: Enabling/Disabling the DeviceLogix in this manner is required when using DriveExplorer. If
downloading using DriveExecutive, the software will disable the DeviceLogix before download and enable
DeviceLogix after download.
11 of 39
Disable Logic. Double-Click on DLX Operation. Select DisableLogic in the pull down click on OK.
The drive will fault when disabling the DeviceLogix. Clear the fault by pressing the STOP key on the HIM.
12 of 39
Name
Part Present Sensor
Description
Diverter Actuator
Logic requirements:
If Part Present Sensor is ON, then increment the parts counter
If Counter preset is reached, reset the counter and alternately set or reset the diverter actuator.
13 of 39
14 of 39
3. Open the C:\Lab Files\DeviceLogix PF755 folder. (For convenience, a shortcut has been placed on
the desktop). Select the Diverter-All Ports file and click Open.
4. Click Download to download to all the ports. This will download a predefined parameter set to the
drive.
15 of 39
2. Once the editor has opened it should look like the following image. The white area is where you will
place the function blocks and interconnect them. You can find out the different functions by placing
the cursor on the buttons/icons. To start editing, you need place the editor in Edit mode, click the
Edit icon, and click Yes on the warning message.
16 of 39
3. When you are in Edit mode the function blocks will become visible. Add a Bit Input by clicking on the
button or by drag & drop. This will become the parts present sensor input.
4. At this point you need to define the input. Double clicking on the blue area (with question mark) will
open a drop-down box. Click on the drop-down arrow, expand the Hardware Boolean list, and doubleclick DIP1 (Digital InPut 1). Right now this is just a logical input that is not yet linked to any real
physical input (this will be done later). In total 16 logical inputs can be defined (DIP116).
5. Add a description to DIP1. Right click on the DIP1 then select Edit Main Operand Description. Call
it Part Present Photoeye and then click outside the edit box to close it.
17 of 39
6. According to the logic requirements of the application, the parts present sensor needs to trigger a
counter. Add an UP COUNTER by clicking on the Timer/Counter tab and then dragging & dropping
the CTU to the program area. Right-click on the counter, select Edit Main Operand Description,
and enter Parts Counter for the name. Click outside the edit box to close it.
Note: You can click & drag a Function Block to reposition it on the screen. Use the Delete key to
delete any mistakes.
7. Interconnect both items. Click on the connection pin of DIP1.
18 of 39
Move the cursor to the CUEnable pin of the UP Counter. Notice that a connection line is being
made.
19 of 39
8. The counter must reset itself when the counter has reached its preset value. Link the DN (counter
DoNe) connection pin to the Reset pin.
The DN output will become 1 or high when the counter accumulator reached its preset value, when
this happens DN output will activate the Reset input and the counting process can start over again.
9. Preset the counter with a value. This will be the amount of parts that are detected before the diverter
changes over. Double click on the Count Up function block or click on the
icon. Select the
Parameters tab and enter 2 in the PREConstantvalue (2 parts before the diverter moves). Click
OK to accept the change and close the Counter Properties window.
20 of 39
10. The DN output of the counter needs to trigger circuitry that will set and reset the diverter actuator.
This can be done by creating a Set-Reset Flip Flop circuit (see below). Add two BAND (Boolean
AND) blocks and one SETD (SET Dominant) block. Make the following connections and settings:
Output of SETD to In2 of BAND1 Negate this data by right clicking on the connection wire and
selecting Negate
Note: Your screen may look slightly different, but as long as you made the same connections it will
function the same way. You can also click & drag an item to reposition it on the screen and the
connecting wiring will automatically adjust.
21 of 39
11. Add a Bit output that will be used to control the diverter actuator. Choose DOP1 (Digital OutPut 1)
and call it Diverter actuator. DOP1 is right now only a logical output.
12. It now looks like you have completed the programming of the function blocks. Let the editor verify the
logic by clicking the
13. The configuration failed verification because it Failed to determine execution order. Click OK.
Since you looped back the connection to the BAND function blocks, the editor does not know in
which order to process the data. The connection at issue will be highlighted in red. Help the editor by
telling it which data is to be processed first. Right click on the (Output of SETD to In2 of BAND1)
connection and set Assume data available.
22 of 39
14. Once your configuration passed the verification notice how each function block has received a
number. This number defines the execution order in the program scan.
15. You are ready to download this logic configuration to the DeviceLogix (Port 14).
Edit icon.
16. Minimize
the DeviceLogix window so you can continue working with the DriveExplorer. The
logical input DIP1 (Part Present Sensor) and output DOP1 (actuator) need to be assigned to physical
I/O.
In the DriveExplorer device tree, select the I/O module in Port 7 and expand the Host Groups.
Double Click on the Digital Outputs group.
23 of 39
Assign the DOP1 to Relay Output 0. Double click on RO0 Select and make the following selections and
click OK.
The value for RO0 Select should be as follows when you are finished:
24 of 39
Assign DIP1 to digital input 0. Locate the DeviceLogix in the tree structure and open the Digital Inputs
group. Double click on DLX DIP 1, make the following selections and click OK.
The value for DLX DIP 1 should be as follows when you are finished:
25 of 39
2. Start the drive via the HIM and make it run at half speed. (Reference at 30Hz). The conveyor is now
running. Note that the drive does not have to be running for DeviceLogix to run.
3. Push the IN 0 pushbutton (Part present photo-eye) to simulate a part detection. Notice how OUT 0
Indicator Light changes state (together with DOP1 in the Editor) every time 2 parts have been
detected. You can monitor how many parts have counted by opening the parameters of the counter.
Double click Counter Up and select the Parameters tab. Monitor the ACC while triggering the part
present input.
4. You can also change the Preset value of the counter while the logic is active. Change
PREConstantValue to a higher value and apply.
5. Turn off the Drive Power (switch to the left); this removes mains power. What happens? Is the
DeviceLogix still executing the logic and triggering the output relay?
26 of 39
Background
Lift stations in sewage collection systems are normally designed to handle raw sewage that is fed from
underground gravity pipelines. Sewage is fed into and stored in an underground pit, commonly known as
wet well. The well is equipped with electrical instrumentation to detect the level of sewage present. When
the sewage level rises to a predetermined point, a pump will be started to lift the sewage upward through
a pressurized pipe system from where the sewage is discharged into a gravity manhole. From here the
cycle starts all over again until the sewage reaches its point of destination.
27 of 39
Name
Fault Reset pushbutton
Critical High Level sensor
Inputs
High Level sensor
Low Level sensor
Sensor Fault pilot light
Outputs
Description
Used to reset any faults or alarms
Indicates a critically high level. It is normally a backup to the High Level sensor and is
also used to detect if the High Level sensor is faulty. When ON, the drive will operate at
an even higher output frequency in case it is due to a high inflow.
Indicates the well is at a high level and it is time to start pumping (normal operation).
The drive operates at a normal rate unless the Critical High Level was reached.
When OFF, it is used to indicate that the well is empty (as long as the High and Critical
High Level sensors are also OFF). The drive stops operating (end of pumping cycle).
Indicates that there is a problem with either the High Level or Low Level sensors
If the drive operates for more than the normal amount of time it takes to empty the well,
there may be increased inflow or perhaps the Low Level sensor is stuck ON. An alarm
indication is made and the drive continues to operate.
Indicates a critically high level that requires immediate attention.
Logic requirements:
If Critical High Level or High Level sensor is ON, then start the drive
If Critical High Level sensor is ON, then switch to higher rate (75Hz) for the rest of the pump cycle.
Else run at normal rate (45Hz)
Run until all three level sensors are OFF
Pump should run at least x minutes (minimum time). If the Low sensor fails, this prevents the High
Level sensor from cycling the pump On/Off too quickly. For the lab, we are only using 5 seconds.
Annunciate a Sensor Fault condition
The Low Level sensor should never be OFF when the critical High Level sensor or High Level
sensor are ON
The High Level sensor should never be OFF when the Critical High Level sensor is ON
The Critical High Level sensor should never be ON when either the High Level or Low Level
sensors are OFF
Annunciate a Critical High Level condition
The Critical High Level output should never be ON
Annunciate if pumping cycle time is longer than normal (y minutes)
Monitor the amount of time a pump cycle takes by timing how the drive is operating.
If greater than y minutes, energize the Too Much Time Alarm output. For the lab, we are only
using 15 seconds
Reset alarms/Faults with a Reset pushbutton input
28 of 39
Disable DeviceLogix
1. Disable DeviceLogix before downloading to drive. Downloading will cause an error if the DeviceLogix
is running while attempting to download. Locate the 14 - DeviceLogix Embedded in the tree
structure on the left hand side. Expand Host Groups and Double-Click on Status & Control.
Note: Enabling/Disabling the DeviceLogix in this manner is required when using DriveExplorer. If
downloading using DriveExecutive, the software will disable the DeviceLogix before download and enable
DeviceLogix after download.
29 of 39
2. Disable Logic. Double-Click on DLX Operation. Select DisableLogic in the pull down click on OK.
The drive will fault when disabling the DeviceLogix. Clear the fault by pressing the STOP key on the HIM.
30 of 39
31 of 39
6. Open the C:\Lab Files\DeviceLogix PF755 folder. (For convenience, a shortcut has been placed on
the desktop). Select the Wet Well All Ports file and click Open.
7. Click Download to download to all the ports. This will download a predefined parameter set to the
drive.
32 of 39
DLX IO
Description
Digital Input 3
DLX DIP 1
Digital Input 4
DLX DIP 2
Digital Input 5
DLX DIP 3
Digital Input 1
DLX DIP 4
Relay Output 0
DLX DOP 1
Relay Output 1
DLX DOP 2
N/A
DLX DOP 3
Other important parameter settings that have been made in this parameter file
PowerFlex 755
Value
Preset Speed 1
Preset Speed 1
45Hz
Preset Speed 3
60Hz
33 of 39
Enable DeviceLogix
1. Enable DeviceLogix after logic entry and configuration. Locate the 14 - DeviceLogix Embedded in
the tree structure on the left hand side. Expand Host Groups and Double-Click on Status & Control.
34 of 39
2. Enable Logic. Double-Click on DLX Operation. Select EnableLogic in the pull down click on OK.
35 of 39
36 of 39
Extra Challenge
1. Modify the DeviceLogix program so that the potentiometer on the demo case is simulating the level of
the wet well. The logical DIP inputs representing the level sensors should not be triggered anymore
by the physical switches on the demo case, use the value of the potentiometer to trigger the different
functions.
TIP: Use compare functions
37 of 39
Set detection levels (8Volts LL, 6Volts HL, 2Volts CHL) in properties of LEQ function block (Note
that the signal is inverted so a signal loss equates to a Critical High Level)
38 of 39
Notes
39 of 39