Top | Previous | Next |
Chart Concepts |
Types of Charts Each chart can be configured to use one of the following Execution Modes:
Chart Lifecycle The following diagram defines the states that the chart can be in, and when it flows from one to another:
The chart has three terminal states: stopped, aborted, and canceled, and each has a different meaning:
The chart can have scripts configured to run during some transitions between states.
Chart Instances Each chart you define in the Designer may be invoked multiple times, and each invocation will start a new instance of that chart. The instances may be started with different starting parameters which affect how the chart works. Each instance runs completely independently of the other instances. The ability to have multiple instances of a chart is one important feature that makes SFCs within Ignition different than SFCs inside of PLCs. Chart Scope The term “scope” means a collection of named variables that are accessible to the elements of a chart. Each chart instance gets its own, private scope. Scopes are basically free-form name-value maps, whose values may be any python object, including scalar and multivariate types.
Each chart gets a scope object that can be accessed from all steps and transitions within that chart. When starting a chart (for example, from a script), you’ll be able pass variables to the chart: those variables will appear in the chart’s scope. The variables that a chart expects to receive, and their default values, may be defined by configuring the Begin Step.
|