Section: mse.Sequence
This section determines the definitions of the sequence editor. The section must be present in the module declaration, in order that the editor of the modules offers the additional tab Sequence Editor.
SEC mse.Sequence //optional: yes, modifier: [UPDATE] Root := TRUE/FALSE; //optional: yes, type: BoolFlag Step := TRUE/FALSE; //optional: yes, type: BoolFlag Parallel := TRUE/FALSE; //optional: yes, type: BoolFlag Branch := TRUE/FALSE; //optional: yes, type: BoolFlag VisibleParams := [<visparam1>, <visparam2>,...]; //optional: yes, type: ID-list VisibleIOs := [<visIO1>, <visIO2>,...]; //optional: yes, type: ID-list VisibleRefs := [<visref1>, <visref2>,...]; //optional: yes, type: ID-list AConnectionColor := [<itfname>]; //optional: yes, type: ID-list BConnectionColor := [<itfname>]; //optional: yes, type: ID-list OnlineActiveVar := <xActive>; //optional: yes, type: ID OnlineBreakpointVar := <xBreakpoint>; //optional: yes, type: ID OnlineBreakpointActiveVar := <xAvtiveBreakpoint>; //optional: yes, type: ID OnlineWatchVars := [<variable1>, <variable2>,...]; //optional: yes END_SEC
Details regarding the syntax of definition types are described in the section Module Declaration.
Only one of the definitions
Root
,Step
,Parallel
, orBranch
can be set to TRUE for a module. Depending on this definition, the module is represented in the sequence editor as one of the following sequence elements:
Root: | ![]() | If the sequence is defined as |
Step: | ![]() | This element is similar to the |
Parallel: | ![]() | A parallel sequence is displayed with a circle below the box. The box is used to display and adjust certain properties of the module, which are defined in its |
Branch: | ![]() | A tilted square below the box indicates a branch. The box is used to display and adjust certain properties of the module, which are defined in its |
VisibleParams
defines the parameters that are available in the sequence element box.VisibleIOs
defines the IOs that are available in the sequence element box.VisibleRefs
defines the references that are available in the sequence element box.AConnectionColor
: The connection lines between the module instances of the assigned slot are drawn in the color of the A connection. This can be set in the options of the sequence editor.BConnectionColor
: The connection lines between the module instances of the assigned slot are drawn in the color of the B connection. This can be set in the options of the sequence editor.OnlineActiveVar
: This parameter can be assigned a boolean variable, which must be declared in the appropriate function block or one of its basic function blocks. In online mode, if the variable is set toTRUE
, the sequence step is shown in yellow.OnlineBreakpointVar
: This parameter can be assigned a boolean variable, which must be declared in the according function block or one of its basic function blocks. In online mode the command Toggle Breakpoint from the context menu sets or resets a breakpoint. In addition, it sets the assigned variable toTRUE
orFALSE
If it is set toTRUE
, the step in the sequence editor is shown with a red border.OnlineBreakpointActiveVar
: This parameter can be assigned a boolean variable, which must be declared in the according function block or one of its basic function blocks. In online mode, if the variable is set toTRUE
, the sequence step is shown in red.OnlineWatchVars
: All variables (with simple data type) that are defined underVAR_INPUT
,VAR_OUTPUT
,VAR
, orVAR_IN_OUT
of the FB (or its basis FBs) can be used as variables here. Complex variable types (of the formFBInst.xVariable
etc.) cannot be used. The variables should be entered in a comma-separated list.
SEC mse.Sequence Branch; VisibleIOs := [xIn]; AConnectionColor := [itfSequenceTrue]; BConnectionColor := [itfSequenceFalse]; OnlineActiveVar := xActive; OnlineBreakpointVar := xBreakpoint; OnlineBreakpointActiveVar := xBreakpointActive; OnlineWatchVars := [iPartTimeElapsed]; END_SEC