l12 - basic plc programming with micro800 controllers · micro800® controller supports your choice...

21
Copyright © 2015 Rockwell Automation, Inc. All Rights Reserved. PUBLIC PUBLIC - 5058-CO900H L12 - Basic PLC Programming with Micro800 ® Controllers Hands-on Lab

Upload: phunganh

Post on 11-Aug-2019

252 views

Category:

Documents


1 download

TRANSCRIPT

Copyright © 2015 Rockwell Automation, Inc. All Rights Reserved.

PUBLIC

PUBLIC - 5058-CO900H

L12 - Basic PLC Programming with Micro800® ControllersHands-on Lab

Copyright © 2015 Rockwell Automation, Inc. All Rights Reserved.PUBLIC

Agenda

Hands-on Lab

Application Examples

Connected Components Workbench™ software

Micro800® Family

Introduction to Terms / Concepts

Copyright © 2015 Rockwell Automation, Inc. All Rights Reserved.PUBLIC

What Is a PLC?

3

A solid-state (electronic) device

that controls output devices that

are based on control program

and input signals

Inputs

Outputs

Control

Program

Copyright © 2015 Rockwell Automation, Inc. All Rights Reserved.PUBLIC

Two Types of I/O (Inputs and Outputs)

4

Digital Also called Discrete

Has two possible states

Represented by “1” or “0”

Electrically:

“0” is usually 0 Volts (AC or DC)

“1” is a fixed voltage value such as 5VDC, 24VDC,

120VAC,.

Technology: Relays, Triac, Transistor, MOSFET, TTL

1

0

Analog Has many possible states between two values.

Example: Temperature sensor.

Range of values between two limits. For example:

0°F represented by “0”

100°F represented by “4095” (example)

Electrically: 4-20mA, 0-5VDC, -10VDC to 10VDC

4095

0

Copyright © 2015 Rockwell Automation, Inc. All Rights Reserved.PUBLIC

Ladder Logic Example

The rung is read as:

If the Start Button is on, turn ON the Light.

If the Start Button is off, turn OFF the Light.

This is a simple rung of logic, from a PLC program:

Start_Button Light

Copyright © 2015 Rockwell Automation, Inc. All Rights Reserved.PUBLIC 6

Simple PLC Instructions (IEC 1131)

Contacts

Direct

Reverse

Coils

Direct

Reverse

Set

Reset

S

R

Instruction Blocks

Arithmetic (+ - * / COS SIN TAN)

Binary (Mask, Shift)

Boolean (AND,OR,NOT,XOR)

Comparator (< > = CMP)

Counter (CTD, CTU, CTUD)

Data Conversion (ANY_TO_**)

Process (PID, SCALER, more…)

String (FIND, REPLACE, more…)

Time (TON,TOF,TONOFF)

Copyright © 2015 Rockwell Automation, Inc. All Rights Reserved.PUBLIC

PLC Control Program

7

Program

Instructions that are used to process inputs and set outputs Primarily written as (Relay) Ladder Diagram:

Programs can also be written in other languages

Function Block or Structured Text

Data (Variables)

Examples Start_Button is assigned to a digital input

Light is assigned to a digital output

Start_Button Light

Copyright © 2015 Rockwell Automation, Inc. All Rights Reserved.PUBLIC

I/O Addressing

8

Often, a descriptive name of the device that is connected to the I/O point is

used and, or in place of the I/O variable that describes the physical location

on the controller.

Example of

user-defined

name

Example of

system-defined

I/O variable

Start Button Light

_IO_Embedded_Digital_Input_0 _IO_Embedded_Digital_Output_0

Copyright © 2015 Rockwell Automation, Inc. All Rights Reserved.PUBLIC

Applications Today Require a High Level of Control

Capability and Advanced Features

Arithmetic (Addition, Subtraction, Multiplication, Division, etc...)

Data Comparison (Equal, Greater Than or Equal, Less Than or Equal)

Word Manipulation (Copy, Move, etc...)

Communications or Messaging data between PLCs

Sequencing

Data Manipulation

Motion and Process Control (Used for Temperature, Pressure, Speed, Flow regulation)

Copyright © 2015 Rockwell Automation, Inc. All Rights Reserved.PUBLIC

