Product Family: DirectLogic PLC Number: AN-MISC-022

Similar documents
Chapter. RLL PLUS Stage. In this Chapter

E3C-LDA. Phone: Fax: Web: - Operating Procedures: Photoelectric Sensors

PSC300 Operation Manual

The Curve of the Earth An electric score for solo network instrument with optional observations

Keyboard Controlled Scoreboard

VLC-3 USER'S MANUAL. Light Program Controller. M rev. 04 K rev. 00 & ( ( 5, 352*5$0 1 : $ 2 ' 6(77,1*6 )81&7,216

Main Display (Red) Displays the incident light level or the function name.

MODULE TITLE : PROGRAMMABLE LOGIC CONTROLLERS TOPIC TITLES : PROGRAMMABLE FACILITIES AND ADDITIONAL FACILITIES TUTOR MARKED ASSIGNMENT 3

State Transistional Logic

MAKE HAZARD ANALYSES BETTER SINGLE-USE DEVICES GAIN PERMANENT PLACE PATH FOR PROCESS SAFETY EMERGES

Ch 6 Basic Memory Circuits 1

USCG Exam questions related to PLCs by Frank Owen, Maine Maritime Academy, 23 October 2018

Product Update. JTAG Issues and the Use of RT54SX Devices

Coimisiún na Scrúduithe Stáit State Examinations Commission. Leaving Certificate Examination, Answer these questions in the answerbook provided.

Lecture-47 INTEL 8085A INTERRUPT STRUCTURE

Chapter 9 Introduction to Sequential Logic

INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR NPTEL ONLINE CERTIFICATION COURSE. On Industrial Automation and Control

INTRODUCTION In this lesson, we will analyze the different kinds of PLC programming focusing, in particular, on the LAD and STL programming method.

Hello, and welcome to this presentation of the STM32 system window watchdog. It will cover the main features of this peripheral used to detect

CS-2T Timer. Safety. Controls and Indicators. Nordson Corporation OPERATOR S CARD P/N A

Sample BD Tech Concepts LLC

Experiment 3: Basic Embedded System Analysis and Design

Automatic Transfer Switch Control PLC Operator s Manual

LVDT. Inductive Position Transducer - Hydraulic Series. SM-HYD Hydraulic Series. Key-Features:

CPS311 Lecture: Sequential Circuits

802DN Series A DeviceNet Limit Switch Parameter List

Application Note. RTC Binary Counter An Introduction AN-CM-253

MC9211 Computer Organization

Color Pro DMX Protocol

GuardPLC Certified Function Blocks -- Basic Suite

Application Note. Traffic Signal Controller AN-CM-231

Exercise 4-2. Counting of Actuator Cycles EXERCISE OBJECTIVE & & &

Click Here To Start Demo

Training Document for Comprehensive Automation Solutions Totally Integrated Automation (T I A)

Welcome. Explanation of Counter-, Integrator- and Operating time counter function of the LOGOSCREEN 500 cf. Dipl.-Ing. Manfred Schleicher

Application Note. Basketball Arcade Machine AN-CM-234

Variwrap Controller Manual

Ford AMS Test Bench Operating Instructions

Preset counters, electronic

EVF 300 series. Controllers for electric bread and pizza ovens, with touch-keys, in split version and which can be integrated into the unit.

ECB DIGITAL ELECTRONICS PROJECT BASED LEARNING PROJECT REPORT ON 7 SEGMENT DIGITAL STOP WATCH USING DECODER

Triple RTD. On-board Digital Signal Processor. Linearization RTDs 20 Hz averaged outputs 16-bit precision comparator function.

Multifunction devices

XYZ Cinemas - ecna Configuration 12/12/2013 Table of Contents

Computer Architecture Basic Computer Organization and Design

KRS-V7A Programming Software for the Kenwood TM-V7A

WCS-D800 Programming Software for the Icom ID-800

Sample BD Tech Concepts LLC

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

Ford AMS Test Bench Operating Instructions

STX Stairs lighting controller.

WCS-V82 Programming Software for the Icom IC-V82

