You are on page 1of 19

Advanced PLC Topics

for Micro controllers for Micro controllers


Copyright 2011 Rockwell Automation, Inc. All rights reserved.
www.infoPLC.net
Agenda
1 C t d C t U d t 1. Connected Components Update
2. How to quickly develop machine 2. How to quickly develop machine
3. Hand-on lab
4. Wrap-up
Copyright 2011 Rockwell Automation, Inc. All rights reserved. 2
www.infoPLC.net
Outline
1. Introduction
Present CC and brief product update, sample code website
Present problem(s) to be solved in lab conveyor app
Show how you might approach using OOB software (demo/presentation)
Communicate to drives using Modbus g
2. Comms portion
Show how we can make better using RA application aids (demo)
Sh h k b tt ti UDFB (h d ) Show how user can make better creating a UDFB. (hands-on)
3. Easier approach to doing math via Structured Text UDFB
Event interrupt to improve response time p p p
Copyright 2011 Rockwell Automation, Inc. All rights reserved. 3
www.infoPLC.net
Demo and Lab
What will you know after completing the lab
Be able to quickly configure a drive for speed control
Be able to quickly configure the PLC
What is the best way to control the drive using the PLC
How you can handle interruption of machine operation y
Copyright 2011 Rockwell Automation, Inc. All rights reserved. 4
www.infoPLC.net
Innovation
Micro800 & Connected Components Workbench
Just enough control Just enough control
Part of Connected
Components Bundle
Part of Connected
Components Bundle Components Bundle Components Bundle
Unified Software Unified Software
Convenience and
connectivity
Convenience and
connectivity
Unified Software Unified Software
yy
Easy to Install and Maintain Easy to Install and Maintain
(Confidential For Internal Use Only) 5
www.infoPLC.net
Innovation
Micro800 PLC Family
Micro810: Price of a smart
relay with the functionality
f Mi PLC
4Ch 10bit analog
input
4Ch 10bit analog
input
Build-In
Motion
Build-In
Motion
of a Micro PLC
Micro830: Economical PLC
Motion Motion
Plug-In Plug-In
Micro830: Economical PLC
with Plug-In customization
and PLOpen motion
Optional LCD Optional LCD
Serial Serial
Plug-In Plug-In
Ethernet Ethernet
Serial Serial
Micro850: Adds EtherNet/IP
and more I/O expansion to
USB USB
Expansion Expansion
and more I/O expansion to
Micro830 24 And 48 point
PLCs (4Q2012)
USB
(adapter)
USB
(adapter)
USB USB
(Confidential For Internal Use Only) 6
www.infoPLC.net
Connected Components Workbench Software
Easy to Acquire/Install
Free Internet download
Easy to Configure Easy to Configure
Single software for component
class products
G hi l D i C fi ti Graphical Device Configuration
Easy to Program
Extensive use of Microsoft
and IEC-61131 standards
Symbolic Programming
Rockwell Automation and Rockwell Automation and
user-defined function blocks
Easy to Update
S ft d t il bl Software updates available
via Internet
RAS1
www.infoPLC.net
Slide 7
RAS1 updated screenshot.
Rick Sykora, 9/1/2010
www.infoPLC.net
Innovation
Micro800 Plug-In Modules
Allows for highly customizable hardware
configurations by extending the
t ll I/O d i ti controllers I/O and communications
Plugs into front of controller without
increasing panel space increasing panel space
Wide range of plug-Ins available such as
analog I/O, serial ports, motion,
D i N t GPRS d t DeviceNet scanner, GPRS modem, etc.
Additional modules in future from
Encompass partners Encompass partners
(Confidential For Internal Use Only) 8 (Confidential For Internal Use Only) Copyright 2010 Rockwell Automation, Inc. All rights reserved. 8
Changes the Personality of the Base Unit Controller
www.infoPLC.net
Connected Components Release 1.1
PanelView Component
RACD
Serial (run-time)
p
With Design Station 2.0
RACD
USB/CIP or USB w/adapter (Micro810)
Hardwired
Micro830
p ( )
Hardwired
or
DSI/Modbus
USB to DSI/RS485 R1.1
LD, FBD and ST languages
= Temporary connection
g g
User Defined FB
IEC 61131 compatibility
Micro810, 830 and PF4
class drives support
PVc design station
Windows 7 64-bit support
o
f
t
w
a
r
e
o
f
t
w
a
r
e
(Confidential For Internal Use Only) 9
PowerFlex 4
Strengthening the Foundation Strengthening the Foundation
9
Windows 7 64-bit support
Chinese, English and
French localization
More robust
S
o
S
o
Kinetix 3
www.infoPLC.net
R1.1 Features (AFC December 2011)
Windows 7 64-bit support
Chinese and French localization
English user manuals
Smaller download footprint for R1 upgrade
(Global) variable export (Global) variable export
User-defined function block debugging
Improved download infrastructure (potentially improved speeds) Improved download infrastructure (potentially improved speeds)
Major R1 Anomalies Fixed
Ladder editor copy/paste
Debug view stays in frame
Fewer errors/steps to get into debug
Improved Save-As Improved Save As
Fewer exception faults
10 Copyright 2011 Rockwell
www.infoPLC.net
Current Micro800 Motion Support
Discrete I/O
Discrete I/O interface to one or more
Kinetix 3 servo drives
Micro800 user application sets digital I/O to start,
stop and set index positions
Refer to Kinetix 3 Component Servo
Drives manual
Kinetix 3 configured via Ultraware
Map digital inputs to index positions Map digital inputs to index positions
Define index positions
Modbus
(Confidential For Internal Use Only) Copyright 2010 Rockwell Automation, Inc. All rights reserved. 11
Digital I/O
www.infoPLC.net
Current Micro830 Motion Support - Modbus
Modbus communications to one or more Kinetix 3 servo drives
Micro830 user application uses MSG_MODBUS instructions or K3-specific UDFBs
(a ailable from Sample Code ebsite) to control ser o dri es in inde ing mode (available from Sample Code website) to control servo drives in indexing mode.
Refer to Kinetix 3 Host Commands for Serial Communication manual for Modbus
commands and parameters.
Micro830 controller requires serial port plug-in configured as Modbus
RTU Master
Kinetix 3 drives configured via Ultraware using 2090-CCMPDS cable Kinetix 3 drives configured via Ultraware using 2090-CCMPDS cable
Modbus
(Confidential For Internal Use Only) Copyright 2010 Rockwell Automation, Inc. All rights reserved. 12
Modbus
Modbus
www.infoPLC.net
Available K3 UDFBs from Sample Code Website
RA_K3_MBUS_OperationMode Reads the operation mode of the drive and change it if the
input is different. This function block continuously updates the output values on a 10 second
cycle, but will only write the new mode to the drive when triggered. y y gg
RA_K3_MBUS_IndexControl Provides simple index control and status for the drive. The
default operation runs continuously with a 100 millisecond cycle time.
RA_K3_MBUS_WriteIndex Provides simple index configuration for one index at a time in _ _ _ p g
the drive. This function block operates on a trigger, but will take more than one scan to complete.
RA_K3_MBUS_ReadIndex Reads the current index configuration for one index at a time in
the drive. This function block operates on a trigger, but will take more than one scan to complete.
RA_K3_MBUS_VelocityControl Provides simple velocity control and status for the drive.
The default operation runs continuously with a 100 millisecond cycle time.
RA_K3_MBUS_ChangeVelocity Updates the Preset Velocity values for the drive. This
function block continuously updates the output values on a 10 second cycle, but will only write the
input values to the drive when triggered.
RA_K3_MBUS_Jog Assuming that the drive is ready but not enabled, this function block will
ll th t j th d i f d d b k d t th d f lt j d ith t h i allow the user to jog the drive forward and backward at the default jog speed, without changing
the operation mode of the drive.
(Confidential For Internal Use Only) Copyright 2010 Rockwell Automation, Inc. All rights reserved. 13
www.infoPLC.net
RA_K3_MBUS_IndexControl UDFB
(Confidential For Internal Use Only) Copyright 2010 Rockwell Automation, Inc. All rights reserved. 14
http://samplecode.rockwellautomation.com
www.infoPLC.net
Whats new in R2?
PanelView Component
Micro850
Kinetix Servo
USB (programming)
Micro850
Stratix 2000
Ethernet switch
PTO
USB (programming)
Micro850 support (24 or 48 point base with Ethernet)
o
f
t
w
a
r
e
o
f
t
w
a
r
e
Micro850 support (24 or 48 point base with Ethernet)
Controller password
2085 I/O support
PLC i (Mi 830 d 8 0)
(Confidential For Internal Use Only) 15 15
S
o
S
o
PLCopen motion (Micro830 and 850)
PowerFlex 7 drives and support
www.infoPLC.net
Conveyor application example for the lab
Now lets take a look at a simple program for a conveyor application for
loading freight. A motor drives the conveyor belt moves the item(s) until
the item can be unloaded Depending on the type of freight the speed of the item can be unloaded. Depending on the type of freight, the speed of
the conveyor is adjusted
Copyright 2006 Rockwell
www.infoPLC.net
What controls do I need for this application?
A motor
A drive controller for the motor
A small PLC to coordinate the start/stop/speed change of the conveyor
An HMI may be a simple switch(es) or touchscreen display.
Copyright 2011 Rockwell Automation, Inc. All rights reserved. 17
www.infoPLC.net
Copyright 2011 Rockwell Automation, Inc. All rights reserved.
www.infoPLC.net

You might also like