Skip to main content

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.

. Specification:
  • Only one of the definitions Root, Step, Parallel, or Branch 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:

ac_sequenceeditor_root.png

If the sequence is defined as Root, the editor of the module instance provides the additional tab Sequence Editor. For all other sequences no sequence editor is displayed. The width of the box can be changed in the options.

Step:

ac_sequenceeditor_step.png

This element is similar to the Root element, but does not enable the additional tab Sequence Editor. The box is used to display and adjust certain properties of the module, which are defined in its mse.Sequence section.

Parallel:

ac_sequenceeditor_parallel.png

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 mse.Sequence section.

Branch:

ac_sequenceeditor_branch.png

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 mse.Sequence section.

  • 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 to TRUE, 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 to TRUE or FALSE If it is set to TRUE, 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 to TRUE, the sequence step is shown in red.

  • OnlineWatchVars: All variables (with simple data type) that are defined under VAR_INPUT, VAR_OUTPUT, VAR, or VAR_IN_OUT of the FB (or its basis FBs) can be used as variables here. Complex variable types (of the form FBInst.xVariable etc.) cannot be used. The variables should be entered in a comma-separated list.

Example 29. Example
SEC mse.Sequence
        Branch;
        VisibleIOs := [xIn];
        AConnectionColor := [itfSequenceTrue];
        BConnectionColor := [itfSequenceFalse];
        OnlineActiveVar := xActive;
        OnlineBreakpointVar := xBreakpoint;
        OnlineBreakpointActiveVar := xBreakpointActive;
        OnlineWatchVars := [iPartTimeElapsed];
END_SEC