Agenda

Hands-on Lab

Application Examples

Connected Components Workbench™ software

Micro800® Family

Introduction to Terms / Concepts

Copyright © 2015 Rockwell Automation, Inc. All Rights Reserved.PUBLIC

Micro800® Controller Family

11

Nano PLC Micro PLC

Micro810®

Programmable relay

replacer and timer8A relay outputs,

Analog inputs

Perf

orm

an

ce/F

eatu

res

Local I/O

Micro830®

For standalone machines

with motion

12pts

20-36pts

10-88pts

24-132ptsEach controller is cost and performance that

is optimized for specific applications

Micro820™

For smaller standalone

machines and remote

automation

Embedded

Analog I/O

Micro850®

For standalone machines

with motion and more I/O

and Ethernet connectivity.

Copyright © 2015 Rockwell Automation, Inc. All Rights Reserved.PUBLIC

Micro800® PLCs

Copyright © 2015 Rockwell Automation, Inc. All Rights Reserved.PUBLIC

Agenda

Hands-on Lab

Application Examples

Connected Components Workbench™ software

Micro800® Family

Introduction to Terms / Concepts

Copyright © 2015 Rockwell Automation, Inc. All Rights Reserved.PUBLIC

Connected Components Workbench™Single Software for All Your Component Devices

14

Copyright © 2015 Rockwell Automation, Inc. All Rights Reserved.PUBLIC

Connected Components Workbench™ Software

15

Easy to Configure Single software package for all your essential components reduces time to create and maintain your machine design

PowerFlex® drive wizards make configuration easier

Guardmaster® configurable safety relay editor make safety logic intuitive

Easy to Program Micro800® controller supports your choice of IEC-61131 PLC programming languages (Ladder Diagram, Function Block

Diagram, Structured Text) to suit your application

User-defined function blocks speed machine development

Standard PLCopen motion instructions with PTO Motion Axis and HSC Feedback Axis removes the complexity from simple positioning applications

Easy to Visualize Micro800 variable names can be directly referenced by HMI tags, which results in less complexity and time-saving

benefits

Lower the cost to Design, Develop and Deliver your machine

Copyright © 2015 Rockwell Automation, Inc. All Rights Reserved.PUBLIC 16

Standard Edition Developer Edition

Price Free for download or on DVD Contact local distributor

Common environment to configure all your

common devices

Yes Yes

Project import/export Yes Yes

Archive manager No Yes

Micro800 Programming

- IEC 61131-3 ladder diagram, function block

diagram, structured text

Yes Yes

- User-defined function block Yes Yes

- Run mode change No Yes

- User-defined data types No* Yes

- Spylist Used Existing lists New lists can be created

- Intellectual Property Protection No** Yes

* – requires Developer Edition to create new data types, which can be used in Standard Edition.

**- requires Developer Edition to create passwords, which can be used in Standard Edition.

Connected Components Workbench™ Software

Comparison of Standard versus Developer Editions

Developer Edition is for machine developers to reduce their time to Design, Develop and Deliver

Standard Edition is meant to be installed on many PCs to ensure availability for simple debugging and configuring devices

Copyright © 2015 Rockwell Automation, Inc. All Rights Reserved.PUBLIC

Agenda

Hands-on Lab

Application Examples

Connected Components Workbench™ software

Micro800® Family

Introduction to Terms / Concepts

Copyright © 2015 Rockwell Automation, Inc. All Rights Reserved.PUBLIC

Application Animations

Adhesive Labeler

Water Pump

Stretch Wrapper

Material Handling

Unit

Air Handling Unit

Solar Tracking

VFFS

Shearing Machine

Virtual demo of our application includes voiceover and Connected Components Workbench™ solution drawings

Copyright © 2015 Rockwell Automation, Inc. All Rights Reserved.PUBLIC 20

Drives and I/O on DeviceNet Safety and Motion

Micro800® Popular Configuration DrawingsHelps OEMs Size and Design Their Machines To avoid Issues Before They Happen

Copyright © 2015 Rockwell Automation, Inc. All Rights Reserved.PUBLIC 21

Agenda

Hands-on Lab

Application Examples

Connected Components Workbench™ software

Micro800® Family

Introduction to Terms / Concepts