UNIVERSAL DIGITAL METER DC Volts and Amps AC RMS Volts and Amps Thermocouples and RTDs Process Signals Strain Gauge and Load Cell

NEW YORK. Dear Precision, Purchased 6/1/2004

013-RD

ELCT201: DIGITAL LOGIC DESIGN

Marks and Grades Project

Digital Logic & Computer Design CS Professor Dan Moldovan Spring Chapter 3 :: Sequential Logic Design

DCP100 Digital Control Programmer Specifications

ACT 10 Digital Keypad Operating & Installation Instructions This manual is found at

Scan. This is a sample of the first 15 pages of the Scan chapter.

IEFIS G3 Inputs, outputs and Alarms

WINTER 15 EXAMINATION Model Answer

7 SEGMENT LED DISPLAY KIT

Manhattan Model: Plaza HDR S 500GB LET S GET STARTED YOUR USER GUIDE

Decade Counters Mod-5 counter: Decade Counter:

Optical Technologies Micro Motion Absolute, Technology Overview & Programming

Automation Interface Requirements for J602 Basic I/O Interface of a DPC 4 Welding System

Ecomind Electricity Monitor Kit EM422EM-E-KBTS EM422EM-E-KMTS. Installation Instructions

Tech Support: Customer Service: General Tech Questions: Tech Docs:

Catch or Die! Julia A. and Andrew C. ECE 150 Cooper Union Spring 2010

FRQM-2 Frequency Counter & RF Multimeter

MARCO CORNER, 19/ THIENE (VI) ITALIA

8000 Plus Series Safety Light Curtain Installation Sheet ( CD206A/ CD206B )

DIGITAL TIMER - MODES- rev. 5.5

TSIU03, SYSTEM DESIGN. How to Describe a HW Circuit

Latches, Flip-Flops, and Registers. Dr. Ouiem Bchir

FlexiScan. Impro FlexiScan 4-Channel Controller INSTALLATION MANUAL

Herzlich Willkommen Bienvenue Welcome. General Basics JUMO Screen Recorders. Manfred Schleicher

OPERATION MANUAL OF MULTIHEAD WEIGHER

Laboratory Exercise 4

Using the More Advanced Features of the AUTOcard-SA System

give sequence to events have memory (short-term) use feedback from output to input to store information

FX-2DA SPECIAL FUNCTION BLOCK USER'S GUIDE

Report on 4-bit Counter design Report- 1, 2. Report on D- Flipflop. Course project for ECE533

USER GUIDE TO THE ARENA OPERATION

Simple motion control implementation

REMOTE DISPLAY WIRELESS DECODER MK II

Special Applications Modules

LED7706/7/8. LED drivers for backlighting and lighting applications.

HDL & High Level Synthesize (EEET 2035) Laboratory II Sequential Circuits with VHDL: DFF, Counter, TFF and Timer

1. a) For the circuit shown in figure 1.1, draw a truth table showing the output Q for all combinations of inputs A, B and C. [4] Figure 1.

OPERATION AND MAINTENANCE

Synchronous sequential circuits

E-TUBE RIDE Operating Instructions

ANALOG I/O MODULES AD268 / DA264 / TC218 USER S MANUAL

Operating instructions - High Performance LED Timer / / /

Safety FIND THE FEED CABLE IN YOUR ELECTRICITY METER (UK)

16 Stage Bi-Directional LED Sequencer

UNIT III. Combinational Circuit- Block Diagram. Sequential Circuit- Block Diagram

Transcription:

