sfc st presentation1

51
May 23, 2002 Copyright © 2002 Rockwell Automation Inc., All Rig 1 RSLogix 5000 Sequential Function Chart (SFC) & Structured Text (ST) Languages This presentation presents the SFC & ST implementation for the Logix5000 processor. pyright © 2002 Rockwell Automation Inc., All Rights Reserved

Upload: jose-alberto-herrera-ogaz

Post on 07-Nov-2015

30 views

Category:

Documents


2 download

DESCRIPTION

Programacion

TRANSCRIPT

  • RSLogix 5000Sequential Function Chart (SFC) & Structured Text (ST)LanguagesThis presentation presents the SFC & ST implementation for the Logix5000 processor.Copyright 2002 Rockwell Automation Inc., All Rights Reserved

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • Sequential Function Chart (SFC) LanguageAvailable as an add-on option for RSLogix 5000 Standard or mini, and included with RSLogix 5000 Full and ProfessionalGraphical Free-form drawing / programming environmentPlace steps, transitional, simultaneous and select branches and draw connections to determine execution flowPosition and Organize blocks based on application to improve readabilityFloating or linked text boxes provide application documentation (Stored off-line)Embed Structured Text in transitions and actions directlyImproves readability and maintenanceEliminates extraneous routinesUse ST to call routines in FBD, LD, SFC or ST when neededOff-line editing with on-line monitoringDisplay Auto-scroll keeps active step In the view to simply maintenanceWorks with Logix5000 engine to support upload/download of SFC routines from processorOn-Line editing planned (V13)IEC1131-3 Compliant language

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • Applications for Sequential Function ChartSequencing of a machines statesHigh level program / routine execution managementMore flexible approach to developing sequencersHighly visual language is easy to understandIdeal for machines with repetitive operationsExecution of batch process applicationsProvide a foundation for motion or robotic applications using the Graphical Motion Language (GML)Embedded Structured Text Motion commands provide streamlined development environment

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • RSLogix 5000 SFC EditorSFCElementToolbarSFCLanguageEditorSFCRoutineEmbedded Structured Text ActionEmbedded Structured Text TransitionalStep DescriptionMonitor Tag of on-line operationAutomatic Name GenerationSpecific nameswith backing structure tagQuick Access Property DialogsSFCEditor / Routine OverviewSFC Show/Hide Grid and Page LinesSFCRuntimeAutoscroll

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • SFC Graphical Drawing EnvironmentUnlimited drawing space provides free form editing stylePersonalized place SFC elements permits chart organization to more closely follow application or physical machineStreamlines development and simplifies maintenanceScale window to increase/decrease view sizeSimplifies navigation and permits ability to monitor chart execution more readilySpreadsheet style grid structure improves navigation (A1, B2, C3..)Used by cross-reference to provide quick navigationDashed lines show SFC element placement within grid (can be hidden if desired)Report page boundaries displayed as solid lines within chartHelps organize your chart based on the report outputsSFC Elements are automatic aligned to an invisible internal grid to provide clean routine appearance

    Dashed Cross-reference GridSolidReport PageBoundary

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • Routine Overview NavigationRoutine overview button in editor provides birds-eye-view of full SFC routineAll SFC elements scaled to fit a reduced size window above editorProvides indication of viewable area and permits movementLets you know your the area of the chart you are viewing and simplifies navigation within large routines

    Box to indicatearea in viewMove cursor toDifferent part of chart to change view

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • SFC Element EntryMultiple methods available for SFC element entryPick the approach that best meets your needsContext sensitive element toolbar provides two methods of programming Click to insert drops element at current chart positionDrag & Drop - to manually position element in chartElement browser provides keyboard navigationJust press [Insert] key

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • SFC Language ElementsSBR/RET Passes input / output parameters to/from a chartInitial Step The start position for the chart executionStep Position within a chart that defines an operating stateAction Portion of a step that defines a specific behaviorTransitional Decision point to determine when a steps operation is completedStop Termination position for a path within a chartSimultaneous Branch defines dual execution paths in a chart that are both executed at the same timeSelect Branch defines dual execution paths in a chart where only one path is executedSimultaneous BranchSelect BranchStop ElementInitial StepActionTransitionalSBR/RET Parameters

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • Intelligent SFC Connection RoutingMultiple ways to make SFC element connectionsManually wire the elements together (connect the dots)Auto-connect by placing a new element adjacent to an existing elementSelect the best method for your style of programmingSelect and Simultaneous branches are determined automatically by the environment based on where the connections are madeSaves you time when developing the chartYou can add them manually if you preferAuto routing of element connectionsAll wires run vertically and horizontally with right anglesvisual display of valid connection pointsSticky wires stay connected when elements are moved

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • SFC Element Property / Data TagsEach of the SFC Element utilize a tag containing operational information for the blockUsed to assign a name to each element (40 Character)Pre-defined SFC data-types provide specific names for element dataSteps SFC_STEP structureActions SFC_ACTION StructureTransitional BOOLStop SFC_STOP structureContain operational, status and diagnostic valuesOperational Execution Timer, Executing State, First Scan, Last ScanStatus / Diagnostics Execution Count, Over-run / Under-run alarms...Simplifies access to element information, reduces training and maintenance effortBuilt-in property displays simplify configuration and display operating status

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • Automatic SFC Tag ManagementThe software optionally does an automatic name generation for steps, transitions and actionsUser-specified prefix for step, transition, action, and stop namesOption to include SFC routine name in prefixAutomatic numbering of elementsReduces typing to improve development timeIf you want more control software can Prompt for Tag Name when element is added to SFC chartAvoids extra step to create and name tagsProvides more effective development workflowOption to automatically delete tag when element is removed from chartEliminates program modification steps Avoids orphaned tags being left in program

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • Step ElementsUnlimited number of steps in an SFC routineStep uses a tag as a control structure40 Character name for each step, automatically generatedStructure contains step configuration and status attributesStep attributes are accessible from logicChoice of accessibility / isolationCreated at program scope by defaultEx: StartupLine1.PRETag description provides in-line documentationCan be modified in SFC Editor, tag editor and CSV Import/ExportDisplay of description can be optionally disabledConfigurable step timer monitors step executionStep timer preset can be a fixed valueor an expression evaluated at run timeTag or complex calculationStepNameView StepAttributesView/HideActionsBacking Tag CommentEditStateConnectionPoints

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • Step Attributes and Built in DiagnosticsStructured step tag provide specific names for step configuration and propertiesIncludes all IEC61131-3 defined attributes and Logix5000 extensionsDirectly accessible via an MMI using names stored in the controllerBuilt in step diagnostics capabilities eliminates application code commonly added to most SFC programsStep execution time alarms - User configurable presets or expressions for step underrun (AlarmLow) and overrun (AlarmHigh)Execution count tracks number of times Step is activated - provides immediate feedback on process execution Datatype SFC_STEPStatus : DINT; Status Field containing X,FS,SA...AlarmHiX : BOOL; Step executing bit (FS + SA + LS)FS : BOOL; First scan bit SA : BOOL; Step Active bit (Not FS or LS)LS : BOOL; Last scan bitDN : BOOL; Step Timer done, T=PREOV : BOOL; Step timer overflow DINT MaximumAlarmEn: BOOL; Enables Hi/Low AlarmingAlarmLow : BOOL; Low Step Time Alarm FaultAlarmHi : BOOL; High Step Time Alarm FaultPRE : DINT; Step timer preset, sets DN when T=PRET : DINT; Length of time step has executedTMax : DINT; Maximum Step Time value detectedCount : DINT; Number of times step activatedLimitLow : DINT; Low Alarm Step TimeLimitHi : DINT; High Alarm Step TimeEnd_Datatype;AlarmsStep TimerExecution CountStep State BitsIn-line ExpressionsDisplay OptionsInitial Step

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • Initial Step PropertyThis step property allows you to specify the location in the chart you want to being the execution after a restartVisualized with double border to help locate within chartOperates based on restart configurationOne initial step per chart or routineCan be anywhere in the chartSame configuration as a normal step Provides flexibility when setting a chart so that you can organize the routine around the applicationDoes not force the execution to begin at the top

    Initial Step

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • Step ActionsUnlimited number of actions per stepThree types of actions:Boolean actions are true when the action is active otherwise falseAction can be reused by multiple stepsusing action tag referenceState of action is logical OR of all referencesReference routines in other languagesLD, FBD, ST, SFCEmbedded Structured TextEliminates need to create separate routines and improves readabilityRequires ST Language optionAction uses a tag as a control structureProvides a 40 character name for each action, automatically generatedStructure contains action configuration and status attributesAction attributes are accessible from logicChoice of accessibility / isolationCreated at program scope by defaultEx: Action_001.PREIndicator tag provides diagnostic monitoring while runningActionQualifierActionNameView ActionAttributesIndicatorTagEmbeddedStructuredText CodeShow/HideActionsMultipleActionsper StepEdit State

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • Action Attributes and Built in DiagnosticsStructured Action tag provide specific names for action configuration and propertiesIncludes IEC61131-3 defined attributes and Logix5000 extensionsDirectly accessible via an MMI using names stored in the controllerBuilt in Action execution count tracks number of times action is activated - provides immediate feedback on process executioneliminates application code commonly added to most SFC programsProvides option to include an indicator tag displayed on the actionSelect any tag available in the local program or controller scope areasProvide run-time data-value updates to assist in debug an maintenanceConfigurable Execution OrderPermits easy access to Action execution orderSimplifies addition of new actions or reworking scan after development is completed Datatype SFC_ACTIONStatus : DINT; Status field containing A and QA : BOOL; Action is executingQ : BOOL; Active except for last scan, P0 or P1T : DINT; Time accumulated based on action qualifierPRE : DINT; Time qualifier presetCount : DINT; Number of times action activatedEnd_Datatype;

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • Action QualifiersAction qualifiers determine how an action should executeFollowing IEC 1131-3 definitionsNone (no qualifier defaults to Non-Stored)N - Non-Stored (action is active when step is active)S - Stored (Starts running when step active, continues running even after step goes inactive)R - Overriding Reset (stops a stored action)L - Time Limited (starts running when step active, stops when step goes inactive or time expires)D - Time Delayed (waits a period of time after step active and executes if step is still active)P1- Rising Edge Pulse (runs once on step activation)P0 - Falling Edge Pulse (runs once on step deactivation)P - Pulse (runs once on step activation and again on deactivation P1+P0)SL - Stored and Time limited (starts running when step active, stops when time expires)SD - Stored and Time Delayed (waits a period of time after step active runs regardless of step state and continues running even after step goes inactive)DS - Delayed and Stored (waits a period of time after step active, if step is still active, it runs continuously even after step goes inactive)Time based action qualifiersQualifier preset can be a fixed valueAn expression evaluated at run timeTag or complex calculation

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • Action Qualifier Timing

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • Step / Action Preset Expression BuilderBuilt in expression editor simplifies creation of embedded structured text expressions for step timer preset valueQuick access to create tags, browser tags, function and operator selection listsPermits step timer preset to be determined during step operationProvides more control over step execution with minimal effortReduces need for external code to calculate and set the timer preset value

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • Transition ElementsUnlimited number of transitions in an SFC routineTwo types of transitionsReference another routine in any ControlLogix languageEmbedded Structured TextEliminates need to create separate routinesCan use to set always true / false conditionTransition uses a tag for state dataTag value accessible from logicChoice of accessibility / isolationCreated at program scope by defaultDefined as a BOOL datatypeProvides a 40 character name for each transition, automatically generatedTag description provides in-line documentationCan be modified in SFC Editor, tag editor and CSV Import/ExportDisplay of description can be optionally disabledTransition forcing overrides program logicSimilar to I/O forcingForce multiple transitions to true / falseEnable / disable all transition forces at onceTransitionNameConnectionPointsEmbedded Condition LogicTransitionForce StateViewTransitionAttributes

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • Transition Forcing & Step Through Provide Chart Debug CapabilitiesTransition Forcing permits each transition to be forced true / falseTrue Chart executes the step prior to the transition once then moves to next stepFalse Chart scan holds on step prior to transitionEnabled either with I/O or independently to provide more control over force operationsTransition Step Through option is a one shot true force of a transitionMoves chart to next step one timeProvides ability to manually override SFC executionMonitor and debug directly from the interfaceSimplifies equipment startup processForced TransitionOn-Line toolbar Presents Force StatusFor Both I/O & SFCLogic Menu Provides Controlfor Both I/O & SFCEnable both I/O and SFC Forces together from toolbarForce Options

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • Stop ElementThe Stop Element terminates execution of a path in the SFC chartLocated at the end of the chart or on a branch legIf there are no other steps to execute, control reverts to the predefined initial stepEliminates need to provide directed link looped back to initial stepUnlimited number of stop elementsUtilizes a tag to name the element, provide a comment in the chart and store diagnostic informationActivated Bit is set when Stop Element is executedBuilt in step execution count tracks number of times the stop is activated - provides immediate feedback on process executionExtension over IEC61131

    Datatype SFC_STOPStatus : DINT; Status field containing XX : BOOL; ActivatedCount : DINT; Number of times Stop activatedEnd_Datatype

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • SBR / RET Element Subroutine Input / Return element provides a means of passing parameters in/out of a SFC based subroutineSBR Specifies tag(s) to store input parameters for use in the routineRET Specifies tag(s) you want to return as output parametersUnlimited number of parametersBoth atomic and compound data types supportedPassed by valuePermits SFC Routines to be called from other routines within a programCall from LD, FBD, STX and even another SFCProvides program development flexibility and supports modular programming methods

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • Simultaneous BranchesExecutes multiple chart paths at oncePermits multiple steps to be active at one timeUnlimited number of branch legs, elements per leg and nested branchesFlexible branch layout works they way you want it to work!permits configuration to closely resemble processAvoids useless steps placeholdersBrach leg forcing enhances chart debug and maintenancePermits each branch to be disabled individuallyDisplayed in chart both off and on-line

    Branch ForceRight Click to ForceFlexible BranchingFlexible Branching

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • Select BranchesExecutes one of many chart pathsPermits process based decisions to alter the execution flowUnlimited number of branch legs, elements per leg and nested branchesFlexible branch layout works they way you want it to work!permits configuration to closely resemble processAvoids useless steps placeholdersConfigurable evaluation orderDefaults evaluation from Left to rightUser defined evaluation order permits you to determine branch priorityPermits changing order without reorganizing chartTransition forcing and step through provides select branch debug overrideFlexible BranchingFlexible BranchingExecution orderForced TransitionRight Click to Set OrderDefault Left to RightUser Configured

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • Directed LinkDirected link permits you to shift the chart execution forward or backward to another stepOptional link visualization settingWired to the destination step (default)Hidden wire with source / destination references to reduce wire / chart congestionGives you control over how the link is displayed in the chartDestination referenceSource referenceVisible WireRight Click to HideGrid location

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • Documenting Your SFC RoutineEmbedded ST Action Comment(Stored Online)Text Box Anchored to TransitionText Box Anchored to StepText Box Free FloatingStep TagDescriptionTransition TagDescriptionEmbedded ST Transition Comment(Stored Online)

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • SFC ReportsBoth Fit to page report and multi-page formatsSingle page table of contentsEnlarged view of chart sectionsReport Page boundaries displayed in editor viewConfigurable page settingsSupports Letter (8.5x11), Legal (8.5x14), Tabloid (11,17), A4 (210x297mm), and A3 (297x420mm)Portrait or LandscapeWhat you see is what you get!Simplifies developmentCross-reference grid and page numbers printed on reportSpeeds up chart negotiationLinks to cross reference reportsAdditional element and cross-reference reports provide configuration detail

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • Cross-ReferenceProvides a listing of any reference to a tagDestructive and Non-destructiveDirect and alias referencesLocation where tag is accessedLD Rung/InstructionSFC Element Grid LocationFBD Block Grid LocationST Line NumberGenerate reports based on cross-reference

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • Search & ReplaceWhat you can search for...Text in tag names, comments or logicTagsComponent Alias - Will find other tags that share the same base tag as the specified tagAll Aliases - Will find other tags that can reference any part of the specified tagLanguage Elements (instructions)Logix edits (I/R/D)Maintains a list of the last 10 searches to reduce effort reissue the same searchWhere does search operate?Language editorsTag editor / Data monitorUse search to locate individual references or all references at onceReplace permits the selective replacement of one string for another

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • New Instructions for SFCThree new Ladder Diagram (LD) and Structured Text (STX) instructions added to Logix5000 to control SFC OperationsSFR- Sequential Function Chart ResetResets a specific SFC chart to a specified stepActive steps are post scanned by processor to reset outputsSFP Sequential Function Chart PauseSuspends the operation of the specified chart as long is rung is trueEOT End of TransitionalUsed within a subroutine called by a transitional to indicate that a steps operation is completeExecute these in a separate LD/ST subroutine called by an Action of a stepProvides programmatic control over SFC executionDevelop code to determine machine state and automatically adjust to the appropriate SFC step to facilitate machine startup and recoveryProvides consistency for applications developed in PLC-5

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • Configurable SFC Execution OptionsLogix5000 provides different type of execution methods to help you customize the chart control to meet specific needsProvides more control over executionAvoids the need to create and manage additional codeExecution model Determines when chart scan terminatesExecute only active step(s) per scanExecute multiple steps in a single scan till false transition is foundRestart - Determines chart starting location for processor run mode transitionInitial step - restarts at the step you have configured as Initial Steplast active restarts at the step that was active when the chart stopped

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • Configurable SFC Last Scan optionsLogix provides multiple options to configure a controller to selectively reset operations when an SFC step completesSupports retentive and non-retentive operationsProvides for automatic and controlled shutdownGives you full control of step post-scan operations so that your program operates using the most optimal method

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • SFC Off-line & On-line SupportInitially developed as an off-line development tool with on-line support monitoring and debug supportDevelop programs off-lineDownload/upload programs to/from controllerMonitor programs on-lineActive step/branch animationAuto-scroll to keep active step on displayDebug chart executionTag data and SFC element property changesTransition Forcing and Step Through ControlSimultaneous Branch ForcingSelect Branch execution orderFuture on-line programming supportInitially available for hardware based Logix5000 controllersControlLogix5500, FlexLogix5400, CompactLogix5300, and DriveLogix5700SoftLogix5800 support planned for future releases

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • RSLogix 5000 ST LanguageAvailable as an add-on option for RSLogix 5000 Standard or mini, and included with RSLogix 5000 ProfessionalFully functional editor Red Wavy Underlines annotate undefined tags or programming errorsSyntactic coloring monitoring for commands, tags and comments to improves readabilityInstruction format tool-tips simplify code developmentCut/Copy/Paste from other text editor toolsHigh level programming language similar to Basic, Fortran, Pascal or CIf/Then, Case, Do/While, Do/Until, and For/Next constructsMost LD and FBD Instructions supported, Including Motion and ProcessCall routines in FBD, LD, SFC or ST when neededOff-Line development with on-line monitoringWorks with Logix5000 engine to support upload/download of ST routines from processorWatch-Pane auto tag list, displays operating tag valuesOn-Line edit planned (V13)IEC1131-3 Compliant language

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • Applications for Structured TextEasily represent complex mathematical calculationDevelopment of specialized array / table processingCreation of ASCII String protocol processingImbedded motion control functions Inclusion of Process / Drive control functions permits specialized algorithmsProvide a foundation for applications using the Reliance Automax basic languageEasily convert text based Basic, C, Pascal and Fortran code to run on a Logix5000 controller

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • ST Decision and Loop ConstructsIF and CASE operations determine executionBuild decisions to meet applications specific needsCombined with symbolic tags to provide self documented codeFOR, WHILE and REPEAT process repetitive operationsBuild custom looping algorithmsEasy way to process tables of informationPerforms operation of Ladder file instructions like FALIF THEN ELSIF THEN ELSEEND_IF; CASE OF< selector value 1> : < selector value 2> : ELSE< statements>END_CASE; FOR TO [BY ] DO EXITEND_FOR; WHILE DO EXITEND_WHILE;

    REPEAT EXITUNTIL END_REPEAT;

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • ST Instruction SetInstruction set commonality with Ladder Diagram (LD) and Function Block Diagram (FBD)Reduces learning curvePermits selection of appropriate Language for applicationIn line operations consistent with common text based programming languages and IEC 61131-3Assignment operators (retentive := , non-retentive [:=])Mathematical operations (+,-,*,/,**, Mod)Comparison operations (=, >=, ,
  • ST Instruction ProgrammingMultiple ways to develop structured text code to minimize program development timeUsing a mouse and the Integrated Instruction ToolbarKeyboard Alt-Ins provides a instruction selection dialog complete with instruction descriptionsSimply type the function name to receive formatting tool-tipProvides instruction parameter configurationSelect the method that best meets your development needsPop-up tool tips for Instructions and Functions simplify code development

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • ST Text Syntactic Color CodingLanguage statements, tag names, and comments displayed in different colorsMakes code easier to read and understandSimplifies code developmentDetermine quickly if code will be executed or is commented outRed wavy underlines denote invalid tagsLocate misspelled or undefined tag namesImmediate feedback on programming errors

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • ST CommentsBoth in-line and multi-line comments supportedIn-line comments provide a description for a single line of codeBeginning with // and terminate with a CRLFCan also be used to block a single line of code from executionRockwell Automation extension to IEC61131-3Multi-line comments provide more descriptive information for how the code performs its functionTwo formats available (* comment*) or /* comment */Can also be used to block a group of code lines from executingGreen context coloring makes comments standout from codeAll Structured Text comments are loaded into the controller during application downloadAvailable on upload even if you dont have the original sourceMaintains program white-space, tabs, and line-feeds to preserver presentationCompressed from 70 to 80 % to minimize memory needs

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • ST Tag ManipulationMultiple ways to specify tags in your codeUsing a mouse you can navigate the context menu to the tag browse tool to select tagsUsing the keyboard, Ctrl-Space provides a tag selection window with auto-fill / tag lookuplist locates first tag with matching nameEliminates the need to memorize tag namesReduces program development effort

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • ST On-Line MonitoringST Routine highlighted to show running statusLets you know the processor is in run modeTooltips provide access to tag data valuesDisplays description, datatype and a snapshot of the data valuePreserves routine formatting and avoids having to scroll watch pane to view a single tagWatch Pane displays all tags referenced by the routineLists tags, value and descriptionsAnimated values change as routine executedUseful for debug and maintenance operationsTag Info tooltipTags referencedIn ST RoutineData ValuesData Values

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • ST Routine ExecutionEach time a Structured Text routine is called (either as a subroutine or as the main routine in a program) it begins executing from the beginning of the routine (Similar to Ladder Diagram)Code within the ST routine is executed based on the constructs usedUsing IF and CASE you can selectively choose the code you want to executeFocuses the execution on specific areas of the codeHelps reduces routine scan time to optimize CPU performanceUsing FOR, DO UNTIL, and DO WHILE you can perform repetitive loopsUseful for processing arrays or tablesThe CPU watchdog timer continues while ST executes, so infinite loops will be trappedStructured Text Transitional InstructionsIn Ladder Diagram a rung state change is used to trigger various operations within instructions (timers, counters, one-shots, messaging, motion)In ST these instructions are handled in one of two ways:Counters, messaging and motion instructions acts as though the rung has just gone true each time they are executed in STMay require additional code to manage the instructions executionFor timers and one-shot instructions external manipulation is required to initialize and reset

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • ST Pre-Scan OperationOn power-up the controller performs a pre-scan of each task to initialize instructions (outputs, non-retentive timers)Select instructions also perform various operations during pre-scanExample: ONSR one-shot instruction turns off storage bit...In ST you can use the bracketed assignment operator [:=] to force the value to be reset during pre-scanResets Bit tags and forces numeric tags to zeroIf you want tag left in last state, use the non-bracketed assignment operator :=Extension over IEC61131 standardMinimizes the amount of code you need to write to initialize your applicationProvides more control over what you want retained or resetReduces development time

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • SFC Post Scan Impact on STSFC provides an automatic reset operationPerforms a post-scan of the actions associated with a Step once the transition indicates the step is completedPerform a controlled shutdown of the codeIn ladder diagram routines, output coil (OTE) instructions are turned off and non-retentive timers are reset...The SFC Automatic reset is optional and can be overridden by changing a controller propertyST code embedded in an SFC Steps action directly or ST code called via a JSR are also post scannedDepending on the application you can control what occurs during post-scanUsing the bracketed assignment operator [:=] tags are reset to zero (both Boolean and numeric tags)Using non-bracketed assignment operator := tags are left in their last stateThe Automatic reset combined with the two ST assignment operators simplify program initialization

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • ST Off-line & On-line SupportST programming environment is initially targeted as an off-line development tool with the ability to monitor running programsOff-line programmingST Programs both downloaded and uploaded (with comments)Tag values in watch pane update with memory changesTooltip provides tag snapshotFuture on-line programming supportInitially available for hardware based Logix5000 controllersControlLogix5500, FlexLogix5400, CompactLogix5300, and DriveLogix5700SoftLogix5800 support planned for future release

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • RSLogix 5000 Multi Language SupportFully integrated with other languages within RSLogix 5000Exists as part of RSLogix 5000, uses existing database, menu structure, controller organizer, I/O configuration, etc.Available as an option to mini and standard versions and included with ProfessionalLD, FBD, SFC, ST routines can co-exist with other routine types in the same controllerA routine of any language can call other SFC, ST, LD or FBD routinesWorks with Logix5000 engine to support upload/download of routines from processorAll languages are are native to Logix5000IEC1131-3 Compliant languages

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • Acquiring SFC / STThe SFC and ST Languages are available in two formsAdd on option for RSLogix 5000 Mini Edition (9324-RLD200ENE) and Standard Edition (9324-RLD300ENE)9324-RLDSFCE Sequential Function Chart Language Option9324-RLDSTXE Structured Text Language Option9324-RLDMLPE Multi-Language Pack Option (Includes FBD, SFC, and STX)Permits you to purchase just the language(s) you needIncluded with RSLogix 5000 Full Edition (9324-RLD600ENE) and Professional Edition 9324-RLD700NXENEAll languages are included (LD, FBD, SFC, and ST)Purchase all languages from a single catalog number

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • New RSLogix 5000 Full Edition Complete version of RSLogix 5000Will Support all Logix5000 ControllersProvides all of the capabilities of the Standard Edition and includes support for all optional programming languagesFunction Block Diagram (FBD)Sequential Function Chart (SFC)Structured Text (STX)RSNetWorx and RSLogix Emulate5000 are available separatelyTargeted SIs and Large End Users needed multiple languages and already own RSNetWorxExisting users of Mini and Standard can get the same capabilities as the Full Edition by purchasing the separate language options

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • RSLogix 5000 Packages / OptionsAble to upload and download without option. Must purchase option to view, edit and print routines in this language9324-RLDMLPE Multi-Language pack includes FBD, SFC, and STX

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

  • Copyright / Trademark NoticeCopyright 2002 Rockwell Automation Inc., All Rights Reserved

    RSLogix, RSLinx, RSNetWorx, the RSLogix 5000 logo, and the Rockwell Software logo are trademarks of Rockwell Software Inc. Logix5000, PLC-5, SLC-500 and Data Highway are trademarks of Allen Bradley Company LLC., all other trademarks are the property of their respective holders and are hereby acknowledged

    For more information on the latest pricing or a demonstration of any Rockwell Software package, please contact your local Rockwell Automation sales office or authorized Allen-Bradley distributor. For the very latest on Rockwell Software product development, visit our Web Site on the Internet at: http://www.software.rockwell.com

    WORLDWIDE REPRESENTATION Argentina, Australia, Austria, Bahrain, Belgium, Bolivia, Brazil, Bulgaria, Canada, Chile, China, Colombia, Costa Rica, Croatia Cyprus, Czech Republic, Denmark, Dominican Republic, Ecuador, Egypt, El Salvador, Finland, France, Germany, Ghana, Greece, Guatemala, Honduras, Hong Kong, Hungary, Iceland, India, Indonesia, Ireland, Israel, Italy, Jamaica, Japan, Jordan, Kenya, Kuwait, Lebanon, Macao, Malaysia, Malta, Mauritius, Mexico, Morocco, Netherlands, New Zealand, Nigeria, Norway, Oman, Pakistan, Panama, Peru, Philippines, Poland, Portugal, Puerto Rico, Qatar, Romania, Russia, Saudi Arabia, Singapore, Slovakia, Slovenia, South Africa, Republic of South Korea, Spain, Sweden, Switzerland, Taiwan, Thailand, Trinidad, Tunisia, Turkey, United Arab Emirates, United Kingdom, United States, Uruguay, Venezuela, Vietnam, Zimbabwe

    Copyright 2002 Rockwell Automation Inc., All Rights Reserved

    Copyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedThis feature is new to RSLogix 5000 version 2.10The search tool uses the same basic technique as RSLogix 5/500 with the addition of support for alias tags.

    Copyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedBeing RemovedSimultaneous scan - Determines when to examine transition at end of simultaneous branch legsEither the at the end of each leg or once after all legs

    Copyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedSupported LD based instructions:Trigonometric: LN, LOG, SQRT, ABS, DEG, RAD, TRN, SIN, COS, TAN, ASIN, ACOS, ATAN Table/Array: COP, CPS, SRT, SIZEMessaging / Status: MSG, GSV, SSVProgram Control: JSR, RET, SBR , TND, UID, UIE, EOT, SFR, SFPSerial Port: AWT, AWA, ARD, ARL, ABL, ACB, AHL, ACLASCII String: FIND, INSERT, CONCAT, MID, DELETE, DTOS, STOD, RTOS, STOR, UPPER, LOWERMotion: MSO, MSF, MASD, MASR, MDO, MDF, MAFR, MAS, MAH, MAJ, MAM, MAG, MCD, MRP, MCCP, MAPC, MATC, MGS, MGSD, MGSR, MGSP, MAW, MDW, MAR, MDR, MAOC, MDOC, MAAT, MRAT, MAHD, MRHDMisc: SWPB, PID, TRUNCSupported FBD based instructions:Select/Limit: ESEL, SSUM, SNEG, HLL, RLIMProcess: ALM, DEDT, PIDE, POSP, RMPS, SCL, SRTP, LDLG, FGEN, TOT,2/3 State Device: D2SD, D3SDDrives: PMUL, SCRV, PI, INTG, SOC, UPDN,Filters: HPF, LPF, NTCH, LDL2, DERV,Statistical: MAVE, MSTD, MINC, MAXC,One Shot: OSRI, OSFILogical: MEQ, MVMT, BTDT, DFF, JKFF, SETD, RESDTimer/Counter: TONR, TOFR, RTOR, CTUDThe operation performed by some instructions can be performed via built in constructs or operationsXIC, XIO, OTE, OTL, OTU, ONS, DTR (Use Boolean expression)OSF (use OSFI), OSR (use OSRI)CTU, CTD (use CTUD)TON (use TONR), TOF (use TOFR), RTO (use RTOR), RES (Part of TONR, TOFR and RTOR)LIM, MEQ, CMP (use numeric expression)CPT, MVM (use assignment expression)AVE, FAL, FLL, STD, FSC (use FOR or DO loop)AFI, MCR, TND, NOP (dont apply outside of LD)FBD SEL (use IF or CASE statement), MUX (use CASE statement)Currently operations performed by 12 instructions are limited to LD or FBD!BTD, BSL, BSR, DDT, FBCFFU, FLLJMP, LBL (future GOTO/LABEL planned)SQI, SQL, SQOLogix5000 is the only product in the market that supports automatic type conversion!All others force you to add lots of instructions to mix datatypes or limit their products to a single datatype.

    Copyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights Reserved- Of course you can directly type the tag names.- Tags names are recognised & colour codedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights Reserved- Unlike S7- In definition stageCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights ReservedCopyright 2002 Rockwell Automation Inc., All Rights Reserved