APPLICATION NOTE THIS INFORMATION PROVIDED BY AUTOMATIONDIRECT.COM TECHNICAL SUPPORT These documents are provided by our technical support department to assist others. We do not guarantee that the data is suitable for your particular application, nor do we assume any responsibility for them in Product Family: DirectLogic PLC Number: AN-MISC-022 Subject: Date Issued: 06/16/04 Revision: Original Jumping on the "stage" wagon The Technical Support Team at AutomationDirect receives a large number of calls on RLL Plus (Relay Ladder Logic Plus) programming, also known as "Stage" programming. Most of the callers want to understand how and when it should be used. The short answer to the "when" question is that it depends on the process that is being controlled. The "how" question will be answered later. Stage is an advanced style of programming that is suitable for a moderately experienced programmer. A thorough knowledge of how the PLC scans the program is necessary to avoid complications. However, it is not a "different" language than RLL. It uses the same instruction set and is scanned in much the same way with a few exceptions. RLL Plus or "Stage" programming is well suited to a process that has clearly defined "steps" or stages that will occur multiple times during the process. It is not suited for processes that are linear, and have poorly defined "steps". For example, making a batch of cookie dough might be a good use for Stage programming, while baking the cookies would not be, since baking only has one step (i.e., cooking the dough.) A good example to illustrate the use of Stage programming is a machine that mixes bread dough. A bread dough machine has several unique "steps" to create the final product. Some of those steps will be done more than one time throughout the process. As you can see in Figure 1, small portions of the standard RLL program are needed multiple times. For example, the mixer will be turned on and off many times throughout the program. It will always need the same alarms and safeties each time it operates. While you could minimize the amount of ladder by paralleling contacts, it does make a program harder to read. By placing the startup, safety, alarm, and shutdown for the mixer all in one stage, you can enable the same code many times in the program and cut down on your programming time (Figure 2).

Figure 1 Flowchart example using standard RLL programming Figure 2 Flowchart example using stage programming Stages are not like subroutines. They are scanned just as if they are regular ladder logic. The closest thing to a stage is a Master Control Relay. If the MCR is on, then the power rail is processed. If the MCR is off, then the power rail is skipped. Stages operate in much the same fashion. If the stage is enabled, the power rail has power and the logic is executed. If it is disabled, then all logic within that stage is skipped (not processed) because the power rail has no power. There are three main behaviors to Stage programming: 1) When the stage bit is on, the corresponding stage is scanned and logic within that stage is evaluated and processed. Page 2 of 5

2) When the stage bit is transitioning from on to off, the corresponding stage will be scanned one more time to turn off all outputs that are currently on. 3) When the stage bit is off, the corresponding stage is not scanned and therefore no logic in that stage is evaluated or processed. There are some caveats to be aware of with stage programming that concern turning stages on and off. These are detailed in AutomationDirect PLC user manuals, which can be purchased separately or downloaded from www.automationdirect.com. Stage programming can save PLC memory and improve scan time by reducing the number of repeated sequences and by scanning only the stages that are active. These are two more good reasons to think about using stage programming, but they are not good reasons to use stage if the process is not suited for it. Stage programming and standard RLL logic style programming can be intermixed by placing standard RLL at the beginning of the program, but usually there is no need to do this. A proper stage program will start with one or more initial stages and have numerous stages that will be turned on and off throughout the program cycle. There are two ways to activate a stage: with a "Jump" instruction or by setting the stage bit. The Jump instruction deactivates the current stage while activating the specified stage. It does not jump over other code. Setting the stage bit will activate the specified stage while leaving the current stage running as well. By using Set instructions you can have many stages active at one time. The Reset instruction works in much the same manner as the Set instruction. You can reset one stage or a whole group of stages at one time using the Reset instruction. When exiting a stage, whether by jumping out of it or by resetting the stage bit, the stage will always finish scanning before turning the power rail off. When jumping out of the current stage, the current stage will be scanned one more time after the current scan is completed. This behavior can cause problems with some processes if it is not accounted for. A stage is turned off by jumping out of it or by resetting it. All outputs, timers and counters, unless set, will be turned off. The simple explanation is that turning off a stage turns off the power rail. If there is no power, then the instructions are turned off. Timers and Out instructions, for example, rely on the power rail to maintain their state. Once power is removed, they turn off. This happens with other instructions as well. The following examples show Stage programming and how Stage would look if using Standard RLL: Page 3 of 5

Page 4 of 5

Stage programming can certainly help organize a program, but it isn't always useful for every program. The key to help determine if Stage programming should be considered is, "Can this program be broken down into logical steps?" If you can answer "Yes" to that question, then learning Stage programming might help save you some time, both in program development and in execution speed. Technical Assistance: If you have questions regarding this Application Note, please contact us at 770-844-4200 for further assistance. Page 5 of 5