Home
        Unity SFC View
         Contents
1.                             33  INTO UCHA Na A A a EE SEG E a a eee 33   Unity Pro presettings                                               34   OPC Factory Server Presettings                                      34   Chapter 5 Starting and Using the SFC View Demo Application         37  Starting and using the SFC View Demo Application                       37          Chapter 6    6 1    6 2    6 3    6 4    Chapter 7    Part Il    Chapter 8    SFCView appearance and behavior               o oo o o    43  Intr  duGtion Taa a AA AA AAA 43  General Control  sisri g iaka a a a aa 45  INTPOGUCTION iii iuei rianas nee eath e ei 45  General description of the control elements                              46  Objects for general controlling of SFCView                              46  Properties for general controlling of SFCView                            48  Methods for general controlling of SFCView                             50  Events for general controlling of SFCView                               52  Constants for general controlling of SFCView                            53  View  Overview       ooooooooor ua raty AE AWA p EEA Ka aw 54  INTOUCIOA a os a ta ae ian sees eels 54  General description                                                 55  Properties for controlling the view  OverviewW                             56  Events for controlling the view  Overview                                59  Constants for controlling the view  Overview                             5
2.              6 Text in the Comment Comment on the variables from the Unity Pro  column project   Controlling the To control the behavior and the appearance of the SFC View  the person carrying out  controls the configuration has various methods  events  constants and properties available  for use     All the controlling options which are assigned to the details display are described in  the following chapter    All general controlling options are described in their own chapter General controlling   p  45           64    SFCView appearance and behavior       Properties for controlling the view  Details    Info field sizes       Schematic display of the individual info fields                                                                   Control of the size of the fields                                            No  Property Description   1 Width Total width of the SFCView control   2 DetailsStepsWidth   The width of the step info fields for the active and next step   3 DetailsStepsLeft The distance for the step info field from the left edge of the  SFCView control   4   The left edge of the diagnostic info field is a fixed distance  from the left edge of the control    5   The right edge of the action info field is a fixed distance from  the right edge of the control    6   The distance between the diagnostic info field and the step  info field is fixed    7   The distance between the step info field and the action info  field is fixed    8   The width of the diagnostic in
3.             103  ColumnHarChainStatus Property                                     104  ChainHdrErrorXxx Properties                                        105  A TN 105  ColumnHarErrorComment Property                                   106  ColumnHadrErrorStep Property                                       106  ColumnHarErrorVariable Property                                    107  ColumnHadrErrorPinType Property                                    107  ColumnHarErrorState Property                                      108  ColumnHarStepXxx Properties                                      109  Ata glance ii e hadian Pioda po 109  ColumnHarParallelSteps Property                                    110  ColumnHadrStepComment Property                                   110  ColumnHdrStepName Property                                      111  DetailsXxx Properties                                              112  o  lt u lei ad baad Poe ea dy MA eet 4d 112  DetailsActiveStepBackColor Property                                 113  DetailsInactiveStepBackColor Property                                113  DetailsInitialStepBackColor Property                                  114  DetailsWaitingStepBackColor Property                                114  DetailsViewLinesColor Property                                     115          9 7    9 8    9 9    9 10    9 12    DetailsSimpleXxx Properties                                         116    Ata Glance s    iii RA EA A AA Re AE 116  DetailsSi
4.             218          Constants       SFCViewModes Constants    Constants       The following values can be written to or returned from the control s property  ViewMode  which allows getting or setting the control s current display mode   Additionally  the control s ViewModeChanged event delivers one of these values  when the view mode has changed                       Constants    Constant Value   Description   SfcOverview 0 The chain is will be shown in the overview   SfcDetails 1 The chain is will be shown in the detail view   SfcDetailsSimple 2 The chain is will be shown in the details simple view              ContentsErrorStateColumn Constants    Constants       The following values can be written to or returned from the control s property  ContentErrorStateColumn  which allows getting or setting the content of Error State  column in error grid                    Constants    Constant Value   Description   CecEmpty 0 Error State column is empty    CecErrorState 1 Error state column contains error state of input  variable    CecVariableName 2 Error state column contains variable name    CecPinType 3 Error state column contains Pin Type                          219       Constants       StatesErrorStateColumn Constants    Constants       The following values can be written to or returned from the control s property  StateErrorStateColumn  which allows to get or set what indicate the background  color in the Error State column                    Constants    Constant Val
5.             Note  If the line with the state of the chain or the line with the error message is not  shown  then the state of the chain or an error in the chain is shown by a color  outline around the line with the chain name  The color outline is set in the    ChainFlagsOffBackColor ChainFlagsOnBackColor or in the       StepMaxTimeErrBackColor Step       inTimeErrBackColorproperties           Step name font in the view  Details Simple       Property    Description          DetailsSimpleStepNameFont          Font for the step name           Note  The font set using the DetailsSimpleStepNameFont property is also  used for chain names  The font for all the other texts is set using the Font property           Text for displaying the step chain state  These texts are also showninthe Overview             view in the column ChainStatus   Property Description  OverviewTextRunning Sets the text shown if the chain status flag is set  to CsfRunning  OverviewTextSectionDisabled Sets the text shown if the chain status flag is set    to CsfSectionDisabled       OverviewTextSetInitializeFlag    Sets the text shown if the chain status flag is set  to CsfInitializeFlagSet       OverviewTextDisableTimeCheck    Sets the text shown if the chain status flag is set  to CsfTimeCheckDisabled       OverviewTextDisableTransitions    Sets the text shown if the chain status flag is set  to CsfTransitionDisabled          Overview        PextDisableActions       Sets the text shown if the chain status fl
6.           Methods       10 2    DisplayXxx Methods       Ata glance    Introduction    What s in this  Section        In this section you will find an overview of the DisplayXxx methods        This section contains the following topics                                   Topic Page   Display InitialStep Method 190  DisplayNextActiveStep Method 190  DisplayNextAltTran Method 191  DisplayNextParStep Method 191  DisplayNextStep Method 192  DisplayPreviousStep Method 192  DisplayPrevActiveStep Method 193  DisplayPrevAltTran Method 193  DisplayPrevParStep Method 194                   189       Methods       DisplaylnitialStep Method       Brief description Navigate to and display the initial step  This method works in details and details  simple view mode        Syntax object  DisplayInitialStep    The DisplaylnitialStep method syntax has this part                          Part Description  object An object expression that evaluates to a SFC View control   Return Value A boolean value indicating the success  true  or failure  false  of the operation        DisplayNextActiveStep Method       Brief description Navigate to and display the next active step  This method works in details and  details simple view mode        Syntax object  DisplayNextActiveStep    The DisplayNextActiveStep method syntax has this part                          Part Description  object An object expression that evaluates to a SFC View control   Return Value A boolean value indicating the success  true  or fai
7.          226    Block types and their applications       VAR_IN_OUT  variable    FFBs are often used to read a variable on an input  input variables   to process them  and output the changed value of the same variable again  output variables     This is special case for an input output variable and is also called VAR_IN_OUT  variable    The input and output variable are linked in the graphic languages  FBD and LD   using a line showing that they belong together    Function block with VAR IN OUT variable in FBD        MY_EXAMPl  EXAMPI1  Input      IN1 OUTI     Outputl  Input2     IN2 OUT2      Output2  Comb_IN_OUT    101                  IOI      Comb_IN_OUT       Function block with VAR_IN_OUT variable in ST   MY_EXAMP1  IN1  Inputl  IN2  Input2  IO1  Comb_IN_OUT   OUT1  gt Outputl  OUT2  gt 0utput2      The following points must be considered when using FFBs with VAR_IN_OUT   variables      VAR_IN_OUT variables absolutely must be assigned to as variable    e The same variable variable components must be assigned to the VAR_IN_OUT  input and the VAR_IN_OUT output    e Inthe graphic languages  FBD and LD   graphic connections cannot be made on  VAR_IN_OUT inputs outputs    e Literals or constants cannot be assigned to VAR_IN_OUT inputs outputs    e Inthe graphic languages  FBD and LD   negations cannot be used on  VAR_IN_OUT inputs outputs                    227    Block types and their applications       EN and ENO    Description          An EN input and an E    If the value
8.       value          Integer value representing number of lines displayed in error grid   Default value 16           OFSDevices Property       Brief description Returns the current OFSDevices collection of an OFSInfo object        Syntax object  OFSDevices    The OFSDevices property syntax has this part                       Part Description  object An object expression that evaluates to an OFSInfo object   Remarks This is a read only property           178          Properties       OnChainOpen Property    Brief description    Syntax    Settings  Path Property    Brief description    Syntax    Remarks       Returns Sets the action to be performed when the user double clicks a row in the  grid while in overview mode        object  OnChainOpen    value     The OnChainOpen property syntax has these parts              Part Description   object An object expression that evaluates to a SFC View control    value Anumeric expression that specifies what to do when the user double  clicks a chain in the grid while in overview mode                 For the settings for value see OnChainOpenActions Constants  p  218           Returns a string specifying the address of a device configured for use with OFS        object  Path    The Path property syntax has this part        Part Description  object An object expression that evaluates to an OFSDevices object                    This is a read only property           179          Properties       ProjectFile Property    Brief description    Sy
9.      9 6    DetailsXxx Properties       Ata glance    Introduction    What s in this  Section        In this section you will find an overview of the DetailsXxx properties        This section contains the following topics                             Topic Page   DetailsActiveStepBackColor Property 113  DetailsInactiveStepBackColor Property 113  DetailsInitialStepBackColor Property 114  DetailsWaitingStepBackColor Property 114  Details ViewLinesColor Property 115             112       Properties       DetailsActiveStepBackColor Property       Brief description Returns Sets the background color to display a step in active state in the detail view        Syntax object  DetailsActiveStepBackColor    color     The DetailsActiveStepBackColor property syntax has these parts                             Part Description  object An object expression that evaluates to a SFC View control   color A value or constant that determines the background colors to display  the  Active   Inactive  and    Initial    states of the steps in the detail view   Remarks See the Visual Basic documentation about possible color values or color constants        DetailsInactiveStepBackColor Property       Brief description Returns Sets the background color to display a step in inactive state in the detail    view        Syntax object  DetailsInactiveStepBackColor    color     The DetailsInactiveStepBackColor property syntax has these parts                          Part Description  object An object expression
10.      Syntax object  StepMaxTimeErrBackColor    color     The StepMaxTimeErrBackColor property syntax has these parts                          Part Description  object An object expression that evaluates to a SFC View control   color A value or constant that determines the background and foreground  colors to display that the maximum step time is exceeded   Remarks See the Visual Basic documentation about possible color values or color constants        StepMaxTimeErrForeColor Property       Brief description Returns Sets the foreground color to display that the maximum step time is    exceeded        Syntax object  StepMaxTimeErrForeColor    color     The StepMaxTimeErrForeColor property syntax has these parts                          Part Description  object An object expression that evaluates to a SFC View control   color A value or constant that determines the background and foreground  colors to display that the maximum step time is exceeded   Remarks See the Visual Basic documentation about possible color values or color constants           151          Properties       StepMaxTimeErrText Property       Brief description Returns Sets the text to display that the maximum step time is exceeded  detail  view         Syntax object  StepMaxTimeErrText    string     The StepMaxTimeErrText property syntax has these parts                 Part Description   object An object expression that evaluates to a SFC View control    string A string expression that determines the text to di
11.     183       Properties          184       Methods    10                            Ata glance   Introduction In this chapter you will find information about the methods    What s in this This chapter contains the following sections    9    Chapter  Section Topic Page  10 1 DiagXxx Methods 187  10 2 DisplayXxx Methods 189  10 3 PLCXxx Methods 195  10 4 Other Methods 204                      185       Methods          186    Methods       10 1    DiagXxx Methods       Ata glance    Introduction    What s in this  Section        In this section you will find an overview of the DiagXxx methods        This section contains the following topics                 Topic Page  DiagResetErrorBuffer Method 188  DiagRetrigger Method 188                   187    Methods       DiagResetErrorBuffer Method       Brief description Resets all diagnostic errors within the PLC        Syntax object  DiagResetErrorBuffer    The DiagResetErrorBuffer method syntax has this part        Part    Description          object       An object expression that evaluates to a SFC View control           Return Value None       DiagRetrigger Method       Brief description  Retriggers the analysis of the diagnostic errors of the chain  which is currently  displayed in the detail view        Syntax object  DiagRetrigger    The DiagRetrigger method syntax has this part        Part    Description          object       An object expression that evaluates to a SFC View control           Return Value None          188
12.     A boolean value indicating the success  true  or failure  false  of the operation        If unconditional is true  the next step will be activated independent of the state of the  transition  but not until the delay time of the active step has expired    In parallel branches  a step in each branch will be activated  while in alternative  branches it always activates the left branch           201          Methods       PLCResetTimeErrors Method       Brief description Resets supervision time errors for the selected SFC section        Syntax object  PLCResetTimeErrors    The PLCResetTimeErrors method syntax has this part                          Part Description  object An object expression that evaluates to a SFC View control   Return Value A boolean value indicating the success  true  or failure  false  of the operation           202    Methods       PLCSetinitializeFlag Method    Brief description    Syntax    Return Value    Remarks       Sets or clears the initialize flag           WARNING          Danger of unsafe  dangerous and destructive operations for tools  or processes     PLCSet InitializeFlag should not be used for trouble shooting  while operating machine tools  processes or material administration  systems while they are running  This can lead to unsafe  dangerous and  destructive operations by the tools or processes linked to the controller     Failure to follow this precaution can result in death  serious injury   or equipment damage           object  PLCS
13.     Derived function  block    Procedure       Different block types are used in Unity Pro  The general term for all block types is  FFB    There are the following types of block    Elementary Function  EF    Elementary Function Block  EFB    Derived Function Block  DFB    Procedure       Elementary functions  EF  have no internal status   If the input values are the same   the value at the output is the same for all executions of the function  e g  the addition  of two values gives the same result at every execution    An elementary function is represented in the graphical languages  FDB and LD  as  a block frame with inputs and an output  The inputs are always represented on the  left and the outputs always on the right of the frame The name of the function  i e   the function type  is shown in the center of the frame    The number of inputs can be increased with some elementary functions        Elementary function blocks  EFB  have an internal status  If the inputs have the  same values  the value on the output can have another value during the individual  executions  For example  with a counter  the value on the output is incremented   An elementary function block is represented in the graphical languages  FDB and  LD  as a block frame with inputs and outputs  The inputs are always represented on  the left and the outputs always on the right of the frame The name of the function  block  i e  the function block type  is shown in the center of the frame  The instance  name 
14.     Installation       Implementation of the SFC View ActiveX Controls    Registration  on the PC    Implementation       The SFC View ActiveX control is automatically registered on the PC when SFC  View is installed   This makes it available for the individual programming environments        ActiveX controls are implemented differently in every programming environment   The implementation procedure is described in the technical documentation for your  programming environment           32       Preliminary Settings                         Introduction   Overview This chapter contains information on the preliminary setting that are required to use  Unity SFC View    What s in this This chapter contains the following topics    19    Chapter  Topic Page  Unity Pro presettings 34  OPC Factory Server Presettings 34                33       Preliminary Settings       Unity Pro presettings    General    Diagnostics    Sequential  Function Chart   SFC     Save project  automatically       Before the SFC View can be used  Unity Pro must be configured in a certain way        Note  These settings must be configured separately for every Unity Pro project           Make sure that under Tools  gt  Project settings     gt  Build  gt  Diagnostics the  option Application Diagnostics is selected and the application level is set to Local  Diagnostics        Note  This setting is required if the SFC View diagnostics is carried out via the PLC  diagnostics buffer              Make sure that under 
15.     Note  The StateErrorStateColumn property is only available if the diagnosis  is made via a special SFC View function block              75          SFCView appearance and behavior       6 4 View  Details Simple       Introduction       Overview This chapter contains general information about the view  Details Simple  which  shows the SFC View                       What s in this This section contains the following topics    Section  Topic Page  General description 77  Properties for controlling the view  Details Simple 78  Methods for controlling the view  Details Simple 81  Events for controlling the view  Details Simple 81                      76    SFCView appearance and behavior       General description       Brief description    The view  Details Simple of the SFCView offers the following options     e Display of real time information on the status of the active or selected step in a    step chain    e Navigation between active steps for parallel branches  e Navigation between the step chains via methods  e g  DisplayNext Step       Display       View display  Details Simple                                                       SFC para     Running 2   This section is used to demonstrate SFC    It contains a big alternative and within that a parallel 3   structure       31 4   Step sets ACT1  ACT1 is mapped to I O but not read   by any logic  Has a delay time of 2 sec  5     Max Time Overflow 6     02s 000ms   21s 830ms 7   x 8     19   gt  ig          View componen
16.     SFCView appearance and behavior                      the active steps    Number   Components Description  2 Status flags Shows the state of section  The state is represented using a  color outline    3 Number of active   Display of the number of active steps   steps and The arrow keys can be used to navigate between the active  navigation parallel steps    4 Parallel  Display of parallel  double line  or  alternative branches  single  alternative line   branches   5 Information on Active step name    Comment  three lines    Short Error message   Delay Time   Current dwell time   The outline around this info field can have a different color  depending on the state of the step    On the right hand side the actions for the step are displayed        6 Information on  the actions for  the active step    Identifier   Time   Name of variables or the section    variable or section type    Comment   The background color for the variables can have a different  color depending on the state of the variables              7 Information on e Name of transition variables  transitions e Comment  three lines   The rectangle representing the transition can have a different  color depending on the state of the transition   8 Information on e Next step name  the following e Comment  three lines   step e Short Error message   e Delay Time  e Current dwell time  On the right hand side the actions for the step are displayed   9 Information on e Identifier  the actions for e Time  the next step e
17.    Properties       DetailsStepNameFont Property    Brief description    Syntax    Remarks       Returns Sets the font to display the step name in the details view         Set  object  DetailsStepNameFont    font_object     The DetailsStepNameFont property syntax has these parts              Part Description  object An object expression that evaluates to a SFC View control   font_object An object expression that evaluates to a font object that determines    the font name  size and other attributes to display the step names in  the details view                    The same font is used for the chain name and the transition name in the detail view   too  All other texts in the detail view and in overview are displayed with the font  specified with the standard Font property        DetailsStepsLeft Property    Brief description    Syntax    Remarks       Returns Sets the left positions to display the steps in the detail view        object DetailsStepsLeft    value     The DetailsStepsLeft property syntax has these parts                    Part Description  object An object expression that evaluates to a SFC View control   value A numeric expression specifying a distance or dimension              The DetailsStepsLeft property determines the distance between the inner left edge  of the SFC View control and the left edge of the rectangles in which the steps are   displayed in the detail view    This property is measured in Twips  See the Visual Basic documentation for more  informat
18.    Setting Description  True  Default  Navigation buttons are displayed in details simple view   False Navigation buttons are not displayed in details simple view   Remarks Navigation buttons can be visible only when DetailsSimpleShowNavigation property  is true                 123    Properties       DetailsSimpleStepNameFont Property    Brief description    Syntax    Remarks       Returns Sets the font to display the step name in the details simple view         Step  object  DetailsSimpleStepNameFont    font_object     The DetailsSimpleStepNameFont property syntax has these parts        Part    Description       object    An object expression that evaluates to a SFC View control        font_object          An object expression that evaluates to a font object that determines  the font name  size and other attributes to display the step names in  the details simple view           The same font is used for the chain name in the detail simple view  too  All other  texts in the detail view and in overview are displayed with the font specified with the  standard Font property           124       Properties       9 8    DetailsStepXxx Properties       Ata glance    Introduction    What s in this  Section        In this section you will find an overview of the DetailsStepXxx properties        This section contains the following topics                 Topic Page  DetailsStepNameFont Property 126  DetailsStepsLeft Property 126  DetailsStepsWidth Property 127                   125    
19.    UsePLCDiagSystem       If this property ist rue the diagnosis is carried out via the  PLC diagnosis buffer    If this property isfalse the diagnosis is done via special  SFCView diagnosis function blocks in the Unity Pro  project           diagnosis  p  22chapter        Note  Further information on diagnostics can be found in the Prerequisites for the          67                   SFCView appearance and behavior       Settings for  diagnostics  via the PLC  diagnostics  buffer    Reloading the project when the diagnostic mode is changed        Property    Description       UseEasyModeSwitch          If this property is set to false  default   if the  UsePLCDiagSystem property is changed  the project  data is reloaded into SFC View    If this property is set to true  if the  UsePLCDiagSystem property is changed  the project  data is not reloaded into SFCView    Note  Setting this property to true makes switching  between diagnostic modes quicker but slows down the  loading of the project and uses more memory    Note  Therefore  for applications in which only one  diagnostic mode is used  it is advisable to set this  property to false           Automatic update of error display       Property    Description       DiagAutoRetrigger    If this property is set to true the PLC diagnostic buffer  reanalyzes the cause of a transition error again in a  cyclical manner  The cycle time is set via the  DiagAutoRetriggerInterval property    If this property is set to false the causes o
20.   6 4 View  Details Simple 76                      43       SFCView appearance and behavior          44    SFCView appearance and behavior       6 1 General controlling       Introduction       Overview This chapter contains information on the general control of the appearance and  behavior of SFCView   Controlling is carried out using objects  properties  methods  events and constants   All general controlling options are described in the following chapter   All controlling options assigned to a particular view will be described in the  appropriate chapter                             What s in this This section contains the following topics    Section  Topic page  General description of the control elements 46  Objects for general controlling of SFCView 46  Properties for general controlling of SFCView 48  Methods for general controlling of SFCView 50  Events for general controlling of SFCView 52  Constants for general controlling of SFCView 53                      45    SFCView appearance and behavior       General description of the control elements    General    Object    Property    Methods    Event    Constants       The appearance and behavior of the SFCView can be controlled using objects   properties  methods  events  and constants        An object  as used in object oriented programming  is any data structure which has  its own code   An object could be a button that  knows  how it is pressed and what then happens        Properties are data that are assigned to an o
21.   DetailsSimpleShowInitStepindicator Property       Brief description Returns Sets whether indicator for initial step is displayed in the details simple view   When set to false the initial step will be indicated by background color of step name  label        Syntax object DetailsSimpleShowInitStepIndicator    boolean     The DetailsSimpleShowlnitStepIndicator property syntax has these parts                                      Part Description   object An object expression that evaluates to a SFC View control    boolean A boolean expression that specifies whether the chain name  chain  status  chain comment or step comment  is displayed in details  simple view    Settings The settins for boolean are    Setting Description   True  Default  Chain name  chain status  chain comment or step  comment  is displayed    False Chain name  chain status  chain comment or step comment  is not  displayed                       122    Properties       DetailsSimpleShowNavigation Property       Brief description Returns Sets whether navigation buttons are displayed in details simple view        Syntax object  DetailsSimpleShowNavigation    boolean     The DetailsSimpleShowNavigation property syntax has these parts              Part Description   object An object expression that evaluates to a SFC View control    boolean A boolean expression that specifies whether navigation buttons are  displayed in details simple view                                      Settings The settins for boolean are
22.   If this property is set to t rue  the monitoring time  resolution is milliseconds  If itis false   the  resolution is in seconds        ste    pMax1    PimeErrBackCol    or    Background color of the step information field that  indicates that the maximum monitoring time has  been exceeded        Ste    pMax1    PimeErrForeCol    or    Text color of the step information field that indicates  that the maximum monitoring time has been  exceeded        Ste    pMin7    PimeErrBackCol    or    Background color of the step information field that  indicates that the minimum monitoring time has not  been reached        Ste             pMin7    PimeErrForeCol       or    Text color of the step information field that indicates  that the minimum monitoring time has not been  reached              72             SFCView appearance and behavior       Color for special steps       Property    Description       DetailsActiveStepBackColor Color for the edge of the info field for the active step       DetailsInactiveStepBackColor   Color for the edge of the info field for the inactive    step       DetailsInitialStepBackColor   Color indicator for the initial step             DetailsMacroStepBackColor Color indicator for a macro step           Methods for controlling the view  Details    Functions for  diagnostics  via the PLC  diagnostics  buffer    Control of the  steps display  and transitions       The following methods are available for controlling the PLC diagnostics functions        M
23.   directory of the SFCView        So that the change is effective  you must restart  via Start  gt  Programs  gt   Schneider Electric  gt  OFS   the OPC Factory Server            36       Starting and Using the  SFC View Demo Application 5       Starting and using the SFC View Demo Application    General    Source code    Preliminary  Settings    Saving the Unity  Pro test project       When installing SFC View  a SFC View Demo Application and the corresponding  source code  in Visual Basic  are installed    The SFC View Demo Application is an independent program that can also be  executed without HMI  SPS and Visual Basic    Nearly all the properties  methods and events for SFC View were configured in this  program  are available using menus  and can be tested in conjunction with Unity  Pro  the OPC Factory Server  OFS   and the Unity Pro PLC Simulator    The user can experiment with this demo application and learn how SFC View is used  and programmed        If the user s development environment is Visual Basic 6 0  the source code for the  demo application can be viewed in it    Ifa different development environment is used  the Visual Basic source code can be  viewed in any editor    The Visual Basic files can be found in the default directory      installation  directory for SFCView    SFCView Example           The demo application only works properly when all the Preliminary Settings   p  33are correct        The Unity Pro test project that belongs to the demo applicatio
24.   false  of the operation        If DisableTransitions is activated  the states of the transitions will no longer be  analyzed  The sequence remains in its current state  regardless of the signals on the  transitions  Operation of the sequence is only possible with the control commands  SetResetFlag  StepUnconditional  and StepTransDependent           200          Methods       PLCGotoNextStep Method    Brief description    Syntax    Return Value    Remarks       Activates the next step           WARNING          Danger from unsafe  dangerous and destructive operations in  tools or processes     Using the method PLCGot oNext Step itis possible to activate the next  step  even when the transition is not satisfied  PLCGotoNextStep  should therefore not be used for finding errors with controllers of  machine tools  processes or material maintenance systems  when they  are running  This can cause unsafe  dangerous  and destructive  operations of tools or processes connected to the control     Failure to follow this precaution can result in death  serious injury   or equipment damage           object  PLCGotoNextStep  unconditional     The PLCGotoNextStep method syntax has these parts                 Part Description  object An object expression that evaluates to a SFC View control   unconditional A boolean expression that indicates whether to activate the next step    regardless of the state of the transition  true  or dependent from the  state of the transition  false           
25.  Client     Note  The OFS Client program is only available if the appropriate option was  selected for the OFS installation        2   Click on Schneider Aut OFS as server and confirm using OK  The diagnosis  window for the OPC factory server is opened in the foreground        3   Put the OFS Client window in the foreground again and create a new group via  Group     New Group    and give it the name  e g  GRP1        4   Under Notification activate all the options and select the following settings   e Update rate  1000 ms   e Dead banding  0 000000  0 0 1 0    e OPC version  Auto   Confirm with OK        Via Item  gt  New    open the Addltemwindow        In the tree structure in the left window select the desired project  The project  variables are shown in the right hand window        Click on one of the variables and confirm with OK        If a green symbol appears to the left of the variable in the properties window which  now appears  the connection between the OFS and the PLC is intact                    Errors which might appear are shown in red in the OPC Factory Server diagnosis  window        The installation of a HMI application  e g  Vijeo Look  can make it so that the  diagnosis window of the OPC Factory Server is not visible in the foreground and is  displayed only as an icon in the footer line of the screen    If this is the case  run the program ChangeOFSSettings exe   This program is  saved by default during the installation of SFC View under     Installation
26.  Name of variables or the section  e  variable or section type   e Comment       10 Diagnostic  information             Display of error messages for the transition  The user can set  individually which diagnostic information is shown           62       SFCView appearance and behavior       Diagnostic  information    Then  for example  a field with diagnostic information and its associated FBD section  from a Unity Pro project are used to give an initial overview    The appearance of the field with the diagnostic information can be controlled using   for example  the properties ValueOffColor  ShowAllTransitionInputs   ShowBlockNames  ContentErrorStateColumn  StateErrorStateColunmn    etc     More detailed information on the properties  methods  events and constants which  are available for controlling the diagnostic information display can be found in the   following chapters   Example  Diagnostic information and its FBD section                                                                               Cause Error State   Pin Type   Comment  AND1 ACT11 is us  AND2 inv SFC_Start18   AND3 ACT2 is set  AND4 Link  AND4 Link   ACT10 is us  AND4 Link    FBI_11_1  3   AND_16  5 6 ACT  1 P gt     ANDI ouTL TV11  SFC Starti5 p   oj AND2  ACT2 p     AND3  AND4  11 4 1  11 5  2      AND5  NOT_BOOL OR_BOOL     AND6  ACT10 p      pi  ACT1      E     AND9      AND10      AND11      AND12      AND13      AND14      AND15      AND16  Description of the example  Number   Components Descrip
27.  Property  144  ShowAllDiagErrors Property  144  ShowAllTransitionsInput Property  145  ShowBlockNames Property  149  ShowChainGroups Property  146  ShowsStatistics Property  147  ShowStepComments Property  147  ShowTimelnms Property  148  Starting and using the SFC View Demo  Application  37  StateErrorStateColumn Property  181  StatesErrorStateColumn Constants  220  StepMaxTimeErrBackColor Property  151  StepMaxTimeErrForeColor Property   151StepMaxTimeErrText Property  152  StepMinTimeErrBackColor  154       243    Index       StepMinTimeErrForeColor  154  StepMinTimeErrText  155  Symb Property  182   System Architecture  18  System performance  85  System requirements  18    T    Tips and Tricks  Instantiating groups  84  Reading data  84  System performance  85    U    Unconditional FFB Call  229  Unity Pro   Settings  34  Unity Pro presettings  34  Unity Pro settings  34  UnityNetworkServer Property  182  UseEasyModeSwitch Property  160  UseOPCProject Property  157  UsePLCDiagSystem Property  158  159  User   requirements  21  User requirements  21    V    ValueOffBackColor Property  162  ValueOffForeColor Property  162  ValueOnBackColor Property  163  ValueOnForeColor Property  163  View  Details  60  Display of  61  General description of the  61  Details Simple  76  Display of  77  General description of the  77  Overview  54  Display for the  55  General description of the  55  View display  Details  61  Details Simple  77  Overview  55  ViewMode Property  183  View
28.  Syntax       Raised in detail mode when the user double clicks on the grid with the diagnostics  in it  The variable clicked on is passed with the chain name        Sub object_DiagVarSelect  ByVal DiagVar As String  ByVal ChainName As    String     The DiagVarSelect event syntax has these parts                       Part Description   object An object expression that evaluates to a SFC View control   DiagVar The name of the selected variable in the diagnostics grid   ChainName The name of the chain           ProjectChanged Event    Brief description    Syntax       Raised when a change of the project within the PLC was recognized        Sub object_ProjectChanged       The ProjectChanged event syntax has this part        Part    Description          object       An object expression that evaluates to a SFC View control              214          Events       ViewModeChanged Event       Brief description Raised when the view mode has changed        Syntax Sub object_ViewModeChanged ByVal NewViewMode As  SFCViewCtrl SFCViewModes     The ViewModeChanged event syntax has these parts              Part Description   object An object expression that evaluates to a SFC View control    NewViewMode The new view mode of the control represented by one of the  SFCViewModes constants                    215       Events          216       Constants    12                               Ata glance   Introduction In this chapter you will find information about the constants    What s in this Thi
29.  T 0s    Variable       ACTHis setto    Comment                Note  SFCView function blocks may only be used in FBD sections in the Unity Pro  projects  since SFCView only looks for them there              24    Requirements and restrictions                Differences The user should decide which diagnosis mode he wants to use for each section    between the Only one diagnosis mode should be used for each section    diagnostic The following table can be used to make decisions    m   odes Diagnostics via the SPS diagnostics buffer   Diagnostics via the SFCView function  blocks   A transition logic must be configured in a The transition logic must be configured using  transition section  SFCView function blocks   Only erroneous signals will be shown  All its signals will be shown        Errors will only be shown after the maximum   Transition logic and diagnosis results are  supervision time has been exceeded  i e  a always shown  maximum supervision time must be          configured    The diagnostics information can also be read   The diagnostics information can only be read  by other tools  by SFCView    No more programming is required The SFCView function blocks must be          configured in an FBD section of their own              Restrictions       General SFCView supports the IEC compliant functionalities for section programming in  Unity Pro   Other functionalities from Unity Pro are not supported or supported to a limited  extent by this version of SFCView   This must
30.  Type column for step actions        Syntax object  ColumnHdrActionType  string     The ColumnHdrActionType property syntax has these parts        Part    Description       object    An object expression that evaluates to a SFC View control        string          A string expression that evaluates to the text displayed as the header  of the columns for the step action grids in the detail view              101             Properties       9 3    ColumnHdrChainXxx Properties       Ata glance    Introduction    What s in this  Section        In this section you will find an overview of the ColumnHdrChainXxx properties        This section contains the following topics                 Topic Page   ColumnHdrChainComment Property 103  ColumnHdrChainName Property 103  ColumnHdrChainStatus Property 104                   102       Properties       ColumnHdrChainComment Property    Brief description    Syntax    ColumnHdrChainName Property    Brief description    Syntax       Returns Sets the header text of the Chain Comment column        object  ColumnHdrChainComment  string     The ColumnHdrChainComment property syntax has these parts                    of the columns for the chain grid in the overview     Part Description  object An object expression that evaluates to a SFC View control   string A string expression that evaluates to the text displayed as the header             Returns Sets the header text of the Chain Name column        object  ColumnHdrChainName  string     The Colu
31.  actions        Syntax object ColumnHdrActionName  string     The ColumnHdrActionName property syntax has these parts                 Part Description   object An object expression that evaluates to a SFC View control    string A string expression that evaluates to the text displayed as the header  of the columns for the step action grids in the detail view                 ColumnHdrActionQualifier Property       Brief description Returns Sets the header text of the Qualifier column for step actions        Syntax object  ColumnHdrActionQualifier  string        100    Properties       The ColumnHdrActionQualifier property syntax has these parts        Part    Description       object    An object expression that evaluates to a SFC View control        string          A string expression that evaluates to the text displayed as the header  of the columns for the step action grids in the detail view           ColumnHdrActionTime Property       Brief description  Returns Sets the header text of the Time column for step actions        Syntax object  ColumnHdrActionTime  string     The ColumnHdrActionTime property syntax has these parts        Part    Description       object    An object expression that evaluates to a SFC View control        string          A string expression that evaluates to the text displayed as the header  of the columns for the step action grids in the detail view           ColumnHdrActionType Property       Brief description Returns sets the header text of the
32.  al des 209  ChainOpem Event ici A ea ee eed 210  ChainSelect Evento  seed ei a lee ae aa RR Aton sb a 210  ChainStatusChanged Event                                         211  Other EVentS ita al tata Brees 212  ACACIA A AA Ci ee aia 212  ActionVarSelect Event           o ooooooooororr nn 213  DetailsSimpleDbIClick Event                                        213  DiagVarSelect Event ii e e a E kua eee 214  ProjectChanged Event                                             214  ViewModeChanged Event                                          215  Constants sarasa HI Re RG 217  Ataglanco nriran n rs ti A a beg Ma 217  ChainStatusFlags Constants                                        218  OnChainOpenActions Constants                                     218  SFCViewModes Constanis                                         219  ContentsErrorStateColumn Constants                                 219  StatesErrorStateColumn Constants                                   220          Part Ill    Chapter 13    Chapter 14    Chapter 15    Chapter 16    Chapter 17    SFCView block library                            221  INtrOdUCTION   orei A A AA ia 221  Block types and their applicationsS                      223  A Mein k oa NN 223  Block ES iian ea hi WA ae 224  ERB Structures  a WA 8 toate  225  ENANA ENO a a A Rea tiea hath erg 228  AND_16  boolean AND   with 16 predefinedinputs                             231  Description  rt hele Bik ew anc ee ee Cenk is dhs aoa 231  AND_OR_8  Combined 
33.  and details simple view                       141    Properties       OverviewTextSectionDisabled Property    Brief description    Syntax       Returns Sets the text to display the chain state  Section Disabled    in the overview  and details simple view        object  OverviewTextSectionDisabled    string     The OverviewTextSectionDisabled property syntax has these parts                    Part Description   object An object expression that evaluates to a SFC View control    string A string expression that evaluates to the text displayed for the chain  states the overview and details simple view           OverviewTextSetResetFlag Property    Brief description    Syntax       Returns Sets the text to display the chain state  Reset Flag Set  in the overview and    details simple view        object  OverviewTextSetResetFlag    string     The OverviewTextSetResetFlag property syntax has these parts                    Part Description   object An object expression that evaluates to a SFC View control    string A string expression that evaluates to the text displayed for the chain  states the overview and details simple view              142          Properties       9 13    ShowXxx Properties       Ata glance    Introduction    What s in this  Section        In this section you will find an overview of the ShowXxx properties        This section contains the following topics                                   Topic Page   ShowActiveStep Property 144  ShowAllDiagErrors Property 14
34.  be noted when creating Unity Pro projects        Multi Token The execution sequence Multi Token is not supported by SFCView        Macro steps Macro sections are symbolically views in SFCView  double line above and below    The lower steps in macro steps are not shown in SFCView        Action section For action sections in SFCView  in the details view  only the following is shown   e Section name  e Type  S   Action Section   The logic contained in the action section is notshown in the SFCView           25    Requirements and restrictions          26       Installation       Introduction    Overview    What s in this  Chapter        This chapter contains information on installations that are required to use    Unity SFC View        This chapter contains the following topics                                Topic Page   Installation sequence 28  Installation and registration of Unity Pro and OFS 28  Installing SCF View 29  Installation of the SFC View Library 30  Registration with Schneider Electric 30  Implementation of the SFC View ActiveX Controls 32             27       Installation       Installation sequence       Prescribed Adhere to the following installation sequence to make sure that SFC View is  sequence operating without any errors   1  Unity Pro 2 0    OPC Factory Server  OFS  3 1    SFC View 2 0    SFC View Library    HMI software    oR    ND       Software Make sure that only software versions are installed which are guaranteed to work  versions together perfectl
35.  of EN is  0     are not executed and       o output can be configured for all FFBs        when the FFB is called up  the algorithms defined by the FFB  ENO is set to  0      If the value of EN is  1  when the FFB is called up  the algorithms defined by the FFB  are executed  After the algorithms have been executed successfully  the value of        o         If ENO is set to  0   caused by    e Function blocks          ENO is set to  1   If an error occurs when executing these algorithms  ENO is set to    EN 0 or an error during execution      e EN ENO handling with function blocks that  only  have one connection as  output parameter            EN      INI      IN2    FunctionBlock_1    ENO        OUT       FunctionBlock_2        EN                      IN1    IN2    ENO      OUT              If EN from FunctionBlock_1 is set to  0   the output connection OUT from    FunctionBlock_1 retains the status it had in the last correctly executed    cycle     e EN ENO handling with function blocks that have one variable and one    connection as output parameters            EN     IN1      IN2    FunctionBlock_1    ENO  OUT    OUTI                         EN  IN1  IN2    FunctionBlock_2    ENO      OUT              If EN from FunctionBlock_1 is set to  0   the output connection OUT from    FunctionBlock_1 retains the status it had in the last correctly executed  cycle  The variable OUT1 on the same pin  either retains its previous status or  can be changed externally without influenci
36.  only in details  mode        object DisplayPrevParStep    The DisplayPrevParStep method syntax has this part        Part Description             object An object expression that evaluates to a SFC View control              A boolean value indicating the success  true  or failure  false  of the operation           194    Methods       10 3    PLCXxx Methods       Ata glance    Introduction    What s in this  Section        In this section you will find an overview of the PLCXxx methods        This section contains the following topics                                      Topic Page   PLCClearChain Method 196  PLCDisableActions Method 197  PLCDisableSection Method 198  PLCDisableTimeCheck Method 199  PLCDisableTransitions Method 200  PLCGotoNextStep Method 201  PLCResetTimeErrors Method 202  PLCSetinitializeFlag Method 203             195       Methods       PLCClearChain Method       Brief description Resets all active steps in the sequence        WARNING       Danger of unsafe  dangerous and destructive operations for tools  or processes     PLCClearChain should not be used for trouble shooting while  operating machine tools  processes or material administration systems  while they are running  This can lead to unsafe  dangerous and  destructive operations by the tools or processes linked to the controller     Failure to follow this precaution can result in death  serious injury   or equipment damage                    Syntax object  PLCClearChain  value     The PLCClearChai
37.  only used     e  connected inputs  are used   Note  If no inputs are connected the block returns the value    TRUE      EN and ENO can be configured as additional parameters   Formula OUT   AND1 8 AND2  amp  ANDn       Representation Representation   in FBD       AND_16  Value_1     AND1 OUT     Result  Value 2     AND2  Value_3      AND3  Value 4   1 AND4  Value 5   1 AND5  Value 6    AND6  Value_7      AND7  Value_8      AND8  Value_9    _  AND9  Value_10     AND10  Value_11__  AND11  Value_12    4 AND12  Value 13     AND13  Value 14     AND14  Value 15     ANDIS  Value 16     AND16                   231    AND_16       Representation  in LD    Representation  in IL    Representation  in ST    Parameter  description    The function block can only be used in FBD sections        The function block can only be used in FBD sections        The function block can only be used in FBD sections        Description of the input parameters                    Parameters   Data type Meaning  AND1 BOOL Input 1  AND2 BOOL Input 2  AND16 BOOL Input 16       Description of    the output parameters        Parameters    Data type    Meaning          OUT       BOOL    Boolean AND connection for the connected inputs                232          AND OR 8  Combined boolean  AND OR with 8 predefined inputs 1 5       Description    Function  description    Formula    Representation  in FBD       This block is used to implement a boolean AND connection with up to 8 inputs and  a Boolean OR connection
38.  previous step  This method work in details and details  simple mode        Syntax object  DisplayPreviousStep    The DisplayPreviousStep method syntax has this part                          Part Description  object An object expression that evaluates to a SFC View control   Return Value A boolean value indicating the success  true  or failure  false  of the operation           192    Methods       DisplayPrevActiveStep Method       Brief description Navigate to and display the previous active step  This method works in details and  details simple mode        Syntax object  DisplayPrevActiveStep    The DisplayPrevActiveStep method syntax has this part                          Part Description  object An object expression that evaluates to a SFC View control   Return Value A boolean value indicating the success  true  or failure  false  of the operation        DisplayPrevAltTran Method       Brief description Navigate to and display the previous alternate transition  This method works only in  details mode        Syntax object  DisplayPrevAltTran    The DisplayPrevAltTran method syntax has this part                          Part Description  object An object expression that evaluates to a SFC View control   Return Value A boolean value indicating the success  true  or failure  false  of the operation           193    Methods       DisplayPrevParStep Method    Brief description    Syntax    Return Value       Navigate to and display the previous parallel step  This method works
39.  safety regulations must be observed when  installing and using this product  For reasons of safety and to ensure compliance  with documented system data  only the manufacturer should perform repairs to  components    When controllers are used for applications with technical safety requirements   please follow the relevant instructions    Failure to use Schneider Electric software or approved software with our hardware  products may result in injury  harm  or improper operating results    Failure to observe this product related warning can result in injury or equipment  damage        We welcome your comments about this document  You can reach us by e mail at  TECHCOMM modicon com          11    About the Book          12       Unity SFC View                                     Ata Glance  Overview This section contains information on the Unity SFCView software package   henceforth referred to as SFCView     What s in this This part contains the following chapters    Part  Chapter Chapter Name Page  1 General description 15  2 Requirements and restrictions 17  3 Installation 27  4 Preliminary Settings 33  5 Starting and Using the SFC View Demo Application 37  6 SFCView appearance and behavior 43  7 Tips and Tricks 83                      13       Unity SFC View          14       General description       General description    Target group for  documentation    Brief description    Three views       The documentation is targeted towards configuration specialists who want to  i
40.  section contains the following topics                       Topic Page   ChainOpen Event 210  ChainSelect Event 210  ChainStatusChanged Event 211             209       Events       ChainOpen Event    Brief description    Syntax       Raised in overview mode when the user double clicks on a chain in the grid or  presses the Enter key while the grid has the focus        Sub object_ChainOpen ByVal ChainName As String     The ChainOpen event syntax has these parts                    Part Description  object An object expression that evaluates to a SFC View control   ChainName The name of the chain to open           ChainSelect Event    Brief description    Syntax       Raised in overview mode when the user selects a new row in the grid        Sub object_ChainSelect ByVal ChainName As String     The ChainSelect event syntax has these parts                    Part Description  object An object expression that evaluates to a SFC View control   ChainName The name of the selected chain              210          Events       ChainStatusChanged Event       Brief description Raised when a chain s status has changed        Syntax Sub object_ChainStatusChanged ByVal ChainName As String  ByVal  NewStatus As SFCViewCtrl ChainStatusFlags     The ChainStatusChanged event syntax has these parts                    Part Description   object An object expression that evaluates to a SFC View control    ChainName The name of the chain    NewStatus The new status of the chain represented by a combin
41.  sets the PC where the  OPC Factory Server is located  PC name and IP address     OFSDevices Makes information regarding the OFS device collection  available              Properties on the device collection defined in the OFS configuration tool                Property Description  count Is the number of devices in the OFS device collection   Item Is the index of a device in the OFS device collection              Properties for the devices defined in the OFS configuration tool                            Property Description   Symb Is the name and path of a file with file ending information   e g   STU     Alias Is the alias name for a device in the OFS device collection    MaxChannel Is the maximum number of channels in a device    Path Is the device address           The following property is available for online controlling        Property    Description       ChainControlVariableName       Specifies the name of the variable configured as the input  variable ofthe SFCVIEW_CTRL function block in the Unity  Project               The following property specifies the width of the SFCView control        Property    Description       Width             Specifies the width of the control             49             SFCView appearance and behavior       Font    Background  color    The following property specifies the general fonts        Property    Description       Font       Specifies the fonts for the text in the individual SFC View   views    The following text fonts can be set 
42.  should be given to the following procedures in order to speed up the   communications in the system    e Inthe OFS configuration tool  increase the MaxChannels option  Use the  maximum value allowed by the application    e Set the ViewMode property before creating a link to the PLC  SFC View only  instantiates the OPC groups that are required in the desired view    e  f you are using the view  Details or Details Simple  set the ChainName property  before you create a link to the PLC  SFC View only instantiates the OPC groups  that are required for the desired section    e Set the EnableOPCUpdates property  for the time in which the SFCView  window remains in the background  to false  This will reduce the data traffic for  this duration           To revert to the SFC View Controls presettings  you must delete it from the Activex  container and then insert it again        SFC View was developed with Microsoft Visual Studio 6 0  SP5   Therefore  the  control requires mfc42 dll  version 6 0 or higher    If the ActiveX container used by you has a lower DLL version  it can create conflicts  between SFC View and the ActiveX container    Therefore you must ensure that your ActiveX container works correctly with  mfc42 dll  version 6 0 or higher           85    Tips and Tricks          86       Functional Reference                               Ata glance  Introduction In this part you will find information about objects  properties  methods  events and  constants   What s in this Th
43.  that evaluates to a SFC View control   color A value or constant that determines the background colors to display  the    Active     Inactive    and    Initial    states of the steps in the detail view   Remarks See the Visual Basic documentation about possible color values or color constants           113       Properties       DetailsInitialStepBackColor Property    Brief description    Syntax    Remarks       Returns Sets the background color to display initial step indicator in the details and  details simple view  In details simple view dependently on property   DetailsSimpleShowInitStepIndicator the Initial step indicator or step name label will  be displayed in this color when currently displayed step is initial        object DetailsInitialStepBackColor    color     The DetailsInitialStepBackColor property syntax has these parts              Part Description   object An object expression that evaluates to a SFC View control    color A value or constant that determines the background colors to display  the  Active   Inactive  and    Initial    states of the steps in the detail view                    See the Visual Basic documentation about possible color values or color constants        DetailsWaitingStepBackColor Property    Brief description    Syntax    Remarks       Returns Sets the background color to display a step in waiting state in the details  simple view  Waiting state means that displayed step is initial step or reset flag is set  for the chain        obje
44.  the ADDRESS tree structure on the left hand side select a network type   6   Enter the network address and for the PLC select UNITY   7   Confirm your entries using OK   8   Click in the Symbol table file and using the arrow pointing down select the page  to select the symbol file   9   For the file type select UnityPro project file   stu  and the desired file   10   Confirm your selection using Open   11   Click on the button Alias properties    and check the option Check Consistency    Confirm the option is activated using Apply   12   Now confirm all your entries for the new alias using Apply           The following table describes the procedure to load a project        Step    Action       Launch Unity Pro        Open the desired     STU file via File  gt  Open        Via PLC  gt  Connect    create a connection to the PLC or PLC simulator controller        B 0O D              Via PLC  gt  Transfer Project to PLC load the program into the PLC or PLC  simulator controller    Note  If you select the option PLC RUN after transfer   the PLC starts automatically  after the program is transferred           35          Preliminary Settings       Test the  connection  between the  OFS and the PLC    Diagnosis  window for  the OFS    Diagnosis  window not  visible    The following table describes the procedure for testing the connection between the  OFS and the PLC           Step  Action  1   Start the OFS client via Start  gt  Programs  gt  Schneider Electric   OFS  gt  OFS  Test
45.  the PLC diagnostics buffer  e Diagnostics via the SFC View function blocks in the Unity Pro Project       Note  Further information on diagnostics can be found in the View  Details  p  60  chapter              For the SFCView function block diagnostics  the SFC View library must be installed    See Installation of the SFC View Library  p  30     A description of the SFCView function blocks can be found in the SFC View block  library  p  221 chapter           22    Requirements and restrictions       Settings in  Unity Pro    Control  diagnostic mode    Diagnostics  via the PLC  diagnostics  buffer    Diagnostics  via the SFCView  function blocks    To use the diagnostics in Unity Pro  certain settings must be made   See Unity Pro  presettings  p  34         The diagnostic mode is controlled via the control property UsePLCDiagSystem              Property Diagnostics via the SPS Diagnostics via the SFCView  UsePLCDiagSystem diagnostics buffer function blocks   True X     False   X                      If the UsePLCDiagSystem property is set to True the control reads the diagnosis  information from the PLC diagnostic buffer        If the property UsePLCDiagSystem is setto False   the diagnosis is done via  special SFC View function blocks in the respective Unity Pro project    For this reason  for every transition in the Unity Pro project  a SFC View function  block of this type must be configured and its output variable used as a transition  variable    The following SFC View 
46.  these parts              Part Description   object An object expression that evaluates to a SFC View control    color A value or constant that determines the background or foreground  colors to display the  On  and  Off  states of the variable values                    Remarks See the Visual Basic documentation about possible color values or color constants        ValueOffForeColor Property       Brief description Returns Sets the foreground color to display a variable value in  Off  state        Syntax object ValueOffForeColor    color     The ValueOffForeColor property syntax has these parts              Part Description   object An object expression that evaluates to a SFC View control    color A value or constant that determines the background or foreground  colors to display the  On  and    Off  states of the variable values                    Remarks See the Visual Basic documentation about possible color values or color constants           162    Properties       ValueOnBackColor Property       Brief description Returns Sets the background color to display a variable value in  On  state        Syntax object  ValueOnBackColor    color     The ValueOnBackColor property syntax has these parts              Part Description   object An object expression that evaluates to a SFC View control    color A value or constant that determines the background or foreground  colors to display the    On  and  Off  states of the variable values                 Remarks See the Visual Bas
47.  value or constant that determines the background and foreground  colors to display that the minimum step time was not reached                 Remarks See the Visual Basic documentation about possible color values or color constants           154    Properties       StepMinTimeErrText Property       Brief description Returns Sets the text to display that the minimum step time was not reached  detail  view         Syntax object  StepMinTimeErrText    string     The StepMinTimeErrText property syntax has these parts                 Part Description   object An object expression that evaluates to a SFC View control    string A string expression that determines the text to display in the detail  view when the minimum step time was not reached                 155       Properties       9 16    UseXxx Properties       Ata glance    Introduction    What s in this  Section        In this section you will find an overview of the UseXxx properties        This section contains the following topics                          Topic Page  UseOPCProject Property 157  UsePLCDiagSystem Property  Unity Pro  158  UsePLCDiagSystem Property 159  UseEasyModeSwitch Property 160             156       Properties       UseOPCProject Property       Brief description Returns Sets whether the project file will be determined automatically from the OPC    access path        Syntax object  UseOPCProject    boolean     The UseOPCProject property syntax has these parts                                   Part Des
48.  with up to 8 inputs   The result of the AND_OR_8 block is an AND connection of the above connections        Note  Non connected AND inputs have by default the value TRUE     Non   connected OR inputs have by default the value  FALSE   Thus  if there is not at  least one OR input connected  the block delivers the value  FALSE                 EN and ENO can be configured as additional parameters              OUT    AND1  amp  AND2  amp  ANDn  AND  OR1 OR OR2 OR ORn        Representation        AND_OR_8    Value_1     AND1 OUT      Result  Value 2   1 AND2  Value_3   _  AND3  Value _4     AND4  Value_5     AND5  Value _6     AND6  Value_7 _  AND7  Value_8       AND8  Value 9      OR1  Value 10    OR2  Value_11     OR3  Value_12       OR4  Value_13   _  OR5  Value_14    OR6  Value_15   _  OR7  Value 16   1 OR8                      233    AND_OR_8       Representation  in LD    Representation  in IL    Representation  in ST    Parameter  description    The function block can only be used in FBD sections        The function block can only be used in FBD sections        The function block can only be used in FBD sections        Description of the input parameters                                                           Parameters   Data type Meaning   AND1 BOOL AND input 1   AND2 BOOL AND input 2   AND8 BOOL AND input 8   OR1 BOOL OR input 1   OR2 BOOL OR input 2   OR8 BOOL OR input 8   Description of the output parameters    Parameters   Data type Meaning   OUT BOOL Boolean conne
49. 0    Properties                                                                            9 20 Other Properties   Ata glance   Introduction In this section you will find an overview of the other properties    What s in this This section contains the following topics    Section  Topic Page  Alias Property 172  AutomaticProjectReload Property 173  BackColor Property 174  Count Property 174  ContentErrorStateColumn Property 175  EnableOPCUpdates Property 176  Font Property 176  ltem Property 177  MaxChamnel Property 177  NumberErrorGridLines Property 178  OFSDevices Property 178  OnChainOpen Property 179  Path Property 179  ProjectFile Property 180  Refresh Property 180  StateErrorStateColumn Property 181  Symb Property 182  UnityNetworkServer Property 182  ViewMode Property 183                      171    Properties       Alias Property    Brief description    Syntax    Remarks       Returns a string specifying the alias name of a device configured for use with OFS        object Alias    The Alias property syntax has this part        Part Description       object An object expression that evaluates to an OFSDevice object                    This is a read only property    The value of this property for a given device should be entered in the SFC View  control s OPCAccessPath property to specify which Unity Concept project to use  and from which PLC OFS should read the real time data           172    Properties       AutomaticProjectReload Property       Brief description Return
50. 2    F    Font Property  176       240    Index       G    General controlling  45  General description of the control elements   46  General description of the view  Details  61  Details Simple  77  Overview  55  GetOFSInfo Method  205    Implementation of the SFC View ActiveX  Controls  32  Installation  27  SFC View Library  30  Installation and registration of Unity Pro and  OFS  28  Installation of the SFC View Library  30  Installation sequence  28  Installing SCF View  29  Instantiating groups  84  Item Property  177    L  Library   SFC View  install  30  M  MaxChannel  177  Method    About  205  DiagResetErrorBuffer  188  DiagRetrigger  188  DisplaylnitialStep  190  DisplayNextActiveStep  190  DisplayNextAltTran  191  DisplayNextParStep  191  DisplayNextStep  192  DisplayPrevActiveStep  193  DisplayPrevAltTran  193  DisplayPreviousStep  192  DisplayPrevParStep  194    GetOFSInfo  205  PLCClearChain  196  PLCDisableActions  197  PLCDisableSection  198  PLCDisableTimeCheck  199  PLCDisableTransitions  200  PLCGotoNextStep  201  PLCResetTimeErrors  202  PLCSetinitializeFlag  203  ReloadProject  206   Methods  185   Methods for controlling the view  Details  73  Details Simple  81   Methods for general controlling of SFC View    50    N    NumberErrorGridLines Property  178    O    Objects  89  OFSDevice Object  90  OFSDevices Collection  90  OFSInfo Object  91  SFC View Control  91  Objects for general controlling of SFCView   46  OFSDevice Object  Objects  90  OFSDevice
51. 3  ColumnHdrChainName  103  ColumnHadrChainStatus  104  ColumnHdrErrorComment  106  ColumnHareErrorPinType  107  ColumnHdrErrorState  108  ColumnHdrErrorStep  106  ColumnHdrErrorVariable  107  ColumnHarPrallelSteps  110  ColumnHdrStepComment  110  ColumnHdrStepName  111  ContentErrorStateColumn  175  Count  174  DetailsActiveStepBackColor  113  DetailsInactiveStepBackColor  113  DetailsInitialStepBackColor  114  DetailsSimpleShowChainComment  119  DetailsSimpleShowChainName  117  DetailsSimpleShowChainStatus  118  DetailsSimpleShowlnitStepIndicator 122  DetailsSimpleShowNavigation  123  DetailsSimpleShowStepComment  121  DetailsSimpleShowStepErrorLabel  120  DetailsSimpleStepNameFont  124  DetailsStepNameFont  126  DetailsStepsLeft  126  DetailsStepsWidth  127  DetailsTextDisableActions  129  DetailsTextDisableTimeCheck  129  DetailsTextDisableTransitions  130  DetailsTextSectionDisabled  130  DetailsTextSetResetFlag  131  DetailsViewLinesColor  115  DetailsWaitingStepBackColor  114  DiagAutoRetrigger  133  DiagAutoRetriggerInterval  134  EnableOPCUpdates  176   Font  176   Item  177   MaxChannel  177  NumberErrorGridLines  178  OFSDevices  178   OnChainOpen  179  OPCAccessPath  136   OPCConnect  137       242    Index       OPCNetworkServer  136  OPCUpdateRate  138  OverviewTextDisableActions  140  OverviewTextDisableTimeCheck  140  OverviewTextDisableTransitions  141  OverviewTextRunning  141  OverviewTextSectionDisabled  142  OverviewTextSetResetFlag  142  Path  179   Proj
52. 33003015 00    Unity SFC View  Version 2 0  User s manual    June 2004    a brand of  Schneid     E sit  Telemecanique       Table of Contents       GY   AbouttheBook                                       11   PartI Unity SFC ViewW                                  13  Aa cir A a ea Ea at ee ee ete od 13   Chapter 1 General description                                    15  General  description ii is Pets Pe eG Vt len kla wa 15   Chapter 2 Requirements and restrictions                           17   NtrOUCTION Ss sce  tak A A DA eee ee 17   System requirements                                               18   System Architecture IA IIIA 18  Userreguirements                                                 21   Prerequisites for online controlling                                     22   Prerequisites for the diagnosis                                        22   Restrictions pai A Sid ete  Rls e E EILE ato 25   Chapter 3 Installation                                           27   NtrOGUCTON AT Sa Le Ber eee 27  Installationseguence                                               28   Installation and registration of Unity Pro and OFS                         28   Installing SCF VieW        o o oooooccooocoooo eens 29   Installation of the SFC View Library                                    30   Registration with Schneider Electric                                    30  Implementation of the SFC View ActiveX Controls                        32   Chapter 4 Preliminary Settings       
53. 4  ShowAllTransitionsInput Property 145  ShowChainGroups Property 146  ShowStatistics Property 147  ShowStepComments Property 147  ShowTimelnms Property 148  ShowBlockNames Property 149                143       Properties       ShowActiveStep Property       Brief description Returns Sets whether the details and details simple views displays always the active    step        Syntax object  ShowActiveStep    boolean     The ShowActiveStep property syntax has these parts                                   Part Description  object An object expression that evaluates to a SFC View control   boolean A boolean expression that specifies whether the details and details simple  view displays always the active step   Settings The settings for boolean are   Setting Description  True  Default  The detail and details simple view displays always the active step   False The detail view does not follow the active step                 ShowAllDiagErrors Property       Brief description  Returns Sets whether all diag errors are shown or not        Syntax object ShowAllDiagErrors    boolean     The ShowAllDiagErrors property syntax has these parts        Part    Description       object    An object expression that evaluates to a SFC View control        boolean          A boolean expression that specifies whether all diag errors of the chain are  shown in the detail view or not              144             Properties                            Settings The settings for boolean are   Setting Descrip
54. 9  View  Detalls 2 KA a ae a EA 60  Introduction    0 5 sian een ease eat Beeb eb a BA Pa 60  General description  osasia paie a aa g a Ea a a AE a AeA 61  Properties for controlling the view  Details                               65  Methods for controlling the view  Details                                73  Events for controlling the view  Details                                  74  Constants for controlling the view  Details                               75  View  Details Simple                                                76  Introduction eriet A a a A ee ee a ave a 76  General description                                                 77  Properties for controlling the view  Details Simple                         78  Methods for controlling the view  Details Simple                           81  Events for controlling the view  Details Simple                            81  Tips ANAUTFICKS   iia ee ee ea eee le ee 83  IMTROGAUCTION cv oct anda eet Se ii tee a WANI JE MITAA INA  83  Reading data and instantiating groups                                  84  System performance                                                85  Functional Reference                              87  Alia QlanCe iin ties  bik ett ete e te anh eee 87  A AAA See ae ela eda die lasted erase eas 89  Ata QIANCe AAA ea AAA a GE A We el Be 89  OFSDEVICS ObjeCt  sica a ee Sa ow ele ae 90  OFSDevices Collection                                              90  OFSInfo  Object  ec aaa cue eh ha ele ee 
55. Actions property syntax has these parts                    Part Description   object An object expression that evaluates to a SFC View control    string A string expression that evaluates to the text displayed for the chain  states in the detail view              DetailsTextDisableTimeCheck Property       Brief description Returns Sets the text to display the chain state  Time Check Disabled  in the detail  view        Syntax object  DetailsTextDisableTimeCheck    string     The DetailsTextDisableTimeCheck property syntax has these parts                 Part Description   object An object expression that evaluates to a SFC View control    string A string expression that evaluates to the text displayed for the chain  states in the detail view                 129       Properties       DetailsTextDisableTransitions Property    Brief description    Syntax       Returns Sets the text to display the chain state  Transitions Disabled  in the detail    view        object DetailsTextDisableTransitions    string     The DetailsTextDisableTransitions property syntax has these parts                    Part Description   object An object expression that evaluates to a SFC View control    string A string expression that evaluates to the text displayed for the chain  states in the detail view           DetailsTextSectionDisabled Property    Brief description    Syntax       Returns Sets the text to display the chain state  Section Disabled  in the detail view        object  DetailsTextSect
56. Comments Property    Brief description    Syntax    Settings       Returns Sets whether step comments or chain comments are displayed in the    overview grid        object  ShowStepComments    boolean     The ShowStepComments property syntax has these parts              Part Description  object An object expression that evaluates to a SFC View control   boolean A boolean expression that specifies whether to display step comments or          chain comments in the overview grid           The settings for boolean are                 Setting Description  True  Default  The comments of the active steps are shown in the overview grid   False The chain comments are shown in the overview grid                 147                Properties       ShowTimelnms Property    Brief description    Syntax    Settings       Returns Sets whether in the details and details simple views  step delay time and  current time are displayed in milliseconds        object ShowTimeInms    boolean     The ShowTimelnms property syntax has these parts              Part Description   object An object expression that evaluates to a SFC View control    boolean A boolean expression that specifies whether in the details and details  simple views  step delay time and current time are displayed in  milliseconds                    The settings for boolean are              Setting Description   True  Default  Step delay time and current time are displayed in  milliseconds    False Step delay time and current time are 
57. ModeChanged Event  215    W    WidthActionCommentColumn Property  166  WidthActionQualifierColumn Property  165  WidthActionTimeColumn Property  165  WidthActionVariableColumn Property  166  WidthErrorCommentColumn Property  170  WidthErrorPinTypeColumn Property  169  WidthErrorStateColumn Property  169  WidthErrorStepNameColumn Property  168  WidthErrorVariableColumn Property  168       244    
58. StatusFlagsconstants   p  53constants            Project change in the PLC        Event    Description       ProjectChanged          Is triggered  if the project data changes in the PLC  e g  after  Transfer Project to PLC             52             SFCView appearance and behavior       Constants for general controlling of SFCView    ChainStatus   Flagsconstants    SFCViewModes   constants       The ChainStatusChanged  Change in state of the chain  p  52  event can be  made up of one or more ChainStatusFlagsconstants                                   Constants Value Description   CsfRunning 0 The chain is activated   CsfSectionDisabled 1 The chain is deactivated   CsfInitializeFlagSet 2 The chain initialize flag is set   CsfTimeCheckDisabled 4 Time monitoring is deactivated   CsfTransitionDisabled 8 The transitions are deactivated   CsfActionsDisabled 16 The actions are deactivated   CsfUnknown 4096 The chain state is unknown              The ViewMode  View  p  48  property is set by the following constants                 Constants Bit Description   SfcOverview 0 The section is shown in the Overview view   SfcDetails 1 The section is shown in the Details view   SfcDetailsSimple 2 The section is shown in the Details Simple view                       53          SFCView appearance and behavior       6 2    View  Overview       Introduction    Overview    What s in this  Section        This chapter contains general information about the view  Overview  that displays    the SFCV
59. This is a read only property    If the value of the object s Alias property is entered in the SFC View control s  OPCAccessPath property and the control s property UseOPCProject is set to true   the value of this property has to be the file name of the Unity program   STU file         UnityNetworkServer Property    Brief description    Syntax    Remarks       Returns Sets information about the location of the Unity Pro program        object UnityNetworkServer    string     The UnityNetworkServer property syntax has these parts              Part Description   object An object expression that evaluates to a SFC View control    string A string expression that determines where the Unity Pro program is  located                    Default value of the property is  That means the Unity Pro program is located on the local machine    In case of distributed configuration please use this property to define the location   PC name or IP address  of the Unity Pro program           182    Properties       ViewMode Property    Brief description    Syntax    Settings       Returns Sets the kind of information to be displayed        object   ViewMode       value     The ViewMode property syntax has these parts              Part Description  object An object expression that evaluates to a SFC View control   value A numeric expression that specifies whether to show the overview           details or details simple view           For the settings for value see SFCViewModes Constants  p  219       
60. Tools  gt  Project settings     gt  Language extension the  Allow multiple token option is not selected        Make sure that under Tools  gt  Options  gt  General  gt  Save project automatically  the option On Download is selected        OPC Factory Server Presettings    General    Starting OFS  configuration  tool    Options       Before the SFC View can be used  certain settings must be made in the OFS  configuration tool        Execute the command Start  gt  Program  gt  Schneider Electric  gt  OFS  gt  OFS  configuration tool        In the tab Options under Features the following option must be selected   e Enable OPC Extensions       Note  In case the tab Options is not displayed  via the command button  Advanced    all tabs can be shown                 34    Preliminary Settings       Comm  settings    Create alias    Loading the  project    In the Comm  tab in Options for devices without alias the following option must  be selected   e Check Consistency       Note  If the Comm  tab is not shown  all of the tabs can be shown via the  Advanced    tab           An alias is required to ensure that SFC View and OFS can work together  The  following table describes the procedure to create a new alias                                                  Step Action  1 Click the Alias tab   2  Click the H  Create new alias  button   Enter a new name   4   Click on the  lt Driver gt  field  lt PLC addr gt  and using the Arrow down open the page  to enter the driver name   5   From
61. ag is set  to CsfActionsDisabled             79    SFCView appearance and behavior       Texts for the monitoring time                   Property Description   StepMaxTimeErr Text shown in the step information field  if the  maximum monitoring time is exceeded    StepMinTimeErr Text that is shown in the step information field  if the    minimum monitoring time has not been reached              Note  The SFCView texts are stored in English by default but can be changed by  the person carrying out the configuration        Unit and color for the monitoring time field       Property    Description       ShowTimeInms    If this property is set to true  the monitoring time  resolution is milliseconds  If itis false   the  resolution is in seconds        StepMaxTimeErrBackColor    Background color of the step information field that  indicates that the maximum monitoring time has  been exceeded        StepMaxTimeErrForeColor    Text color of the step information field that indicates  that the maximum monitoring time has been  exceeded        StepMinTimeErrBackColor    Background color of the step information field that  indicates that the minimum monitoring time has not  been reached                 StepMinTimeErrForeColor          Text color of the step information field that indicates  that the minimum monitoring time has not been  reached        Color for special steps       Property    Description       DetailsActiveStepBackColor    Color for the edge of the info field for the ac
62. ainGroups Property                                        146  ShowStatistics Property                                            147  ShowStepComments Property                                       147  ShowTimelnms Property                                           148  ShowBlockNames Property                                         149  StepMaxTimeErrXxx Properties                                      150  Aba  Qlance  ennan alten ek oe oie i oi de eee ea as pee erie tee eels 150  StepMaxTimeErrBackColor Property                                  151  StepMaxTimeErrForeColor Property                                  151  StepMaxTimeErrText Property                                       152  StepMinTimeErrXxx Properties                                      153  AtiaQlance sn sans sake eid Sam AS te ka 153  StepMinTimeErrBackColor Property                                  154  StepMinTimeErrForeColor Property                                   154  StepMinTimeErrText Property                                       155  UseXxx  Properties  uti o betes So heats beni Aeon ee id 156  Ata Glance  rinio eni aa ti ee ead ath a ls bad 156  UseOPCProject Property                                           157  UsePLCDiagSystem Property  Unity Pro                               158  UsePLCDiagSystem Property                                       159  UseEasyModeSwitch Property                                       160  ValueXxx Properties    0 0    teens 161  Ata glance ie A te Mie Goan ba
63. al unit was selected  all the step chains for  it are shown in the table on the right    Note  All chains that are not assigned to a functional  unit are shown in the main directory           3 Information on the step  e Step chain name  chains e Name of the active step for each chain  e Number of parallel alternative steps  e Chain state  e Step   chain comment  4A Selecting a step chain   Click on the cell in the table on the right                 In the first column  an arrow is shown           55    SFCView appearance and behavior             Number  Components Description  4B Selecting more than Click in a line in the right hand table and confirm by  one step chain pressing the spacebar   Instead of an arrow in the first column  a cross is  shown     Using this method you can select more than one step  chain and for all chains at once  e g   PLCSetInitializeFlag apply the method    Note    If more than one step chain is marked by a cross  the  method to be implemented acts on them  A step chain  thatis marked with only one arrow is considered in this  case to be not selected                          5 Switching to another You can switch to a different view  Details or Details  view Simple  by double clicking on a step chain   Controlling the To control the behavior and the appearance of the SFCView  the person carrying out  controls the configuration has various methods  events  constants and properties available  for use     All the controlling options which are assigne
64. alled       ENO or with EN 1         Unconditional  or  conditional  calls are possible with each FFB  The condition is  realized by pre linking the input EN     EN connected             conditional calls  the FFB is only processed if EN   1   EN not used or set to TRUE    unconditional calls  FFB is always processed        If the EN input is used  it must be connected to logic  conditional call  or permanently  set to TRUE  unconditional call  because otherwise the FFB will never be  processed        In LD  each FFB must be connected with the left power rail using a Boolean input     Normally  the 1    If       EN input is used for this purpose     the EN input is not connected to the left power rail  it cannot be used or it must be  permanently set to TRUE because otherwise the FFB will never be processed              229    Block types and their applications                      Note for The use of EN and ENO is only possible in the text languages for a formal FFB call   IL and ST e g   Y BLOCK  EN  enable  INl  varl  IN2  var2           ENO  gt error  OUT1  gt result1  OUT2  gt result2    Assigning the variables to ENO must be done with the operator   gt    With an informal call  EN and ENO cannot be used                          230       AND_16  boolean AND                   with 16 predefined inputs 1 A  Description  Function This function block is used to implement a boolean AND operation with up to 16  description inputs  For ascertaining the results of the operation
65. allelSteps column header  ColumnHdrChainStatus ChainStatus column header  ColumnHdrChainComment ChainComment column header  ColumnHdrStepComment StepComment column header                The ShowStepComments property is used to decide  if the step or the chain comments are shown              Note  The SFCView texts are stored in English by default but can be changed by  the person carrying out the configuration                 57                SFCView appearance and behavior       ChainStatus  column contents    Tests in the ChainStatuscolumn  These texts are also shown in the  Details             Simple view   Property Description  OverviewTextRunning Specifies the text in the ChainStatus column if  the chain status flag is set to CsfRunning   OverviewTextSectionDisabled Specifies the text in the ChainStatus column if    the chain status flag is set to  CsfSectionDisabled        Overview     TextSetInitializeFlag    Specifies the text in the ChainStatus column if  the chain status flag is set to  CsfInitializeFlagSet       OverviewT    ext    Disa    bleTimeCheck    Specifies the text in the ChainStatus column if  the chain status flag is set to  CsfTimeCheckDisabled       OverviewT    ext    Disa    bleTransitions    Specifies the text in the ChainStatus column if  the chain status flag is set to  CsfTransitionDisabled                OverviewT    ext       Disa          bleActions       Specifies the text in the ChainStatus column if  the chain status flag is set to  CsfAct
66. ation about possible color values or color constants           Returns the number of OFSDevice objects in the OFSDevices collection        object  Count    The Count property syntax has this part        Part    Description          object       An object expression that evaluates to an OFSDevices object           This is a read only property           174          Properties       ContentErrorStateColumn Property       Brief description Returns Sets what to display in the Error State column in the grid for transition  errors        Syntax object  ContentErrorStateColumn    value     The ContentErrorStateColumn property syntax has these parts              Part Description   object An object expression that evaluates to a SFC View control    value Numeric expression  which determines what  is displayed in Error  State column                          Settings The settings for value are   Setting Description  0   cecEmpty Error State column is empty   1   cecErrorState  Default  Error State column contains error state of input variable        2   cecVariableName Error State column contains variable name        3   cecPinType Error State column contains pin type                 Remarks The property is valid only when UsePLCDiagSystem property is false           175          Properties       EnableOPCUpdates Property    Brief description    Syntax    Settings    Remarks    Font Property    Brief description    Syntax       Returns Sets whether to start or stop notifications about c
67. ation of one or  more of the ChainStatusFlags constants                 211       Events       11 2    Other Events       Ata glance    Introduction    What s in this  Section        In this section you will find an overview of the other events        This section contains the following topics                             Topic Page  ActionVarSelect Event 213  DetailsSimpleDbIClick Event 213  DiagVarSelect Event 214  ProjectChanged Event 214  ViewModeChanged Event 215             212       Events       ActionVarSelect Event       Brief description Raised in detail mode when the user double clicks on the grid with the current or next  step s actions in it  The variable clicked on is passed with the chain name        Syntax Sub object_ActionVarSelect ByVal ActionVar As String  ByVal  ChainName As String     The ActionVarSelect event syntax has these parts                 Part Description   object An object expression that evaluates to a SFC View control   ActionVar The name of the selected action variable    ChainName The name of the current chain                 DetailsSimpleDbIClick Event       Brief description Raised in details simple mode when the user double clicks on the step name label        Syntax Sub object  DetailsSimpleDblClick       The DetailsSimpleDbIClick event syntax has this part           Part Description             object An object expression that evaluates to a SFC View control                 213    Events       DiagVarSelect Event    Brief description   
68. bject  Properties are used to make  information and settings available to an object   Height and width  for example  can be properties of an info window        A method is a subprogram that returns or does not return a value  In traditional  programming a method is called a  procedure  or  function   In object oriented  programming a method is assigned to a specific object and ensures access to the  object data    For example  a window for displaying error messages may have a method which is  triggered by an error string  This opens the window and the error is shown        Events are triggered using input devices or when states or value change  E g   events can be triggered by a mouse click or a signal from a timer    In object oriented programming  events are used for communicating between  objects  e g  between a control and its container        A constant is a parameter that cannot be changed  The value of a constant does not  change while a program is running    Constants can be used to define the value for a property  E g  In a program for  recording operating data  the number of manhours per shift might be defined  If this  value is changed later it only needs to be changed in one place        Objects for general controlling of SFCView    SFC View       View for information and controlling of step chains       Object Description       SFCView This ActiveX control enables the display of information about step chains   as well as the navigation through the chains and onli
69. bject An object expression that evaluates to a SFC View control   disable A boolean expression that indicates whether to disable the time  check  true  or not  false    Return Value A boolean value indicating the success  true  or failure  false  of the operation   Remarks If DisableTimeCheck is activated  time supervision of the steps is no longer    performed  However  delay time is still active           199    Methods       PLCDisableTransitions Method    Brief description    Syntax    Return Value    Remarks       Enables or disables transitions           WARNING          Danger from unsafe  dangerous and destructive operations in  tools or processes     PLCDisableTransitions should not be used for controllers of  machine tools  processes or material maintenance systems  when they  are running  Since no logic processing is taking place any longer  the  control panel ignores all input information  This can cause unsafe   dangerous  and destructive operations of tools or processes connected  to the control     Failure to follow this precaution can result in death  serious injury   or equipment damage           object PLCDisableTransitions  disable     The PLCDisableTransitions method syntax has these parts                    Part Description   object An object expression that evaluates to a SFC View control    disable A boolean expression that indicates whether to disable the  transitions  true  or not  false         A boolean value indicating the success  true  or failure
70. boolean AND OR   with 8 predefinedinputs                              233  DOS CAPO ti athens EAs aera ater ine A Mente a kta te aus ata 233  OR_16  boolean OR   with 16 predefinedinputs                             235  Description  iei et a ee a a ee ee oe eS 235  SFCVIEW_CTRL    Step chain control via SFCView                        237  Descriptiom ee aiaa a ai a a a a dd 237  Aa ada a 239          About the Book       Ata Glance    Document Scope    Validity Note    Product Related  Warnings    User Comments       This documentation contains a description of the Unity SFCView        This document applies to Unity SFC View 2 0 with Unity Pro 2 0   OPC Factory Server 3 1  Microsoft Windows 2000 or Microsoft Windows XP  Professional        The data and illustrations found in this document are not binding  We reserve the  right to modify our products in line with our policy of continuous product  development  The information in this document is subject to change without notice  and should not be construed as a warranty by Schneider Electric    Schneider Electric assumes no responsibility for any errors that may appear in this  document  If you have any suggestions for improvements or amendments or have  found errors in this publication  please notify us    No part of this document may be reproduced in any form or by any means  electronic  or mechanical  including photocopying  without express written permission of  Schneider Electric    All pertinent state  regional  and local
71. boolean value indicating the success  true  or failure  false  of the operation           197          Methods       PLCDisableSection Method    Brief description    Syntax    Return Value       Enables or disables the processing of the selected SFC section           WARNING          Danger from unsafe  dangerous and destructive operations in  tools or processes     PLCDisableSection should not be used for controllers of machine  tools  processes or material maintenance systems  when they are  running  Since no logic processing is taking place any longer  the  control panel ignores all input information  This can cause unsafe   dangerous  and destructive operations of tools or processes connected  to the control     Failure to follow this precaution can result in death  serious injury   or equipment damage           object  PLCDisableSection  disable     The PLCDisableSection method syntax has these parts              Part Description  object An object expression that evaluates to a SFC View control   disable A boolean expression that indicates whether to disable the          processing  true  or not  false            A boolean value indicating the success  true  or failure  false  of the operation           198          Methods       PLCDisableTimeCheck Method       Brief description Enables or disables the time check        Syntax object  PLCDisableTimeCheck  disable     The PLCDisableTimeCheck method syntax has these parts                                Part Description  o
72. clicking on a line in the window where    diagnostic information for the transition is being displayed   The name of the error variable and the name of the step  chain are given as parameters                       74    SFCView appearance and behavior       Constants for controlling the view  Details                                                       Content  The property ContentErrorStateColumn  Diagnosis information  via the  ErrorState  SFC View function blocks   p  69  is defined by the following constants   1  ra Constants Value Description  constants  CecEmpt y 0 The Error Statecolumn is empty   CecErrorState 1 The error status for the input variables is shown   CecVariableName 2 The name for the input variables is shown   CecPinType 3 The Pin type is shown  AND or OR   StateError The property StateErrorStateColumn  Diagnosis information  via the SFC View  StateColumn  function blocks   p  69  is defined by the following constants   nstan  constants Constants Value  Description  sescNoState 0 The background is gray   sescErrorState 1 The background color shows if the input variable  is erroneous  red green    sescPinState 2 The background color shows the state of the pin  which is directly connected to the variable   If the pin is not inverted  the pin state is the same  as the variable state   If the pin is inverted  the pin state is the different  from the variable state   secsVariableState 3 The background color shows the state of the  variables                   
73. cription   object An object expression that evaluates to a SFC View control    boolean A boolean expression that specifies whether the project file will be  determined automatically from the OPC access path    Settings The settings for boolean are    Setting Description   True  Default  The project file will be determined automatically from the  control s OPCAccessPath property    False The project file has to be set with the ProjectFile property                    157          Properties       UsePLCDiagSystem Property  Unity Pro     Brief description    Syntax    Settings       Returns Sets whether the PLC s diagnostic system is used to get the causes of  transition errors  If set to false  the causes are determined internally  If changed at  runtime  it reloads the current project or not depending on the UseEasySwitchMode    property        object UsePLCDiagSystem    boolean     The UsePLCDiagSystem property syntax has these parts                    Part Description  object An object expression that evaluates to a SFC View control   boolean A boolean value that determines used diagnostic mode           The settings for boolean are                    Setting Description   True  Default  Control reads error buffer in PLC  to get diagnostic  information    False Control does not use PLC diagnoses  SFC error causes are    determined internally based on the logic connected to transitions  To  be able to get diagnostic data  each transition has to be assigned to  the variable  w
74. ct  DetailsWaitingStepBackColor    color     The DetailsWaitingStepBackColor property syntax has these parts              Part Description   object An object expression that evaluates to a SFC View control    color A value or constant that determines the background colors to display  the  Active   Inactive    and    Initial    states of the steps in the detail view                    See the Visual Basic documentation about possible color values or color constants           114    Properties       DetailsViewLinesColor Property       Brief description  Returns sets lines color in details view        Syntax object  DetailsViewLinesColor    color     The DetailsViewLinesColor property syntax has these parts                             Part Description   object An object expression that evaluates to a SFC View control    color A value or constant that determines the lines colors in details view   Remarks See the Visual Basic documentation about possible color values or color constants           115    Properties       9 7    DetailsSimpleXxx Properties       Ata glance    Introduction    What s in this  Section        In this section you will find an overview of the DetailsSimpleXxx properties        This section contains the following topics                                      Topic Page  DetailsSimpleShowChainName Property 117  Details SimpleShowChainStatus Property 118  Details SimpleShowChainComment Property 119  DetailsSimpleShowStepErrorLabel Property 120  DetailsSimpleSh
75. cted inputs             236          SFCVIEW_CTRL           Step chain control via SFCView 1 7  Description  Function The function block is used to control the execution chain sequences via the  description ChainControlVariableName property in SFCView     For example  you can go through step by step  processing transition conditions can  be turned on or off or the chain can be reset to its initialization state        DANGER             Danger of unsafe  dangerous and destructive processes     The  Initialize chain    Reset chain    Cancel analysis of transitions     Cancel editing of actions and reset all actions of the chain    Activate  the next step independently of the transition condition  and  Activate the  next step depending on the transition condition   functions should not  be used to search for controller errors in machine tools  processes or  material management systems  if they are running     Failure to follow this precaution will result in death  serious injury   or equipment damage        EN and ENO can be configured as additional parameters        Representation Representation     in FBD SFCVIEW_CTRL_Instance       SVC Command    4       SFCVIEW CTRL  INVREF  INVCMD  SVCCMD        SVCCMD        InvalidReference      InvalidCommand  t    SVC_Command                237       SFC View_CTRL       Representation  in LD    Representation  in IL    Representation  in ST    Parameter  description    The function block can only be used in FBD sections        The funct
76. ction blocks which          are nested in the SFCView blocks are also shown    If this property is set to false  only the variable names  are shown    This property is only available if UsePLCDiagSystemis  set to false        Define the ErrorState column contents           Property    Description       ContentErrorStateColumn          Defines the contents of the ErrorState column where  diagnostic information for the transition is being  displayed    The content to be displayed is decided by the  constants  ContentErrorStateColumnconstants    p  75     e 0  CecEmpty   e 1   CecErrorState   e 2 CecVariableName   e 3 CecPinType          69             SFCView appearance and behavior       Define the colors in the ErrorState column           Property Description   StateErrorStateColumn Defines the colors in the ErrorState column in the  field where diagnostic information for the transition is  displayed     The color is decided by the constants   StateErrorStateColumnconstants   p  75    e 0 secsNoState   e 1 secsErrorState   e 2 secsPinState   e 3 secsVariableState                   Representation Number of lines          of the  i   Propert Description  diagnostics pary p  information NumberErrorGridLines Number of lines in the diagnostics table       Column widths                      Property Description   WidthErrorStepNameColumn Width of the ErrorStep column   WidthErrorVariableColumn Width of the ErrorVariable column   WidthErrorPinTypeColumn Width of the ErrorPinType col
77. ction for the connected inputs             234             OR_16  boolean OR  with 16 predefined inputs 1 6       Description    Function  description    Formula    Representation  in FBD       This block is used to implement a boolean OR connection with up to 16 inputs  For  ascertaining the results of the operation only used  i e  connected inputs are used        Note  If no inputs are connected the block returns the value  FALSE                     EN and ENO can be configured as additional parameters        OUT   OR1 OR OR2 OR ORn       Representation        Value_1         OR1  Value 2    OR2  Value_3   _  OR3  Value_4     OR4  Value 5   1 OR5  Value 6     OR6  Value 7   1 OR7    Value 8    OR8  Value_9__  ORO  Value_10    4 OR10  Value_11    OR11  Value_12     OR12  Value_13   _  OR13  Value_l14   4 OR14  Value_15__  OR15  Value_16   4 OR16       OR_16    OUT    t Result                235       OR_16       Representation  in LD    Representation  in IL    Representation  in ST    Parameter  description    The function block can only be used in FBD sections        The function block can only be used in FBD sections        The function block can only be used in FBD sections        Description of the input parameters                    Parameters   Data type Meaning  OR1 BOOL Input 1  OR2 BOOL Input 2  OR16 BOOL Input 16       Description of    the output parameters        Parameters    Data type    Meaning       OUT       BOOL          Boolean OR connection for the conne
78. d Using the SFC View Demo Application       Starting the  demo application    Using the  demo application    The following table describes the procedure for starting the demo application                          Step Action  1 Execute the command Start  gt  Programs  gt  Schneider Electric  gt   Unity SFC View     SFC View Demo Application    2 a  Using the button select  2 the project Test SFCV so that it can be opened   and confirm it using OK   The project data are loaded from the Unity Pro project   Start the demo application via the demo application button   p A  5 Select the appropriate view via one of the following command buttons       E Overview   gt     Y Details  NI  e  54  DetailsSimple                                  Use the items View and Run in the main menu to activate and deactivate the  individual properties  methods and events in SFC View and to observe the changes  to the individual views           41    Starting and Using the SFC View Demo Application          42       SFCView appearance  and behavior 6       Introduction    Overview    What s in this  Chapter        This chapter contains information on how to control the appearance and behavior of  SFCView    Further information on the control elements object  method  event  and constant can  be found in the Functional Reference  p  87 chapter        This chapter contains the following sections                    Section Topic Page  6 1 General controlling 45  6 2 View  Overview 54  6 3 View  Details 60
79. d to the Overview display are described  in the following chapter    All general controlling options are described in their own chapter General controlling   p  45        Properties for controlling the view  Overview                                  Statistics Display of the statistics window   window Property Description  ShowStatistic This property can be usedto open the statistics window   View structure ShowChainGroups property  tree Property Description  ShowChainGroups Specifies whether the function view is shown which can be    used to navigate through the project  If the property is set  to false the function view is not displayed and all the  step chains are shown in a table                       56    SFCView appearance and behavior       Step or chain  comment    Step chain view    Representation  of the chain  information    ShowSt epComment sproperty       Property    Description       ShowStepComments          This sets whether step or chain comments are shown           The OnChainOpen property specifies the view that is shown when opening a step          chain   Property Description  OnChainOpen Specifies the behavior when opening a step chain           The behavior is set using constants    OnChainOpenconstants   p  59     e 0 NoAction   e 1   ShowDetails   e 2   ShowDetailsSimple          Column headers                         Property Description  ColumnHdrChainName ChainName column header  ColumnHdrStepName StepName column header  ColumnHdrParallelSteps Par
80. displayed in seconds                       148    Properties       ShowBlockNames Property       Brief description Returns Sets whether to display structure of logic assigned to transition in the grid    for transition errors        Syntax object  ShowBlockNames    boolean     The ShowBlockNames property syntax has these parts                                               Part Description  object An object expression that evaluates to a SFC View control   boolean A boolean expression that specifies whether to display logic  structure or not   Settings The settings for boolean are   Setting Description  True  Default  Input variables assigned to the transition are shown  together with logic structure  AND  OR blocs etc     False Input variables assigned to the transition are shown without logic  structure   Remarks The property is valid only when UsePLCDiagSystem property is set to false           149          Properties       9 14    StepMaxTimeErrXxx Properties       Ata glance    Introduction    What s in this  Section        In this section you will find an overview of the StepMaxTimeErrXxx properties        This section contains the following topics                 Topic Page   StepMaxTimeErrBackColor Property 151  StepMaxTimeErrForeColor Property 151  StepMaxTimeErrText Property 152                   150       Properties       StepMaxTimeErrBackColor Property       Brief description Returns Sets the background color to display that the maximum step time is    exceeded   
81. e  Remarks This is the same as clicking About in the Properties window        GetOFSInfo Method       Brief description Get an object with OFS configuration data        Syntax object  GetOFSInfo    The GetOFSInfo method syntax has this part                          Part Description  object An object expression that evaluates to a SFC View control   Return Value An object of type OFSInfo  which allows to read OFS configuration data           205    Methods       ReloadProject Method    Brief description    Syntax    Return Value    Remarks       Reloads the current project        object ReloadProject    The ReloadProject method syntax has these parts        Part    Description          object       An object expression that evaluates to a SFC View control           A boolean value indicating the success  true  or failure  false  of the operation        If there was a connection with the OPC server previously  the connection will be  closed and started again           206          Events    11       Ata glance    Introduction    What s in this  Chapter        In this chapter you will find information about the events        This chapter contains the following sections              Section Topic Page  11 1 ChainXxx Events 209  11 2 Other Events 212                      207       Events          208    Events       11 1    ChainXxx Events       Ata glance    Introduction    What s in this  Section        In this section you will find an overview of the ChainXxx events        This
82. e ActionComment column          Note  To make a column invisible the width must be set to 0  zero         Texts       Property    Description       ColumnHdrActionQualifier    ActionQualifier column header       ColumnHdrActionTime    ActionTime column header       ColumnHdrActionName    ActionName column header       ColumnHdrActionType    ActionType column header       ColumnHdrActionComment          ActionComment column header             Note  The SFCView texts are stored in English by default but can be changed by  the person carrying out the configuration           71                SFCView appearance and behavior       Representation  of the step  information    Font for the step name        Property    Description       DetailsStepNameFont       Font for the step name              Note  The font that is set using the DetailsStepNameFont property is also used  for chain names and the transition names  The font for all the other texts is set  using the Font property                 Texts  Property Description  StepMaxTimeErr Text that is shown in the step information field  if the  maximum monitoring time is exceeded   StepMinTimeErr Text that is shown in the step information field  if the       minimum monitoring time has not been reached           Note  The SFCView texts are stored in English by default but can be changed by  the person carrying out the configuration        Unit and color for the monitoring time field       Property    Description       ShowTimeInms  
83. e minimum number of    milliseconds between two transmissions of changed data by the  OPC server  Default is 1000           The OPCUpdateRate property determines how often the OPC server should send  changed data to the control  Setting the value too low might have a negative  influence on the system performance           138       Properties                                     9 12 OverviewTextXxx Properties   Ata glance   Introduction In this section you will find an overview of the OverviewTextXxx properties    What s in this This section contains the following topics    ion    Section  Topic Page  OverviewTextDisableActions Property 140  OverviewTextDisableTimeCheck Property 140  OverviewTextDisableTransitions Property 141  OverviewTextRunning Property 141  OverviewT extSectionDisabled Property 142  OverviewTextSetResetFlag Property 142                      139    Properties       OverviewTextDisableActions Property       Brief description Returns Sets the text to display the chain state  Actions Disabled  in the overview  and details simple view        Syntax object  OverviewTextDisableActions    string     The OverviewTextDisableActions property syntax has these parts                 Part Description   object An object expression that evaluates to a SFC View control    string A string expression that evaluates to the text displayed for the chain  states the overview and details simple view                 OverviewTextDisableTimeCheck Property       Brief description Ret
84. e option is activated using Apply           12       Now confirm all your entries for the Test SFCV alias using Apply              39       Starting and Using the SFC View Demo Application       Test the  connection  between the  OFS and the PLC    Diagnosis  window for  the OFS    The following table describes the procedure for testing the connection between the  OFS and the PLC                    Step Action   1 Start the OFS client via Start  gt  Programs  gt  Schneider Electric  gt  OFS  gt   OFS Test Client   Note  The program OFS Client is only available if the appropriate option was  selected for the OFS installation   Click on Schneider Aut OFS as server and confirm using OK   Create a new group via Group  gt  New Group    and give it the name  e g   GRP1    4 Under Notification activate all the options and select the following settings     e Update rate  1000 ms   e Dead banding  0 000000  0 0 1 0   e OPC version  Auto   Confirm with OK        Via Item  gt  New    open the Addltemwindow        In the tree structure in the left window of the project select TestSFCV  The  project variables are shown in the right hand window        Click on a variable e g  ACT1 and confirm with OK              If a green symbol appears to the left of the variable in the properties window  which now appears  the connection between the OFS and the PLC is intact           Errors which might appear are shown in red in the OPC Factory Server diagnosis    window           40       Starting an
85. e view  Details 73  Events for controlling the view  Details 74  Constants for controlling the view  Details 75                   60       SFCView appearance and behavior       General description       Brief description The view  Details  the SFCView offers the following options    Display of real time information on the status of a section   Display of two steps at a time and the associated transition   Shows the actions for the steps   Shows the diagnostic information   Shows state of variables  errors etc  using various colors   Navigation between active steps for parallel branches   Navigation between the sections via methods  e g  DisplayNextStep       Display View display  Details   10 2 5 3 4 1 8 7 6 9                  ity SFC View Demo   C  Programme Schneider SFCView testsfcv stu          Section Disabled Initialize Fida Set    Ela   gt     Stepname with 32 charts maximun Qf Time   Name  Type  Comment  hree lines of comment text    Transitions Di abled     Actions Disabled                                         a is for a short error message                   E for a shor gror message   000ms 00s 000ms  4  gt   Error State Pin State   Transition variable    Three lines of comment  ext        Stepname with 32 charts maximum Qf  Time   Name  Type  Comment      hree lines of comment text  Ss  mmm                                        View components Details       Number   Components Description       1 Section name Name of the selected section                      61
86. ectFile  180   Refresh  180   ShowActiveStep  144  ShowAllDiagErrors  144  ShowAllTransitionsInput  145  ShowBlockNames  149  ShowChainGroups  146  ShowStatistics  147  ShowStepComments  147  ShowTimelnms  148  StateErrorStateColumn  181  StepMaxTimeErrBackColor  151  StepMaxTimeErrForeColor  151  StepMaxTimeErrText  152  StepMinTimeErrBackColor  154  StepMinTimeErrForeColor  154  StepMinTimeErrText  155   Symb  182   UnityNetworkServer  182  UseEasyModeSwitch  160  UseOPCProject  157  UsePLCDiagSystem  158  159  ValueOffBackColor  162  ValueOffForeColor  162  ValueOnBackColor  163  ValueOnForeColor  163  ViewMode  183  WidthActionCommentColumn  166  WidthActionQualifierColumn  165  WidthActionTimeColumn  165  WidthActionVariableColumn  166  WidthErrorCommentColumn  170  WidthErrorPinTypeColumn  169  WidthErrorStateColumn  169  WidthErrorStepNameColumn  168  WidthErrorVariableColumn  168    Properties for controlling the view  Details  65  Details Simple  78  Overview  56  Properties for general controlling of  SFCView  48    R    Reading data and instantiating groups  84  Refresh Property  180  Registration of Unity Pro and OFS  28  Registration with Schneider Electric  30  ReloadProject Method  206  Requirements   System  18  Requirements and restrictions  17  Restrictions  25    S    Sequence   for intallations  28  SFC View Control   Objects  91  SFCView appearance and behavior  43  SFCView block library  221  SFCVIEW_CTRL  237  SFCViewModes Constants  219  ShowActiveStep
87. ee oN pe cde ee eae her fee See oh TN 132  DiagAutoRetrigger Property                                         133  DiagAutoRetriggerInterval Property                                   134  OPCXxx  Properties  cs eso ees ie o a a Pe 135  ALA QIANCC A to wcll la  us boty ee bee hates foe adit Co aati i A Sate nena oes Ga 135  OPCNetworkServer Property                                        136  OPCAccessPath Property                                           136  OPCConnect Property        0    cect tees 137  OPCUpdateRate Property                                          138  OverviewTextXxx Properties                                         139  O 139  OverviewTextDisableActions Property                                 140  OverviewTextDisableTimeCheck Property                              140  OverviewTextDisableTransitions Property                              141  OverviewTextRunning Property                                      141  OverviewTextSectionDisabled Property                                142    OverviewTextSetResetFlag Property                                  142          9 13    9 14    9 15    9 16    9 17    9 18    9 19    ShowXxx Properties                                               143    O o on ee ciate He MR oe Pa BL ee A O R 143  ShowActiveStep Property                                          144  ShowAllDiagErrors Property                                         144  ShowAllTransitionsInput Property                                    145  ShowCh
88. ents for SFC View were configured in this  program and can be tested in conjunction with Unity Pro  the OPC Factory Server   OFS   and the Unity Pro PLC Simulator    The user can experiment with this demo application and learn how SFC View is used  and programmed     See Starting and Using the SFC View Demo Application  p  37            16       Requirements and restrictions       Introduction       Overview This chapter contains information on requirements and restrictions which should be  noted when using Unity SFC View                             What s in this This chapter contains the following topics    Chapter  Topic Page  System requirements 18  System Architecture 18  User requirements 21  Prerequisites for online controlling 22  Prerequisites for the diagnosis 22  Restrictions 25                      17    Requirements and restrictions       System requirements    Operating  System    Unity Pro  Version    SFC View Library    OPC Factory  Server    ActiveX  Container    HMI Application    PLCs supported       One of the following operating systems is required   e Microsoft Windows 2000  e Microsoft Windows XP Professional       Unity Pro V2 0 must be installed at least once on the system        The SFC View library must be installed  update type library         An OPC Factory Server  OFS  Version 3 1 must be installed on the system        The programming environment is a HMI application that supports ActiveX container        HMI applications tested for Unity SFC Vie
89. erties 95  9 2 ColumnHadrActionXxx Properties 99  9 3 ColumnHdrChainXxx Properties 102  9 4 ChainHdrErrorXxx Properties 105  9 5 ColumnHdrStepXxx Properties 109  9 6 DetailsXxx Properties 112  9 7 DetailsSimpleXxx Properties 116  9 8 DetailsStepXxx Properties 125  9 9 Details TextXxx Properties 128   9 10 DiagXxx Properties 132  9 11 OPCXxx Properties 135  9 12 OverviewTextXxx Properties 139  9 13 ShowXxx Properties 143  9 14 StepMaxTimeErrXxx Properties 150  9 15 StepMinTimeErrXxx Properties 153  9 16 UseXxx Properties 156  9 17 ValueXxx Properties 161  9 18 WidthActionXxx Properties 164  9 19 WidthErrorXxx Properties 167  9 20 Other Properties 171                   93       Properties          94    Properties       9 1    ChainXxx Properties       Ata glance    Introduction    What s in this  Section        In this section you will find an overview of the ChainXxx properties        This section contains the following topics                             Topic Page   ChainName Property 96  ChainControlVariableName Property 96  ChainFlagsOffBackColor Property 97  ChainFlagsOffForeColor Property 97  ChainFlagsOnBackColor Property 98  ChainFlagsOnForeColor Property 98                95       Properties       ChainName Property       Brief description Returns Sets string value  which represents chain name displayed in detail view        Syntax object ChainName    string     The ChainName property syntax has these parts                             Part Description  object An objec
90. erty                                   175  EnableOPCUpdates Property                                        176  FONE Prope tty  arias it e a Gehan ales aa eaten 176  Item  Propeny  ive taal eee a Eee ee it ee ete 177  MaxChannel Property            0 00 cece ene tees 177  NumberErrorGridLines Property                                      178  OFSDevices Property neie iea iaa E EA eee 178  OnChainOpen Property                                             179  PAP lenta ts T ds Goan T able brota LaS 179  ProjectFile Property                                               180  Refresh  Property a es ea Sin este hea es a hee 180  StateErrorStateColumn Property                                     181  Symb    Property    seen seal bse chee PP ihe ied te bad ad Pe 182  UnityNetworkServer Property                                        182  ViewMode Property            0 20  e cece cette eee eee eens 183  MGINOOS secant arcs Aha EA 185  Ata QIANCC AA oad Ad oe Ste as Gear 185  DiagXxx Method  0 0 cee eee eee 187  Aaanika KAA 187  DiagResetErrorBuffer Method                                         188  DiagRetrigger Method                                              188  DisplayXxx Methods ai AAA AA 189  Ata glances it tes WAA WA AAA eee ee eed 189  DisplaylnitialStep Method                                           190  DisplayNextActiveStep Method                                      190  DisplayNextAltTran Method                                         191  DisplayNextParStep Met
91. ession that evaluates to a SFC View control    boolean A boolean expression that specifies whether the overview displays the  hierarchy of the chain groups or not                    The settings for boolean are        Setting Description       True  Default  The overview displays the hierarchy of the chain groups as  configured in the project and only the chains in the selected group are shown        False The overview displays all chains of the project in one table                    It s recommended to configure chain groups  functional moduls  in the Unity   Concept project and to set this property to True  if there are many SFC sections in  the project  Since the control needs real time data for all steps in all chains displayed  in the overview at the same time  it might have a negative influence on the system  performance when there are too much chains displayed in the overview           146    Properties       ShowsStatistics Property    Brief description    Syntax    Settings       Displays the statistics panel        object  ShowStatistics    boolean     The ShowStatistics property syntax has these parts                    Part Description  object An object expression that evaluates to a SFC View control   boolean A boolean expression that specifies whether to display the statistics panel           The settings for boolean are                    Setting Description  True The statistics panel is shown   False  Default  The statistics panel is hidden           ShowStep
92. etInitializeFlag  value     The PLCSetiInitializeFlag method syntax has these parts                 Part Description  object An object expression that evaluates to a SFC View control   value A boolean expression that indicates whether to set the initialize flag        true  or to clear it  false            A boolean value indicating the success  true  or failure  false  of the operation        Use the initialize flag to initialize the sequence for a standardized start    To initialize the sequence  activate the initialize flag  This will stop the sequence and  all actions will be initialized  Operator interventions are not possible    Standardized sequence start    To start the sequence  the initialize flag must first be activated and then deactivated   The 1   gt  0 edge will initialize the sequence  i e  the initial step is activated           203          Methods       10 4    Other Methods       Ata glance    Introduction    What s in this  Section        In this section you will find an overview of the other methods        This section contains the following topics                       Topic Page   About Method 205  GetOFSInfo Method 205  ReloadProject Method 206             204       Methods       About Method       Brief description Displays the About box for the control        Syntax object   About    The About method syntax has this part                             Part Description   object An object expression that evaluates to a SFC View control   Return Value Non
93. ethods    Description       DiagResetErrorBuffer    Resets all diagnosis errors in the PLC        DiagRetrigger       Triggers another analysis of the diagnosis error in the  section which is currently being shown in the details view              Note  Further information on diagnostics Prerequisites for the diagnosis  p  22           The following methods are available for controlling the steps and transitions display                                                  Methods Description   DisplayInitialStep Shows the first step of the step chain   DisplayNextActiveStep Shows the next active step   DisplayNextAltTran Shows the next alternative transition   DisplayNextParStep Shows the next parallel step  DisplayNextStep Displays the next step   DisplayPreviousStep Displays the previous step   DisplayPrevActiveStep Shows the previous active step  DisplayPrevAltTran Shows the previous alternative transition   DisplayPrevParStep Shows the previous parallel step             73             SFCView appearance and behavior       Events for controlling the view  Details             Action variable Information on action variables  Event Description  ActionVarSelect Is triggered by double clicking on a line in the window where    an action for the steps is being displayed   The name of the action variable and the name of the step  chain are given as parameters                          Error variable Information on error variables  Event Description  DiagVarSelect Is triggered by double 
94. ew        This chapter contains the following topics                 Topic Page  Reading data and instantiating groups 84  System performance 85                   83    Tips and Tricks       Reading data and instantiating groups    Reading the  Unity Pro project    Instantiating  groups       When SFCView is first started  all of the SFC sections in the Unity Pro project are  read    If the SFC View internal diagnostic was selected via the diagnosis block  all of the  FBD sections will be read also        OPC groups are instantiated during the first call    In the display  Overview  all the groups in the active function view are instantiated   In the display  Details  only the groups that belong to the respective step chain are  instantiated           84    Tips and Tricks       System performance    Loading Unity  Pro projects    Communication  in the system    Resetting  SFCView    mfc42 dll       Preference should be given to the following procedures in order to speed up the   loading time for Unity Pro projects    e Set the ViewMode property  using the OPCAccessPath property  before you  load the project    e  f you are using the view  Details or Details Simple  set the ChainName property   using the OPCAccessPath property  before you load the project    e Only load the project once the SFCView window has opened    e Use the UseEasySwitchMode property only if you really need it  otherwise  SFCView always has to load the data for both diagnostics modes           Preference
95. f the errors  are only shown for the time at which the monitoring time  was exceeded and are not updated afterwards    This property is only available if UsePLCDiagSystemis  set to true    Note  If the diagnostic is configured via SFCView  function blocks  the error display is updated  automatically for any change        DiagAutoRetriggerInterval          Sets the cycle time  1 to 65535 msec   for cyclically  reanalyzing the causes of errors  presetting 1000  msec               68          SFCView appearance and behavior       Diagnosis  information   via the PLC  diagnostics  buffer     Diagnosis  information    via the SFCView  function blocks     Display errors for all active parallel steps        Property    Description       ShowAllDiagErrors          Specifies that the errors for all active parallel steps are  displayed    If this property is set to falseonly the errors for the step  currently being displayed are shown    This property is only available if UsePLCDiagSystemis  set to true           Display all inputs for the transition        Property    Description       ShowAllTransitionsInputs    Specifies that all inputs for all active transitions are  displayed    If this property is set to false   only the inputs for the  transition currently being displayed are shown    This property is only available if UsePLCDiagSystemis  set to false              Show the names of the function blocks   Property Description  ShowBlockNames Specifies that the names of all the fun
96. firm it using Next    10 Check the current settings confirm them finally by clicking on Next   11 Exit the installation by clicking on Finishto return to Windows           Note  If you have selected the option Install the SFC View library in Unity the  installation program necessary for this starts automatically              29       Installation       Installation of the SFC View Library    General    Automatic start    Execute update       To use the SFC View function block diagnosis  the SFC View library must be  installed        The program Types Library Update starts either automatically at the end of the  installation of SFC View or it can be started as described below        These instructions describe the steps that must be carried out to install the  SFC View library using the tool Type library update         Step Action       1 Start the program via  Start  gt  Programs  gt  Schneider Electric  gt  Unity Pro   gt  Types Library Update       2 Select the family dsc file  The file is on the CD in     Unity SFCView  Lib family dsc       Start the installation via Install family              Click on the Exitbutton              Registration with Schneider Electric    Permanent  usage       To be able to use the software on a permanent basis  it must be registered with  Schneider Electric   The software must be registered within 21 days after installation           30    Installation       Registering SFC These instructions give the individual steps for registering SFC V
97. fo field is calculated from no   3 and no  6    9   The width of the action info field is calculated from no  1  no   2 no 3andno  7              65       SFCView appearance and behavior             Direct view Direct view of a chain in the views  Details and Details Simple   ofa chain Property Description  ChainName Via this property a chain can be displayed    directly in the Details or Details Simple views   without going through the Overview view                           Always show Active step display  active Steps Property Description  ShowActiveStep If this property is set to True the active step is  always shown in the Details and Details Simple  views     In this case navigation is only possible between  parallel active steps    If this property is set to False various methods   e g  DisplayNext Step can be used to  navigate through the section                    Representation Text display for the status flags       of the status    Propert Description  flags pe P       DetailsTextSectionDisabled Text that is displayed for the status flag if the  section is deactivated        DetailsTextSetInitializeFlag Text that is displayed for the status flag if the  initialize flag is set        DetailsTextDisableTimeCheck Text that is displayed for the status flag if the  time check is deactivated        DetailsTextDisabledTransitions   Text that is displayed for the status flag if the  transitions are deactivated                 DetailsTextDisabledActions Text that is displa
98. function blocks are available for use after the SFCView  library has been installed    e AND_16   e OR_16   e AND_OR_8   Variables or a logic can be used as inputs for these function blocks  All inputs and  the nested logic for these function blocks are analyzed by SFCView    Every connection for an SFCView function block which is not an AND_BOOL or  OR_BOOLfunction block is displayed in SFCView as an unknown connection  see  EQ_ INT function block graphic     Inputs for SFCView function blocks which are not occupied will be ignored           23    Requirements and restrictions       Example from a Unity Pro project    12 16  8     FBI_12 18  7           T5 pH  SFC_Continue17  gt    9       AND_BOOL    OR_16  Ri OUT  R2  R3             12 12  5     R4  R5       count  gt      8D       EO_INT                   0000000000000           gt  TV5          Representation in SFCView                        EQ INT 1 2 OR2    Cause  Error Pin Com   OR1  PMA ORI T5is  OR1 SFC Co                SFC_para    El I gt   I   145  Step sets ACT5  ACT5 is mapped to  I O but not read by any logic  Has a         30s 000ms 00s 000ms        Section Disabled Reset Flag Set  Time Check Disabled  Transitions Disabled   Actions Disabled                         Step sets ACT1  ACT1 is mapped to  I O but not read by any logic  Has a                  Qf Time  Variable Comment  N_ T 0s  ACTS ACT5 is set to  4     gt     TV5  Swich ShowBlockNames option to  hide show EFBis names        Time                  
99. hanged data by the OPC  server        object  EnableO0PCUpdates    boolean     The EnableOPCUpdates property syntax has these parts                 Part Description   object An object expression that evaluates to a SFC View control    boolean A boolean expression that specifies whether to start or stop notifications by  the OPC server                 The settings for boolean are              Setting Description  True  Default  Enables notifications by the OPC server   False Disables notifications by the OPC server                    By setting the property to false  the client application can temporarily stop  notifications about changed data  from the OPC server to the SFC View control    e g  when the window with the control is currently in the background           Returns Sets the font to display chain status  chain comment  step comment etc in  the overview details and details simple view         Set  object  Font    font object     The Font property syntax has these parts        Part Description       object An object expression that evaluates to a SFC View control        font object   An object expression that evaluates to a font object that determines the font  name  size and other attributes to display chain status  chain comment   step comment etc in the overview details and details simple view                    176    Properties       Item Property    Brief description    Syntax    Remarks       Returns a specific member of the OFSDevices collection either by posit
100. hat evaluates to a SFC View control    long A long type expression that specifies width of column in the grid for  step  actual and next  actions                    To hide a column you have to set Width property of the column to 0        WidthActionTimeColumn Property    Brief description    Syntax    Remarks       Returns Sets width of Error Variable column in the grid for step  actual and next   actions        object  WidthActionTimeColumn    long     The WidthActionTimeColumn property syntax has these parts                 Part Description   object An object expression that evaluates to a SFC View control    long A long type expression that specifies width of column in the grid for  step  actual and next  actions                 To hide a column you have to set Width property of the column to 0           165    Properties       WidthActionVariableColumn Property       Brief description Returns Sets width of Pin Type column in the grid for step  actual and next  actions        Syntax object  WidthActionVariableColumn    long     The WidthActionVariableColumn property syntax has these parts                 Part Description   object An object expression that evaluates to a SFC View control    long A long type expression that specifies width of column in the grid for  step  actual and next  actions                 Remarks To hide a column you have to set Width property of the column to 0        WidthActionCommentColumn Property       Brief description Returns Sets width of Er
101. hich is an output of special EFB  SFC View library   AND_16  OR_16  AND_OR_8                  158          Properties       UsePLCDiagSystem Property       Brief description Returns Sets whether the PLC s diagnostic system is used to get the causes of  transition errors  If set to false  the causes are determined internally  If changed at  runtime  it reloads the current project        Syntax object  UsePLCDiagSystem    boolean     The UsePLCDiagSystem property syntax has these parts                                   Part Description   object An object expression that evaluates to a SFC View control    boolean A boolean value that determines used diagnostic mode    Settings The settings for boolean are    Setting Description   True Control reads error buffer in PLC  to get diagnostic information   Concept project has to contain ERR2HMI block  Properties  VarDiagIn and VarDiagOut  which define input and output variables  of the block have to be also defined    False  Default  Control does not use PLC diagnoses  SFC error causes          are determined internally based on the logic connected to  transitions  To be able to get diagnostic data  each transition has to  be assigned to the variable  which is an output of special EFB   Concept SFC_VIEW library  AND 16  OR 16  AND OR 8                  159          Properties       UseEasyModeSwitch Property    Brief description    Syntax    Settings    Remarks       Returns Sets whether reload or not current project when UsePLCDiagSy
102. hod                                         191  DisplayNextStep Method                                           192  DisplayPreviousStep Method                                        192  DisplayPrevActiveStep Method                                      193  DisplayPrevAltTran Method                                         193    DisplayPrevParStep Method                                         194          10 3    10 4    Chapter 11    11 1    Chapter 12    ey We  gt   MS iia A A ia 195    AEAQ  ANCS soe na ARA A A CAN TULI KUA MAKALLA 195  PLCClearChain Method                                            196  PLCDisableActions Method                                         197  PLCDisableSection Method                                         198  PLCDisableTimeCheck Method                                      199  PLCDisableTransitions Method                                      200  PLCGotoNextStep Method                                         201  PLCResetTimeErrors Method           e cc eee eee eee ees 202  PLCSetlnitializeFlag Method                                        203  Other  Methods  3 eric aia me aii cada 204  Ata  glance  A Ad ei 204  Abou Wa la oa Ti lacas vaa 205  GetOFSinfo Method                                               205  ReloadProject Method                                             206  Ev  ntS IA ii 207  Ata glance ai AE ao he A A Seas E E 207  ChainXxx  EV6nts ccc cit a a ine Ga awe baba de el 209  NE r in sii etek eal eh et el ok ae ed eet
103. ic documentation about possible color values or color constants        ValueOnForeColor Property       Brief description Returns Sets the foreground color to display a variable value in  On  state        Syntax object  ValueOnForeColor    color     The ValueOnForeColor property syntax has these parts                 Part Description   object An object expression that evaluates to a SFC View control    color A value or constant that determines the background or foreground  colors to display the  On  and  Off  states of the variable values                    Remarks See the Visual Basic documentation about possible color values or color constants           163    Properties       9 18    WidthActionXxx Properties       Ata glance    Introduction    What s in this  Section        In this section you will find an overview of the WidthActionXxx properties        This section contains the following topics                          Topic Page  WidthActionQualifierColumn Property 165  WidthActionTimeColumn Property 165  WidthActionVariableColumn Property 166  WidthActionCommentColumn Property 166             164       Properties       WidthActionQualifierColumn Property    Brief description    Syntax    Remarks       Returns Sets width of Action Qualifier column in the grid for step  actual and next   actions        object  WidthActionQualifierColumn    long     The WidthActionQualifierColumn property syntax has these parts              Part Description   object An object expression t
104. ief description    Syntax    Remarks       Returns Sets width of Error State column in the grid for transition errors        object  WidthErrorStateColumn    long     The WidthErrorStateColumn property syntax has these parts        Part Description       object An object expression that evaluates to a SFC View control        long A long type expression that specifies width of column in the grid for transition  errors                    When UsePLCDiagSystem property is true  width of Error State and Pin Type  columns is always 0  When ShowAllTransitionsInput property is set to false  Step  Name column width is also 0        Note  To hide a column you have to set Width property of the column to 0              169       Properties       WidthErrorCommentColumn Property       Brief description Returns Sets width of Error Comment column in the grid for transition errors        Syntax object  WidthErrorCommentColumn    long     The WidthErrorCommentColumn property syntax has these parts        Part Description       object An object expression that evaluates to a SFC View control        long A long type expression that specifies width of column in the grid for transition  errors                    Remarks When UsePLCDiagSystem property is true  width of Error State and Pin Type  columns is always 0  When ShowAllTransitionsInput property is set to false  Step  Name column width is also 0        Note  To hide a column you have to set Width property of the column to 0              17
105. ies       ColumnHdrParallelSteps Property       Brief description Returns sets the header text of the Parallel Steps column        Syntax object  ColumnHdrParallelSteps    string     The ColumnHadrParallelSteps property syntax has these parts              Part Description   object An object expression that evaluates to a SFC View control    string A string expression that evaluates to the text displayed as the header  of the columns for the chain grid in the overview                    ColumnHdrStepComment Property       Brief description Returns sets the header text of the Step Comment column        Syntax object  ColumnHdrStepComment    string     The ColumnHdrStepComment property syntax has these parts                 Part Description   object An object expression that evaluates to a SFC View control    string A string expression that evaluates to the text displayed as the header  of the columns for the diagnostic error grid in the detail view                    110    Properties       ColumnHdrStepName Property       Brief description Returns Sets the header text of the Step Name column        Syntax object  ColumnHdrStepName    string     The ColumnHdrStepName property syntax has these parts              Part Description   object An object expression that evaluates to a SFC View control    string A string expression that evaluates to the text displayed as the header  of the columns for the diagnostic error grid in the detail view                       111    Properties  
106. iew        This section contains the following topics                          Topic Page   General description 55  Properties for controlling the view  Overview 56  Events for controlling the view  Overview 59  Constants for controlling the view  Overview 59             54       SFCView appearance and behavior       General description    Brief description    Display       The view  Overview  the SFCView offers the following options    Selecting a Unity Pro project   Navigate through the project via the function view   Listing all chains of a Unity Pro project   Display of real time information on the status of the step chains  Selecting one or more step chains of the project   Switching to a different view  Details or Details Simple  for a step chain       View display  Overview   1 2 4 5 3          Unity SFC View Demo   C  Pro neider Electric Unity SFCView testsfc stu                            5 Station Chain N Parallel  Chain Sta   Step Comment      ar  ji Step sets ACT5 ACT5 is mapped to I O but not read by any logi       SFCDiag i Step sets ACT13 ACT13 is mapped to TO but not read by any lo          PLCDiag                                              View components Overview       Number   Components Description       1 Functional view After a project has been loaded directly or via the OFS   the functional view for the Unity Pro project is shown   Itis possible to navigate through the project via this  functional view        2 Functional project units   If a function
107. iew        View Start the SFC View or the registration tool    Y    Confirm with Yes                Click past the start screen by clicking onNext                       Yes Select  Enter the code you  received and confirm with  Next       Do you have the  release code                    Select Authorize this PC and confirm with Next    y    Select the registration method  By telephone  fax  e mail or by  Internet and confirm with Next                      i telephone  fax  e mail 0 Internet  aia       Fill in the required fields  enter the serial  MBOLA ass SA dnd number and purchase reference on the CD   ROM case and confirm with Register     confirm by clicking on Next                             y Telephone  E P  E mail                Call Schneider Electric    Enter the fax number to     Enter the e mail address  to be told the release    which the answer should to which the answer  code and then click on    be sent and confirm by should be sent and  clicking on Next  confirm by clicking on  A fax that contains your Next   data is created in text An e mail with your data    format  Send this fax will automatically be sent  to the address entered                 Wait for an answer from Schneider Electric and  restart SFCView or the registration tool                            ha  Y Y  Enter the release code and confirm with Exit using Finish   Next                                  These numbers are on the label stuck to the inside of the software CD ROMs  case           31
108. ik  chelates Gods Sead elated 91    SFC View Control inicia ee eee a es ee aces ee eat a Oe 91          Chapter 9    9 1    9 2    9 3    9 4    9 5    9 6    Properties cc WAA WA ew a 93  o AAA UA eee WA 93  ChainXxx Properties                                               95  Ati a QlanCe as a acts kate Wa Goer ie lo kaa E a 95  ChainName Property        ooocococococo teeta eee 96  ChainControlVariableName Property                                   96  ChainFlagsOffBackColor Property                                     97  ChainFlagsOffForeColor Property                                     97  ChainFlagsOnBackColor Property                                     98  ChainFlagsOnForeColor Property                                     98  ColumnHadrActionXxx Properties                                      99  Atia glance    inact See A ven aa oa ek Sa eee ee Eee 99  ColumnHarActionComment Property                                  100  ColumnHarActionName Property                                     100  ColumnHadrActionQualifier Property                                   100  ColumnHadrActionTime Property                                     101  ColumnHadrActionType Property                                      101  ColumnHarChainXxx Properties                                     102  At a Qlances  iii ened heck ea eta dee Ge kee ee a aM  ee Se ae ad ate 102  ColumnHdrChainComment Property                                  103  ColumnHadrChainName Property                         
109. inType    string     The ColumnHdrErrorPinType property syntax has these parts                    Part Description   object An object expression that evaluates to a SFC View control    string A string expression that evaluates to the text displayed as the header  of the columns for the diagnostic error grid in the detail view                 Remarks Column ErrorPin and ErrorState occur only when UsePLCDiagSystem property is  set to false           107    Properties       ColumnHdrErrorState Property    Brief description    Syntax    Remarks       Returns sets the header text of the Comment column for transition errors        object ColumnHdrErrorState    string     The ColumnHdrErrorState property syntax has these parts              Part Description   object An object expression that evaluates to a SFC View control    string A string expression that evaluates to the text displayed as the header  of the columns for the diagnostic error grid in the detail view                    Column ErrorPin and ErrorState occur only when UsePLCDiagSystem property is  set to false           108    Properties                            9 5 ColumnHdrStepXxx Properties   Ata glance   Introduction In this section you will find an overview of the ColumnHdrStepXxx properties    What s in this This section contains the following topics    Section     Topic Page  ColumnHdrParallelSteps Property 110  ColumnHdrStepComment Property 110  ColumnHdrStepName Property 111                   109       Propert
110. ings    Remarks       Returns Sets what indicate the background color in the Error State column in the    grid for transition errors        object  StateErrorStateColumn    value     The StateErrorStateColumn property syntax has these parts                    Part Description   object An object expression that evaluates to a SFC View control    value Numeric expression  which determines what indicate the  background color in the Error State column           The settings for value are        Setting    Description       0   sescNoState    The background color is gray        1   sescErrorState    The background color indicate  if the variable is an error or not        2   sescPinState     Default  The background color indicate pin state  to which the  variable is directly connected   If the pin is inverted the state  differs from variable state  If the pin is not inverted the pin state is  equal to the variable state         3   sescVariableState          The background color indicate variable state           The property is valid only when UsePLCDiagSystem property is false           181          Properties       Symb Property    Brief description    Syntax    Remarks       Returns a string specifying the full path to the file with information about the symbols  of a device configured for use with OFS        object  Symb    The Symb property syntax has this part        Part Description             object An object expression that evaluates to an OFSDevices object              
111. ion       ChainName          Via this property a chain can be displayed directly in the  Details or Details Simple views  without going through the  Overview view            Active step display       Property    Description       ShowActiveStep          If this property is setto True the active step is always shown  in the Details and Details Simple views    In this case navigation is only possible between parallel  active steps    If this property is set to False various methods  e g   DisplayNext Step can be used to navigate through the  step chain           Summary of the view  Details Simple                                           Property Description   DetailsSimpleShow Specifies that the line is shown with the chain name   ChainName   DetailsSimpleShow Specifies that the line is shown with the chain state   ChainStatus   DetailsSimpleShow Specifies that the line is shown with the chain comment   ChainComment   DetailsSimpleShow Specifies that the line is shown with the step comment   StepComment   DetailsSimpleShow Specifies that the line is shown with the error message   StepErrorLabel          78             SFCView appearance and behavior          Property    Description       DetailsSimpleShow    Specifies that a bar on the left and right of the field indicates  InitialStepIndicator that the field is an initial step        DetailsSimpleShow  Navigation       When this is set the buttons for navigating between the  active steps for parallel branches are displayed  
112. ion about this measurement unit           126    Properties       DetailsStepsWidth Property       Brief description Returns Sets the width to display the steps in the detail view        Syntax object  DetailsStepsWidth    value     The DetailsStepsWidth property syntax has these parts                             Part Description   object An object expression that evaluates to a SFC View control    value A numeric expression specifying a distance or dimension   Remarks The DetailsStepsWidth property determines the width of the rectangles in which the    steps are displayed in the detail view   This property is measured in Twips  See the Visual Basic documentation for more  information about this measurement unit           127    Properties       9 9    DetailsTextXxx Properties       Ata glance    Introduction    What s in this  Section        In this section you will find an overview of the Details TextXxx properties        This section contains the following topics                             Topic Page  Details TextDisableActions Property 129  Details TextDisableTimeCheck Property 129  Details TextDisableTransitions Property 130  Details TextSectionDisabled Property 130  Details TextSetResetFlag Property 131             128       Properties       DetailsTextDisableActions Property       Brief description Returns Sets the text to display the chain state  Actions Disabled  in the detail view        Syntax object  DetailsTextDisableActions    string     The DetailsTextDisable
113. ion block can only be used in FBD sections        The function block can only be used in FBD sections        Description of the input output parameters        Parameters    Data type    Meaning       SVCCMD    SVCCMD    To control execution chain sequences via the  ChainControlVariableName property in  SFCView  assign to this input a variable with the  name SVC_Command        Description of    the output parameters              Parameters   Data type Meaning   INVREF BOOL 1  The reference sent to the function block is valid   0  The reference sent to the function block is invalid    Results in an entry into the error buffer     INVCMD BOOL 1  The command sent to the function block is valid              0  The command sent to the function block is invalid    Results in an entry into the error buffer               238          Index          A    About Method  205  ActionVarSelect Event  213  ActiveX Control  Implementation  32  Alias Property  172  AND_16  231  AND OR 8  233  AutomaticProjectReload Property  173    B    BackColor Property  174  Block  AND OR 8  233  SFCVIEW CTRL  237  block  AND 16  231  OR 16  235  Block library  SFCView  221  Block types  224    C    ChainControlVariableName Property  96  ChainFlagsOffBackColor Property  97  ChainFlagsOffForeColor Property  97  ChainFlagsOnBackColor Property  98  ChainFlagsOnForeColor Property  98  ChainName Property  96    ChainOpen Event  210  ChainSelect Event  210  ChainStatusChanged Event  211  ChainStatusFlags Constant
114. ion or by key        object Item  index   object  index     Itis not necessary to specify the name of this property as shown in the second  syntax line above  since the ltem property is the default property of the OFSDevices  object    The Item property syntax has these parts              Part Description  object An object expression that evaluates to an OFSDevices object   index An expression that specifies the position of a member of the    collection  If a numeric expression  index must be a number from 1  to the value of the collection s Count property  If a string expression   index must correspond to the Alias property of the OFSDevice  member object referred to                    This is a read only property        MaxChannel Property    Brief description    Syntax    Remarks       Returns a number specifying the maximum number of channels of a device  configured for use with OFS        object  MaxChannel    The MaxChannel property syntax has this part        Part Description             object An object expression that evaluates to an OFSDevices object              This is a read only property           177    Properties       NumberErrorGridLines Property       Brief description Returns Sets value  which indicates number of lines displayed in error grid        Syntax object  NumberErrorGridLines    Integer     The NumberErrorGridLines property syntax has these parts        Part    Description       object    An object expression that evaluates to a SFC View control  
115. ionDisabled    string     The DetailsTextSectionDisabled property syntax has these parts                    Part Description   object An object expression that evaluates to a SFC View control    string A string expression that evaluates to the text displayed for the chain  states in the detail view              130          Properties       DetailsTextSetResetFlag Property       Brief description Returns Sets the text to display the chain state  Reset Flag Set  in the detail view        Syntax object  DetailsTextSetResetFlag    string     The DetailsTextSetResetFlag property syntax has these parts                 Part Description   object An object expression that evaluates to a SFC View control    string A string expression that evaluates to the text displayed for the chain  states in the detail view                    131    Properties       9 10    DiagXxx Properties       Ata glance    Introduction    What s in this  Section        In this section you will find an overview of the DiagXxx properties        This section contains the following topics                 Topic Page  DiagAutoRetrigger Property 133  DiagAutoRetriggerInterval Property 134                   132    Properties       DiagAutoRetrigger Property       Brief description Returns Sets whether diag errors are automatically re triggered for analysis or not        Syntax object  DiagAutoRetrigger    boolean     The DiagAutoRetrigger property syntax has these parts              Part Description   object An objec
116. ionsDisabled             Note  The SFCView texts are stored in English by default but can be changed by  the person carrying out the configuration              58       SFCView appearance and behavior       Events for controlling the view  Overview       Open step string Opening a step string        Event    Description       ChainOpenEvent          Triggered by    e double clicking on a line in the step string  table   e by pressing the enter key when a step string  has focus in the table          Select step string Selecting a step string        Event    Description       ChainSelectEvent          Is triggered when a new row in the table step  string has been selected           Constants for controlling the view  Overview                   OnChainOpen  The OnChainOpen  Step chain view  p  57  property is set using the following  constants constants   Constants Value Description  NoAction 0 The input is ignored   ShowDetails 1 The step string is shown in the details overview   ShowDetailSimple 2 The step string is shown in the details simple  overview                       59             SFCView appearance and behavior                                  6 3 View  Details   Introduction   Overview This chapter contains general information aboutthe view  Details  which displays the  SFCView    What s in this This section contains the following topics    ion    Section  Topic Page  General description 61  Properties for controlling the view  Details 65  Methods for controlling th
117. is displayed above the frame        Derived function blocks  DFBs  have the same properties as elementary function  blocks  They are created by the user in the programming languages FBD  LD  IL  and or ST        Procedures are technical functions    The only difference from elementary functions is that procedures can have more  than one output and they support variables of the VAR_IN_OUT data type   Procedures do not return a value    Procedures are a supplement to IEC 61131 3 and must be enabled explicitly   There is no visual difference between procedures and elementary functions           224    Block types and their applications       FFB Structure       Structure Each FFB is made up of an operation  name of the FFB   the operands required for  the operation  formal and actual parameters  and an instance name for elementary   derived function blocks    Call of a function block in the FBD programming language                                               Instance name Operation Operand   FFB name   Formal Actual  parameter parameter  MY_TON    TON y                                  ENABLE EN ENO      ERROR  EXAMP     IN Q     OUT  TIME1     PT ET      TIME2                      Formal call of a function block in the ST programming language   Operands    Instance name  Formal parameters  inputs  Formal parameters  outputs                                      MY TON  EN  ENABLE  IN  EXAMP  PT  TIME1  ENO  gt ERROR  Q  gt OUT  ET  gt TIME2      Se       Actual parameters  inp
118. is part contains the following chapters   Part  Chapter Chapter Name Page  8 Objects 89  9 Properties 93  10 Methods 185  11 Events 207  12 Constants 217                         87    Functional Reference          88       Objects                            Ata glance   Introduction In this chapter you will find information about the objects    What s in this This chapter contains the following topics    9    Chapter  Topic Page  OFSDevice Object 90  OFSDevices Collection 90  OFSInfo Object 91  SFC View Control 91                   89       Objects       OFSDevice Object    Brief description    Syntax    Remarks       An OFSDevice object contains OFS  configuration data for a device        The OFSDevice object syntax has these parts              Part Description   object An object expression that evaluates to an OFSInfo object    index Either an integer or string that uniquely identifies a member of an  OFSDevices collection                    The unique string to access an element of the OFSDevices collection is the value of  the OFSDevice object s Alias property   See the Visual Basic documentation for more information about collections        OFSDevices Collection    Brief description    Syntax    Remarks       An OFSDevices collection is a collection of OFSDevice objects        object  OFSDevices  object OFSDevices  index     The syntax lines above refer to the collection and to individual elements in the  collection  respectively  according to the standard collection syn
119. lure  false  of the operation           190    Methods       DisplayNextAltTran Method       Brief description Navigate to and display the next alternate transition  This method works only in  details mode        Syntax object  DisplayNextAltTran    The DisplayNextAltTran method syntax has this part                          Part Description  object An object expression that evaluates to a SFC View control   Return Value A boolean value indicating the success  true  or failure  false  of the operation        DisplayNextParStep Method       Brief description Navigate to and display the next parallel step  This method works only in details  mode        Syntax object  DisplayNextParStep    The DisplayNextParStep method syntax has this part                          Part Description  object An object expression that evaluates to a SFC View control   Return Value A boolean value indicating the success  true  or failure  false  of the operation           191    Methods       DisplayNextStep Method       Brief description Navigate to and display the next step  This method work in details and details simple  mode        Syntax object  DisplayNextStep    The DisplayNextStep method syntax has this part                          Part Description  object An object expression that evaluates to a SFC View control   Return Value A boolean value indicating the success  true  or failure  false  of the operation        DisplayPreviousStep Method       Brief description Navigate to and display the
120. m   e Unity Pro projects   e OPC Factory Server  OFS  as a server installation   e SFC View   PLCs  2    The Unity Pro projects run on the PLCs with the sections to be visualized   Communication  3    The communication between the operating station and the PLCs can be carried out  via the following buses  as long as these are supported by the relevant PLCs   e Modbus   Modbus Plus   Modbus TCP IP   Uni Telway          19    Requirements and restrictions       Distributed  Configuration    A distributed configuration is shown below        D  g                OFS Server Unity Server                               Operating stations  additional PCs   OPC Factory Server  Unity Server   PLCs    Communication via Modbus TCP IP    N Oo oO Ff ON        Communication via various busses e g  Modbus Plus    Operating stations  1    The following components must be on the operating stations    e HMI Application   e OPC Factory Server  OFS  as a client installation   e SFC View   Additional PCs  2    The Unity Pro projects are stored on additional PCs in the system and must be  accessible by the operating stations and the OPC Factory Server   OPC Factory Server  3    The OPC Factory Server  OFS  is on this PC as a server installation   Unity Server  4    The Unity Pro program is installed on the Unity Server        Note  The Unity Pro program must be installed once and only once on the entire  system              20    Requirements and restrictions       PLCs  5    The Unity Pro projects r
121. mnHdrChainName property syntax has these parts                    Part Description   object An object expression that evaluates to a SFC View control    string A string expression that evaluates to the text displayed as the header  of the columns for the chain grid in the overview              103          Properties       ColumnHdrChainStatus Property       Brief description Returns sets the header text of the Chain Status column        Syntax object ColumnHdrChainStatus  string     The ColumnHadrChainStatus property syntax has these parts              Part Description   object An object expression that evaluates to a SFC View control    string A string expression that evaluates to the text displayed as the header  of the columns for the chain grid in the overview                       104    Properties                                  9 4 ChainHdrErrorXxx Properties   Ata glance   Introduction In this section you will find an overview of the ChainHdrErrorXxx properties    What s in this This section contains the following topics    ion    Section  Topic Page  ColumnHdrErrorComment Property 106  ColumnHdrErrorStep Property 106  ColumnHdrErrorVariable Property 107  ColumnHdrErrorPinType Property 107  ColumnHdrErrorState Property 108                      105    Properties       ColumnHdrErrorComment Property       Brief description Returns sets the header text of the Comment column for transition errors        Syntax object  ColumnHdrErrorComment    string     The ColumnHdrErr
122. mpleShowChainName Property                               117  DetailsSimpleShowChainStatus Property                               118  DetailsSimpleShowChainComment Property                            119  DetailsSimpleShowStepErrorLabel Property                            120  DetailsSimpleShowStepComment Property                             121  DetailsSimpleShowInitStepindicator Property                           122  DetailsSimpleShowNavigation Property                                123  DetailsSimpleStepNameFont Property                                 124  DetailsStepXxx Properties                                          125  Ata glaner cides artes tat bei i deen Rie en ad 125  DetailsStepNameFont Property                                      126  DetailsStepsLeft Property                                           126  DetailsStepsWidth Property                                         127  DetailsTextXxx Properties                                          128  o A st eet aus Sela ee buen os ome a eats be ate kas 128  DetailsTextDisableActions Property                                   129  DetailsTextDisableTimeCheck Property                                129  DetailsTextDisableTransitions Property                                130  DetailsTextSectionDisabled Property                                  130  DetailsTextSetResetFlag Property                                    131  DiagXxx Properties                                                132  Ata glances    oes 
123. n is saved during the  installation of SFC View as an     XEF file by default under     Installation  directory of the SFCView    TESTSFC                 37    Starting and Using the SFC View Demo Application       Settings for the  conversion    Converting  the Unity Pro  test project    Loading the  Unity Pro test  project in the  PLC simulator    OFS  configuration  tool    Comm  settings       Note  Before the Unity Pro test project can be converted  the SFC View library  must be installed  Further information on this can be found in Installation of the SFC  View Library  p  30           The following table describes the procedure for converting the Unity Pro test project                             Step Action  1 Launch Unity Pro   2 Open the TESTSFCV  XEF file via File  gt  Open   3 Generate the project via Build  gt  Rebuild All Project   4 Save the project via File   Save using the name TESTSFCV  STU           The following table describes the procedure for loading the Unity Pro test project into  the PLC simulator                       Step Action  1 Launch Unity Pro   2 Open the TESTSFCV  STU file via File  gt  Open   3 Via PLC  gt  Connect    create a connection to the PLC simulator controller   4 Via PLC  gt  Transfer Project to PLC load the program into the PLC simulator       controller   Note  If you select the PLC RUN after sending option  the PLC starts  automatically after the program is sent              Before the SFC View can be used  certain settings mus
124. n method syntax has these parts                                Part Description  object An object expression that evaluates to a SFC View control   value A boolean expression that indicates to reset all active steps in the  sequence   Return Value A boolean value indicating the success  true  or failure  false  of the operation   Remarks The sequence can only be started again by the 1   gt  0 edge of the    PLCSetlnitializeFlag           196    Methods       PLCDisableActions Method       Brief description Enables or disables the processing of actions for the selected SFC section           WARNING          Danger from unsafe  dangerous and destructive operations in  tools or processes     PLCDisableActions should not be used for finding errors with  controllers of machine tools  processes or material maintenance  systems  when they are running  Since no logic processing is taking  place any longer  the control panel ignores all input information  This  can cause unsafe  dangerous  and destructive operations of tools or  processes connected to the control     Failure to follow this precaution can result in death  serious injury   or equipment damage           Syntax object  PLCDisableActions  disable     The PLCDisableActions method syntax has these parts                          Part Description  object An object expression that evaluates to a SFC View control   disable A boolean expression that indicates whether to disable the actions   true  or not  false    Return Value A 
125. nce AA 161  ValueOffBackColor Property                                        162  ValueOffForeColor Property                                        162  ValueOnBackColor Property                                        163  ValueOnForeColor Property                                        163  WidthActionXxx Properties                                          164  AP  COLA ci ete E E ee ee ee eee SS 164  WidthActionQualifierColumn Property                                 165  WidthActionTimeColumn Property                                    165  WidthActionVariableColumn Property                                 166  WidthActionCommentColumn Property                                166  WidthErrorXxx Properties                                           167  PAV GE  0   A aaia i i at a a aodato t radia a Diodit ayi 167  WidthErrorStepNameColumn Property                                168  WidthErrorVariableColumn Property                                  168  WidthErrorPinTypeColumn Property                                  169  WidthErrorStateColumn Property                                     169  WidthErrorCommentColumn Property                                 170          9 20  Other Properties  AA da 171    Chapter 10    10 1    10 2    AN A O cafes aceon beet 171  Alias POPE Vo id a Soe ree AA 172  AutomaticProjectReload Property                                     173  BackColor Property i aooaa aiea e reece 174  Gout Ri PE A hence EAn acy 174  ContentErrorStateColumn Prop
126. ne control of the chains                       46    SFCView appearance and behavior       OFS info    OFS device    collection    OFS devices    Object hierarchy    Information on the OFS configuration       Object    Description       OFSInfo       Makes it possible to access the information on the OFS configuration using  the SFCView GetOFSInfo method              Information on the OFS device collection       Object    Description       OFSDevices       Makes it possible to access the information on the OFS device collection  using the  Count  Item                  Information on the OFS devices       Object    Description       OFSDevice       Makes it possible to access the information on the OFS devices  Alias   MaxChannel  Path  Symb                  The object hierarchy is shown below           SFCView          GetOFSInfo       OFSInfo                      OFSDevices  Lo         OFSDevices                   Item OFSDevice                      47       SFCView appearance and behavior       Properties for general controlling of SFCView                               View The following property is available for the SFCView views   Property Description  ViewMode Sets the SFCView view   The view that is shown is decided by the  constants  SFCViewModesconstants   p  53    e 0 Overview  e 1   Details  e 2  Details Simple  Project data The following properties are available for loading project data   Property Description  ProjectFile Sets the project file inlc  the project pa
127. ng the connection  The variable  and the connection are saved independently from one another        228    Block types and their applications       Conditional   Unconditional  FFB Call    Note for FBD    Note for LD    e Functions Procedures  As defined in 1EC61131 3  the outputs from deactivated functions  1    up without EN     to  0   is undefined   The same applies for procedures     Nevertheless here is an explanation of the output statuses for this case    e EN ENO handling with function procedure blocks that  only  have one  connection as output parameter            EN      INI      IN2    Function Procedure_1    ENO  OUT                            Function Procedure_2       EN ENO      IN1 OUT      IN2          EN input set    If EN from Function Procedure_1 is setto  0   the output connection OUT    from Function Procedure_1 is also set to  0      e EN ENO handling with function procedure blocks that have one variable and    one connection as output parameters           Function Procedure_1    Function Procedure_2                    EN ENO         EN ENO            INI OUT OUTI IN1 OUTH         IN2     IN2             If EN from Function Procedure_1 is set to  0   the output connection OUT  from Function Procedure_1 is also set to  0   however the variable OUT1  on the same pin retains its previous value  In this way it is possible that the   variable and the connection have different values   The output behavior of the FFBs does not depend on whether the FFBs are c
128. ntax    Remarks       Returns Sets the name of the file with the project data        object ProjectFile    string     The ProjectFile property syntax has these parts              Part Description   object An object expression that evaluates to a SFC View control    string A string expression that determines from which file to read the  project data                    The string should contain the complete path to the Concept Unity project   STU for  Unity   PRJ for Concept  file    This property will be set automatically by setting the OPCAccessPath property when  the property UseOPCProject is set to true at the same time    The ProjectFile property is ignored at designtime  At runtime  the control starts  reading the project data when the property is set  If there was a connection with the  OPC server with any previous project  the connection will be closed and started  again for the new project data        Refresh Property    Brief description    Syntax    Remarks       Returns a number specifying whether automatic refresh of a device configured for  use with OFS is enabled        object Refresh    The Refresh property syntax has this part        Part Description             object An object expression that evaluates to an OFSDevices object              This is a read only property   Ifthe value of this property is zero  automatic refresh is not configured for this device           180    Properties       StateErrorStateColumn Property    Brief description    Syntax    Sett
129. ntax object DetailsSimpleShowStepErrorlabel    boolean     The DetailsSimpleShowStepErrorLabel property syntax has these parts                                   Part Description   object An object expression that evaluates to a SFC View control    boolean A boolean expression that specifies whether the chain name  chain status   chain comment or step comment  is displayed in details simple view    Settings The settins for boolean are    Setting Description   True  Default  Chain name  chain status  chain comment or step comment  is  displayed    False Chain name  chain status  chain comment or step comment  is not displayed                    120          Properties       DetailsSimpleShowStepComment Property       Brief description Returns Sets whether the step comment is displayed in details simple view        Syntax object  DetailsSimpleShowStepComment    boolean     The DetailsSimpleShowStepComment property syntax has these parts        Part Description       object An object expression that evaluates to a SFC View control        boolean A boolean expression that specifies whether the chain name  chain status   chain comment or step comment  is displayed in details simple view                             Settings The settins for boolean are   Setting Description  True  Default  Chain name  chain status  chain comment or step comment  is  displayed   False Chain name  chain status  chain comment or step comment  is not displayed                       121    Properties     
130. ntegrate SFC View in an HMI application and towards users of such HMI  applications        Unity SFCView is made up of an ActiveX control and its SFCView function block  library for Unity Pro    The ActiveX control is configured on an operating station  HMI  and can then make  real time information available regarding the state of the sections in the controller   It can    e Display sections   show the state of sections   show the section diagnosis information   navigate through sections   control sections online   automatically recognize changes in project data       Note  Several instances for a control can also be configured on one operating  station  This makes it possible to access several chains at one time           SFCView has three views    e Overview   e Details   e Details Simple   The view  shows all the sections and is used to select the desired section    The views  Details and Details Simple show information on the state of a selected  section as well as diagnosis information  In these views it is also possible to navigate  through the individual sections           15    General description       Programming  environment    SFC View Demo   Application    The programming environment is a HMI application that supports ActiveX container        A sample program written in Visual Basic is installed along with SFC View    This SFC View demo application is a standalone program that can also be  executed without Visual Basic    Nearly all the properties  methods and ev
131. olor constants        ChainFlagsOffForeColor Property       Brief description Returns sets the foreground color to display the  Off  state of the chain status flags        Syntax object  ChainFlagsOffForeColor    color     The ChainFlagsOffForeColor property syntax has these parts                    Part Description   object An object expression that evaluates to a SFC View control    color A value or constant that determines the background or foreground  colors to display the  On  and  Off  states of the chain flags              Remarks See the Visual Basic documentation about possible color values or color constants           97       Properties       ChainFlagsOnBackColor Property       Brief description Returns Sets the background color to display the  On  state of the chain status flags        Syntax object  ChainFlagsOnBackColor    color     The ChainFlagsOnBackColor property syntax has these parts              Part Description   object An object expression that evaluates to a SFC View control    color A value or constant that determines the background or foreground  colors to display the  On  and  Off  states of the chain flags                    Remarks See the Visual Basic documentation about possible color values or color constants        ChainFlagsOnForeColor Property       Brief description Returns Sets the foreground color to display the  On  state of the chain status flags        Syntax object  ChainFlagsO0nForeColor    color     The ChainFlagsOnForeColor proper
132. ontains the following topics    Section     Topic Page  OPCNetworkServer Property 136  OPCAccessPath Property 136  OPCConnect Property 137  OPCUpdateRate Property 138                      135    Properties       OPCNetworkServer Property    Brief description    Syntax    Remarks       Returns Sets information about the location of the OPC server        object  OPCNetworkServer    string     The OPCNetworkServer property syntax has these parts              Part Description   object An object expression that evaluates to a SFC View control    string A string expression that determines where the OPC server is  located                    Default value of the property is        That means the OPC server is located on the local machine    In case of distributed configuration please use this property to define the location   PC name or IP address  of the OPC server        OPCAccessPath Property    Brief description    Syntax    Remarks       Returns Sets information how the OPC server should get the data        object OPCAccessPath    string     The OPCAccessPath property syntax has these parts              Part Description   object An object expression that evaluates to a SFC View control    string A string expression that determines how the OPC server should get  the data                    The string has to be one of the alias names defined with the OFS configuration tool   which determines the Concept project and the PLC to be used by OFS    When the property is set with the con
133. oolean expression that specifies whether the chain name  chain    status  chain comment or step comment  is displayed in details  simple view           The settins for boolean are                 Setting Description   True  Default  Chain name  chain status  chain comment or  step comment  is displayed    False Chain name  chain status  chain comment or step  comment  is not displayed                 118          Properties       DetailsSimpleShowChainComment Property       Brief description Returns Sets whether the chain comment is displayed in details simple view        Syntax object  DetailsSimpleShowChainComment    boolean     The DetailsSimpleShowChainComment property syntax has these parts                                   Part Description  object An object expression that evaluates to a SFC View control   boolean A boolean expression that specifies whether the chain name  chain  status  chain comment or step comment  is displayed in details  simple view   Settings The settins for boolean are   Setting Description  True  Default  Chain name  chain status  chain comment or  step comment  is displayed   False Chain name  chain status  chain comment or step  comment  is not displayed                    119          Properties       DetailsSimpleShowStepErrorLabel Property       Brief description Returns Sets whether step error state is displayed in the details simple view  When  set to false the error state will be indicated by background color of step name label        Sy
134. operty  122  DetailsSimpleShowNavigation Property  123  DetailsSimpleShowStepComment Property   121  DetailsSimpleShowStepErrorLabel  Property  120  DetailsSimpleStepNameFont Property  124  DetailsStepNameFont Property  126  DetailsStepsLeft Property  126  DetailsStepsWidth Property  127  DetailsTextDisableActions Property  129  DetailsTextDisableTimeCheck Property  129  DetailsTextDisableTransitions Property  130  DetailsTextSectionDisabled Property  130  DetailsTextSetResetFlag Property  131  DetailsViewLinesColor Property  115  DetailsWaitingStepBackColor Property  114  DiagAutoRetrigger Property  133    DiagAutoRetriggerInterval Property  134  Diagnosis   Prerequisites for the  22  DiagResetErrorBuffer Method  188  DiagRetrigger Method  188  DiagVarSelect Event  214  DisplayInitialStep Method  190  DisplayNextActiveStep Method  190  DisplayNextAltTran Method  191  DisplayNextParStep Method  191  DisplayNextStep Method  192  DisplayPrevActiveStep Method  193  DisplayPrevAltTran Method  193  DisplayPreviousStep Method  192  DisplayPrevParStep Method  194    E    Elementary Function  224  Elementary function block  224  EN  228  EnableOPCUpdates Property  176  ENO  228  Events  207  ActionVarSelect  213  ChainOpen  210  ChainSelect  210  ChainStatusChanged  211  DetailsSimpleDbIClick  213  DiagVarSelect  214  ProjectChanged  214  ViewModeChanged  215  Events for controlling the view  Details  74  Details Simple  81  Overview  59  Events for general controlling of SFCView   5
135. or    The user can experiment with this demo application and learn how SFC View is used  and programmed     See Starting and Using the SFC View Demo Application  p  37            21    Requirements and restrictions       Prerequisites for online controlling    General    Function Block  SFCVIEW_CTRL    SFC View Library    Unity Pro  variables       In order to be able to control sections from SFCView online  certain prerequisites  must be fulfilled in the appropriate Unity Pro project        Online control is carried out using a special SFCVIEW_CTRLfunction block in the  appropriate Unity Pro project    For this reason for every Unity Pro project a function block of this type  SFCVIEW_CTRL must be configured              Note  Function blocks from the SFCView library may only be used in FBD sections  in the Unity Pro projects           The SFCVIEW_CTRLfunction block is available for use after the SFCView library  has been installed  See Installation of the SFC View Library  p  30     A description of the SFCView function blocks can be found in the SFCView block  library  p  221 chapter           In Unity Pro a variable of type SvCccMD must be defined    If the variable name chosen is SVC Command  SFCView will find the variable  automatically    If another name is chosen  it must be assigned in SFCView using the ChainCon   trolVariableName property        Prerequisites for the diagnosis    General    SFC View Library       There are two basic diagnosis modi   e Diagnostics via
136. orComment property syntax has these parts              Part Description   object An object expression that evaluates to a SFC View control    string A string expression that evaluates to the text displayed as the header  of the columns for the diagnostic error grid in the detail view                    ColumnHdrErrorStep Property       Brief description  Returns Sets the header text of the Step column for transition errors        Syntax object  ColumnHdrErrorStep    string     The ColumnHdrErrorStep property syntax has these parts                 Part Description   object An object expression that evaluates to a SFC View control    string A string expression that evaluates to the text displayed as the header  of the columns for the diagnostic error grid in the detail view                    106    Properties       ColumnHdrErrorVariable Property       Brief description  Returns sets the header text of the Variable column for transition errors        Syntax object  ColumnHdrErrorVariable    string     The ColumnHdrErrorVariable property syntax has these parts              Part Description   object An object expression that evaluates to a SFC View control    string A string expression that evaluates to the text displayed as the header  of the columns for the diagnostic error grid in the detail view                 ColumnHdrErrorPinType Property       Brief description Returns sets the header text of the Pin Type column for transition errors        Syntax object  ColumnHdrErrorP
137. owStepComment Property 121  DetailsSimpleShowlnitStepIndicator Property 122  DetailsSimpleShowNavigation Property 123  DetailsSimpleStepNameFont Property 124             116       Properties       DetailsSimpleShowChainName Property       Brief description Returns Sets whether the chain name is displayed in details simple view        Syntax object  DetailsSimpleShowChainName    boolean     The DetailsSimpleShowChainName property syntax has these parts                                   Part Description  object An object expression that evaluates to a SFC View control   boolean A boolean expression that specifies whether the chain name  chain  status  chain comment or step comment  is displayed in details  simple view   Settings The settins for boolean are   Setting Description  True  Default  Chain name  chain status  chain comment or  step comment  is displayed   False Chain name  chain status  chain comment or step  comment  is not displayed                    117          Properties       DetailsSimpleShowChainStatus Property    Brief description    Syntax    Settings       Returns Sets whether the chain status is displayed in details simple view  When set  to false the chain status will be indicated by back groundcolor of step name label        object  DetailsSimpleShowChainStatus    boolean     The DetailsSimpleShowChainStatus property syntax has these parts                    Part Description  object An object expression that evaluates to a SFC View control   boolean A b
138. ror State column in the grid for step  actual and next   actions        Syntax object  WidthActionCommentColumn    long     The WidthActionCommentColumn property syntax has these parts              Part Description   object An object expression that evaluates to a SFC View control    long A long type expression that specifies width of column in the grid for  step  actual and next  actions                    Remarks To hide a column you have to set Width property of the column to 0           166    Properties                                  9 19 WidthErrorXxx Properties   Ata glance   Introduction In this section you will find an overview of the WidthErrorXxx properties    What s in this This section contains the following topics    ion    Section  Topic Page  WidthErrorStepNameColumn Property 168  WidthErrorVariableColumn Property 168  WidthErrorPinTypeColumn Property 169  WidthErrorStateColumn Property 169  WidthErrorCommentColumn Property 170                      167    Properties       WidthErrorStepNameColumn Property       Brief description Returns Sets width of Step Name column in the grid for transition errors        Remarks When UsePLCDiagSystem property is true  width of Error State and Pin Type  columns is always 0  When ShowAllTransitionsInput property is set to false  Step  Name column width is also 0        Note  To hide a column you have to set Width property of the column to 0              WidthErrorVariableColumn Property       Brief description Returns Sets 
139. s  218  ColumnHdrActionComment Property  100  ColumnHdrActionName  100  ColumnHdrActionQualifier Property  100  ColumnHdrActionTime Property  101  ColumnHdrActionType  101  ColumnHdrChainComment Property  103  ColumnHdrChainName Property  103  ColumnHadrChainStatus Property  104  ColumnHdrErrorComment Property  106  ColumnHareErrorPinType Property  107  ColumnHdrErrorState Property  108  ColumnHdrErrorStep Property  106  ColumnHareErrorVariable Property  107  ColumnHadrParallelSteps Property  110  ColumnHdrStepComment Property  110  ColumnHdrStepName Property  111  Conditional FFB Call  229  Constants  217  ChainStatusFlags  218  ContentsErrorStateColumn  219  OnChainOpenActions  218  SFCViewModes  219  StatesErrorStateColumn  220  Constants for controlling the view  Details  75  Overview  59  Constants for general controlling of  SFCView  53       239    Index       ContentErrorStateColumn Property  175  ContentsErrorStateColumn Constants  219  Control   Implementation  32  Control elements   General description  46  controlling   general  45  Count Property  174    D    Derived function block  224  Details   View  60  Details Simple   View  76  DetailsActiveStepBackColor Property  113  DetailsInactiveStepBackColor Property  113  DetailsInitialStepBackColor Property  114  DetailsSimpleDbIClick Event  213  DetailsSimpleShowChainComment  Property  119  DetailsSimpleShowChainName Property   117  DetailsSimpleShowChainStatus Property   118  DetailsSimpleShowlnitStepIndicator  Pr
140. s Collection  Objects  90  OFSDevices Property  178  OFSInfo Object  Objects  91  OnChainOpen Property  179  OnChainOpenActions Constants  218  Online controlling  Prerequisites for  22  OPC Factory Server Presettings  34  OPC Factory Server Settings  34  OPCAccessPath Property  136  OPCConnect Property  137       241    Index       OPCNetworkServer Property  136  OPCUpdateRate Property  138  OR_16  235  Overview   View  54  OverviewTextDisableActions Property  140  OverviewTextDisableTimeCheck Property   140  OverviewTextDisableTransitions Property   141  OverviewTextRunning Property  141  OverviewTextSectionDisabled Property  142  OverviewTextSetResetFlag Property  142    P    Path Property  179  PLCClearChain Method  196  PLCDisableActions Method  197  PLCDisableSection Method  198  PLCDisableTimeCheck Method  199  PLCDisableTransitions Method  200  PLCGotoNextStep Method  201  PLCResetTimeErrors Method  202  PLCSetlnitializeFlag Method  203  Preliminary Settings  33  Prerequisites for online controlling  22  Prerequisites for the diagnosis  22  Procedure  224  ProjectChanged Event  214  ProjectFile Property  180  Properties  93  Alias  172  AutomaticProjectReload  173  BackColor  174  ChainControlVariableName  96  ChainFlagsOffBackColor  97  ChainFlagsOffForeColor  97  ChainFlagsOnBackColor  98  ChainFlagsOnForeColor  98  ChainName  96  CoiumnHdrActionTime  101  ColumnHdrAction Qualifier  100  ColumnHdrActionName  100  ColumnHdrActionType  101    ColumnHdrChainComment  10
141. s Sets whether to reload the project automatically after a change of the  project within the PLC was recognized                                                        Syntax object  AutomaticProjectReload    boolean   The AutomaticProjectReload property syntax has these parts   Part Description  object An object expression that evaluates to a SFC View control   boolean A boolean expression that specifies whether to reload the project  automatically after a change of the project within the PLC was  recognized   Settings The settings for boolean are   Setting Description  True  Default  Allows reloading the project automatically   False Prevents automatic reloading of the project   Remarks If the property is set to false  the client application can implement its own strategy    for reloading the project by responding to the ProjectChanged event with calling the  method ReloadProject only under special circumstances           173    Properties       BackColor Property    Brief description    Syntax    Remarks    Count Property    Brief description    Syntax    Remarks       Returns Sets the control background color in details and details simple view        object BackColor    color     The BackColor property syntax has these parts                    Part Description  object An object expression that evaluates to a SFC View control   color A value or constant that determines the control background color in    details and details simple view           See the Visual Basic document
142. s chapter contains the following topics    2   Chapter  Topic Page  ChainStatusFlags Constants 218  OnChainOpenActions Constants 218  SFCViewModes Constants 219  ContentsErrorStateColumn Constants 219  StatesErrorStateColumn Constants 220                   217       Constants       ChainStatusFlags Constants       Constants    The chain s status will be delivered by the ChainStatusChanged event as a    combination of one or more of the following values                             Constants   Constant Value Description  CsfRunning 0 The chain is in running mode   CsfSectionDisabled 1 The chain is disabled   CsfResetFlagSet 2 The chain s reset flag is set  Concept    CsflnitializeFlagSet The chain s initialize flag is set  Unity Pro    CsfTimeCheckDisabled   4 The chain s time check is disabled   CsfTransitionsDisabled   8 The chain s transitions are disabled   CsfActionsDisabled 16 The chain s actions are disabled   CsfUnknown 4096 The chain s status is unknown                    OnChainOpenActions Constants       Constants    The following values can be written to or returned from the control s property    OnChainOpen  which allows to get or set the action to be performed when the user  double clicks a row in the grid while in overview mode                 Constants    Constant Value   Description   NoAction 0 The user s input will be ignored    ShowDetails 1 The chain will be shown in detail view   ShowDetailsSimple 2 The chain will be shown in details simple view           
143. seperately    e Step name in the view  Details   DetailsSimpleStepNameFont    e Step name in the view  Details Simple   DetailsStepNameFont              The following property specifies the background color of the SFCView control        Property    Description       BackColor       Background color in the views  e Details and  e Details Simple             Methods for general controlling of SFCView    Information on  SFCView    OFS  configuration    Loading project       Version information for SFCView        Methods    Description       About          Shows the SFCView info window           Information on the OFS configuration       Methods    Description       GetOFSInfo          Makes it possible to access the information on the OFS  configuration           Loading the Unity Pro project       Methods    Description       ReloadProject          Loads the Unity Pro project data into the SFCView              50                   SFCView appearance and behavior       Controlling    the PLC    The following methods are available for controlling the PLC                    Methods Description   PLCDisableActions Activates deactivates the actions for the selected string  step    PLCDisableSection Activates deactivates the selected string step    PLCDisableTimeCheck Activates deactivates the time monitoring for the selected  section    PLCDisableTransitions Activates deactivates the transitions for the selected    section                    PLCGotoNextStep Activates the next step  I
144. splay in the detail  view when the maximum step time is exceeded                    152    Properties                            9 15 StepMinTimeErrXxx Properties   Ata glance   Introduction In this section you will find an overview of the StepMinTimeErrXxx properties    What s in this This section contains the following topics    Section     Topic Page  StepMinTimeErrBackColor Property 154  StepMinTimeErrForeColor Property 154  StepMinTimeErrText Property 155                      153    Properties       StepMinTimeErrBackColor Property       Brief description Returns Sets the background color to display that the minimum step time was not  reached        Syntax object  StepMinTimeErrBackColor    color     The StepMinTimeErrBackColor property syntax has these parts                 Part Description   object An object expression that evaluates to a SFC View control    color A value or constant that determines the background and foreground  colors to display that the minimum step time was not reached                 Remarks See the Visual Basic documentation about possible color values or color constants        StepMinTimeErrForeColor Property       Brief description Returns Sets the foreground color to display that the minimum step time was not  reached        Syntax object  StepMinTimeErrForeColor    color     The StepMinTimeErrForeColor property syntax has these parts                 Part Description   object An object expression that evaluates to a SFC View control    color A
145. stem  property has changed        object  UseEasyModeSwitch    boolean     The UseEasyModeSwitch property syntax has these parts              Part Description  object An object expression that evaluates to a SFC View control   boolean A boolean value that determines used diagnostic mode                 The settings for boolean are        Setting    Description       True    Control will not reload project data when UsePLCDiagSystem  property has changed  Setting this property to true  make switching  between modes faster but it slows down loading the project and  causes bigger memory consumption  Set the property to true only  when you really need it        False           Default  Reload project data when UsePLCDiagSystem property  has changed           Changing this property in UserMode causes project reload           160          Properties       9 17    ValueXxx Properties       Ata glance    Introduction    What s in this  Section        In this section you will find an overview of the ValueXxx properties        This section contains the following topics                          Topic Page   ValueOffBackColor Property 162  ValueOffForeColor Property 162  ValueOnBackColor Property 163  ValueOnForeColor Property 163             161       Properties       ValueOffBackColor Property       Brief description Returns Sets the background color to display a variable value in  Off  state        Syntax object  Value0ffBackColor    color     The ValueOffBackColor property syntax has
146. t be made in the OFS  configuration tool    Execute the command Start  gt  Programs  gt  Schneider Electric  gt  OFS  gt  OFS  Configuration Tool         In the Comm  tab in Options for device without alias the following option must be    selected     e Check Consistency       Note  If the Comm  tab is not shown  all of the tabs can be shown via the  Advanced    tab                 38    Starting and Using the SFC View Demo Application       Create Alias for An alias is required to ensure that SFC View and OFS can work together  The  demo application following table describes the procedure to create an alias for the demo application        Step    Action       1    Click the Alias tab        2       Click the  B   Create new alias  button        Enter the name e g  TESTSFCV          S    Click on the  lt Driver gt  field  lt PLC addr gt  and using the Arrow down open the  page to enter the driver name        In the ADDRESS tree structure on the left click on DIRECT  gt  TCP IP        For the TCP IP address enter 127 0 0 1 and for the PLC  select UNITY        Confirm your entries using OK        o NI oJ A    Click in the Symbol table file and using the arrow pointing down select the  page to select the symbol file        For the file type select File type UnityPro project file    stu  and for  the file select File TESTSFCV  STU        10    Confirm your selection using Open        11    Click on the button Alias properties    and check the Check Consistency  option  Confirm th
147. t can be predefined as to whether  the next transition must be carried out or not   unconditional false true     PLCResetTimeErrors Resets the supervision time for the section    PLCSetInitializeFlag Sets the initialize flag or releases it    PLCClearChain Resets all active steps in the chain                 DANGER          Danger of unsafe  dangerous and destructive processes     The  Initialize chain    Reset chain    Cancel analysis of transitions     Cancel editing of actions and reset all actions of the chain    Activate  the next step independently of the transition condition  and  Activate the  next step depending on the transition condition   functions should not  be used to search for controller errors in machine tools  processes or  material management systems  if they are running     Failure to follow this precaution will result in death  serious injury   or equipment damage              51          SFCView appearance and behavior       Events for general controlling of SFCView    Changing  the display    Change in state  of the chain    Change in  the PLC       Display change in SFCView        Event    Description       ViewModeChanged          Is triggered when the SFCView view changes  Overview   Details  Details Simple            Change in state of the section        Event    Description       ChainStatusChanged          Is triggered  if the step chain state changes    The ChainStatusChanged event can be made up of one  or more ChainStatusFlagsconstants   Chain
148. t expression that evaluates to a SFC View control    boolean A boolean expression that specifies whether diag error analysis is  automatically re triggered or not                                         Settings The settings for boolean are   Setting Description  True  Default  Enables automatic re triggering of the error analysis   False Disables automatic re triggering of the error analysis   Remarks If the property is set to false  the client application can re trigger the analysis by    calling the method DiagRetrigger           133       Properties       DiagAutoRetriggerinterval Property    Brief description    Syntax    Remarks       Returns Sets the interval  1 to 65535ms  at which diag entries will be retriggered     Default is 1000ms        object  DiagAutoRetriggerInterval    milliseconds     The DiagAutoRetriggerInterval property syntax has these parts                    Part Description  object An object expression that evaluates to a SFC View control   milliseconds A numeric expression specifying the number of milliseconds  1 to    65535  between two retrigger actions on all active SFC errors in  actually displayed section in the details view  Default is 1000           Setting the value too low might have a negative influence on the system    performance           134       Properties                               9 11 OPCXxx Properties   Ata glance   Introduction In this section you will find an overview of the OPCXxx properties    What s in this This section c
149. t expression that evaluates to a SFC View control   string A string expression representing chain name  which is displayed in  detail view   Remarks If ViewMode property is set to sfcDetails  ChainName property allows to display    directly detail view of particular chain without going back to Overview        ChainControlVariableName Property       Brief description  Returns Sets string value  which represents variable name used as input variable of  the SFCVIEW_CTRL in the Unity Pro project           Syntax object ChainControlVariableName    string     The ChainControlVariableName property syntax has these parts              Part Description  object An object expression that evaluates to a SFC View control   string A string expression representing variable name used as input    variable of the SFCVIEW_CTRL in the Unity Pro project   Default is SVC Command                       96    Properties       ChainFlagsOffBackColor Property       Brief description Returns Sets the background color to display the  Off  state of the chain status flags        Syntax object  ChainFlagsOffBackColor    color     The ChainFlagsOffBackColor property syntax has these parts                 Part Description   object An object expression that evaluates to a SFC View control    color A value or constant that determines the background or foreground  colors to display the  On  and  Off  states of the chain flags              Remarks See the Visual Basic documentation about possible color values or c
150. tax   The OFSDevices collection syntax has these parts              Part Description   object An object expression that evaluates to an OFSInfo object    index Either an integer or string that uniquely identifies a member of an  OFSDevices collection                    The unique string to access an element of the OFSDevices collection is the value of  the OFSDevice object s Alias property   See the Visual Basic documentation for more information about collections           90    Objects       OFSInfo Object       Brief description Makes data of the currently configured OFS devices available        Syntax OFSInfo       Remarks When the object is created by a call to the GetOFSInfo method of the SFC View  control  the OFS configuration data currently available in the system registry is read        SFC View Control       Brief description A SFC View control is a graphical control to display the contents and the current  state of all SFC sections of a Concept project in a PLC        Syntax SFCView       Remarks See the chapter Overview for an overview of the main concepts of the control or look  for the details in the other chapters of this reference           91    Objects          92       Properties       Ata glance       Introduction    In this chapter you will find information about the properties                                                                       What s in this This chapter contains the following sections    Chapter  Section Topic Page  9 1 ChainXxx Prop
151. th        AutomaticProjectReload    When this is set  the project data is automatically reloaded  when changes are made in the PLC        UnityNetworkServer          For a distributed configuration  this sets the PC where the  Unity Pro Program is located  PC name and IP address                                 OFS The following properties are available for communicating with the OPC Factory  communication Server  OFS    Property Description  UseOPCProject Specifies that the project file is automatically determined  from the OFS path  OPCAccessPath    Alternatively the ProjectFile property can also be used   EnableOPCUpdates Specifies that changes in the PLC are reported from the  OPC Factory Server to SFCView   OPCNetworkServer For a distributed configuration  this sets the PC where the  OPC Factory Server is located  PC name and IP address    OPCAccessPath Sets the path for the OFS alias  The alias is defined in the  OFS configuration tool  OPC Factory Server Presettings   p  34    OPCConnect Creates the connection between the OPC factory server and  the SFC View   OPCUpdateRate Sets the time delay for the OPC Factory Server to read data  from the PLC  in msec                     48             SFCView appearance and behavior       OFS information    Device collection  properties    Device  properties    Online control    Width    You can access the OFS information via the following properties                Property Description   OPCNode For a distributed configuration this
152. tion       1          Text in the column Cause    Listing of all the input variables and the nested  logic of the AND_16 function block    Input variables for nested function blocks are  indented  e g  ACT10 for function block OR_BOOL              63       SFCView appearance and behavior          Number  Components Description       2 Color in the column Cause   Green  Input has the value 1  e g  ACT2  Red  Input has the value 0  e g  ACT11  Gray  Input with an unknown value       3 Color in the column The output TV11 has the value 0  The color in the  Error State Error State column shows if the input in  question is the cause    Green  Not the reason for the value 0 at the output  TV11 e g  ACT2   Note  ThesFC Start15 input may indeed have  the value 0  but it is inverted and is therefore not  the reason for the value 0 at the TV11 output  For  this reason it is shown in green    red  The reason for the value 0 on the output  TV11 e g  ACT11   gray  Input  whose logic cannot be analyzed e g   the OR_BOOL function block as an input for  OR_BOOL is connected to a NOT_BOOL    Note  SFCView cannot analyse function blocks  which are not AND BOOLOr OR_BOOL function          blocks   4 Text in the column In this case the text matches the colors in the  Error State Error Statecolumn   0  Not the cause  1  Cause  2  Not analyzable  5 Text inthe Pin Type Examples   column AND1  Variable at input    AND2 inv  Variable at input  inverted  AND4 Link  Nested logic at the input            
153. tion  True  Default  The detail view displays all diag errors for the current chain   False The detail view shows only the errors for the displayed step   Remarks The property is valid only when UsePLCDiagSystem property is set to true        ShowAllTransitionsinput Property       Brief description Returns Sets whether diagnostic information is shown for all active steps or only for  actually selected step        Syntax object  ShowAllTransitionsInput    boolean     The ShowAllTransitionsInput property syntax has these parts                                                  Part Description  object An object expression that evaluates to a SFC View control   boolean A boolean expression that determines whether diagnostic information in  detail view is shown for all active steps or only for actually selected step   Settings The settings for boolean are   Setting Description  True  Default  Diagnostic information in detail view is displayed for all active steps   False Diagnostic information in detail view is displayed only for actually selected  step   Remarks The property is valid only when UsePLCDiagSystem property is set to false           145          Properties       ShowChainGroups Property    Brief description    Syntax    Settings    Remarks       Returns Sets whether the overview displays the hierarchy of the chain groups        object ShowChainGroups    boolean     The ShowChainGroups property syntax has these parts              Part Description   object An object expr
154. tive step       DetailsInactiveStepBackColor    Color for the edge of the info field for the inactive  step       DetailsInitialStepBackColor    Color indicator for the initial step       DetailsWaitingStepBackColor          Color indicator for a step in the waiting state   Note  Any step in the waiting state is either an initial  step or the last step displayed  if the Setlnitialize flag  is set           80             SFCView appearance and behavior       Methods for controlling the view  Details Simple             Controlling The following methods are available for controlling the display of steps   hi wa Methods Description  DisplayInitialStep Shows the first step of the step chain        DisplayNextActiveStep Shows the next active step  for parallel branches         DisplayNextStep Displays the next step        DisplayPreviousStep Displays the previous step        DisplayPrevActiveStep Shows the previous active step  for parallel branches                     Events for controlling the view  Details Simple       Double click Double click in the view  Details Simple        Event Description       DetailsSimpleDb1Click The event is deleted by double clicking in the view  Details  Simple                       81    SFCView appearance and behavior          82       Tips and Tricks       Introduction    Overview    What s in this  Chapter        This chapter contains tips for improving the performance of your system and tricks  that have arisen from previous versions of SFCVi
155. trol s property pages  one can select an alias  name from the current OFS configuration data  This configuration data can also be  retrieved with the GetOFSInfo method           136    Properties       OPCConnect Property       Brief description  Returns Sets whether to connect to or disconnect from the OPC server        Syntax object  OPCConnect    boolean     The OPCConnect property syntax has these parts              Part Description   object An object expression that evaluates to a SFC View control    boolean A boolean expression that specifies whether to connect to or  disconnect from the OPC server                                         Settings The settings for boolean are   Setting Description  True  Default  Starts the connection with the OPC server at runtime   False Closes all connections with the OPC server    Remarks The OPCConnect property is ignored at designtime  At runtime  the connection with    the OPC server will be started only after the project data was read by the control and  when the OPCConnect property is set to true           137       Properties       OPCUpdateRate Property    Brief description    Syntax    Remarks       Returns Sets the fastest rate at which the OPC server should deliver changed data        object  OPCUpdateRate    milliseconds     The OPCUpdateRate property syntax has these parts                    Part Description  object An object expression that evaluates to a SFC View control   milliseconds A numeric expression specifying th
156. ts Details Simple                                           Number   Components Description   1 Chain name Name of the selected chain   2 Chain state Shows the state of the step chain  The state is  represented by a color outline    3 Chain comment Three line comment text for step chain   4 Step name Name of step shown   5 Step comment Three line comment text for shown step   6 Short Error message   Single line error message for the step shown   7 Time monitoring View of monitoring and delay time   8 Frames The outline around this info field can have a different  color depending on the state of the step    9 Number of active Display of the number of active steps    steps and navigation   The arrow keys can be used to navigate between the   active parallel steps           77       SFCView appearance and behavior       Controlling  the controls    To control the behavior and the appearance of the SFCView  the person carrying out  the configuration has various methods  events  constants and properties available    for use     All the controlling options which are assigned to the Details Simple display are  described in the following chapter   All general controlling options are described in their own chapter General controlling     p  45        Properties for controlling the view  Details Simple    Direct view  of a chain    Always show  active steps    View display   Details Simple       Direct view of a chain in the views  Details and Details Simple        Property    Descript
157. ty syntax has these parts              Part Description   object An object expression that evaluates to a SFC View control    color A value or constant that determines the background or foreground  colors to display the  On  and  Off  states of the chain flags                    Remarks See the Visual Basic documentation about possible color values or color constants           98    Properties       9 2    ColumnHdrActionXxx Properties       Ata glance    Introduction    What s in this  Section        In this section you will find an overview of the ColumnHdrActionXxx properties        This section contains the following topics                             Topic Page   ColumnHdrActionComment Property 100  ColumnHdrActionName Property 100  ColumnHdrActionQualifier Property 100  ColumnHadrActionTime Property 101  ColumnHdrActionType Property 101             99       Properties       ColumnHdrActionComment Property       Brief description Returns Sets the header text of the Comment column for step actions        Syntax object  ColumnHdrActionComment  string     The ColumnHdrActionComment property syntax has these parts              Part Description   object An object expression that evaluates to a SFC View control    string A string expression that evaluates to the text displayed as the header  of the columns for the step action grids in the detail view                    ColumnHdrActionName Property       Brief description Returns sets the header text of the Name column for step
158. ue Description   sescNoState 0 The background color is gray    sescErrorState 1 The background color indicate  if the variable is an  error or not    sescPinState 2 The background color indicate pin state  to which the  variable is directly connected    sescVariableState 3 The background color indicate variable state                          220       SFCView block library       Introduction    Overview    What s in this  Part        The SFC View block library contains three diagnostic EFBs and an EFB for  controlling step chains by SFC View  which are not included in the standard  Unity Pro shipping        This part contains the following chapters                       Chapter Chapter Name Page  13 Block types and their applications 223  14 AND_16  boolean AND with 16 predefined inputs 231  15 AND_OR_8  Combined boolean AND OR with 8 predefined 233   inputs  16 OR_16  boolean OR with 16 predefined inputs 235  17 SFCVIEW_CTRL  Step chain control via SFCView 237                      221       SFCView block library          222       Block types and their applications    13                         Introduction   Overview This chapter describes the different block types and their applications    What s in this This chapter contains the following topics    19    Chapter  Topic Page  Block types 224  FFB Structure 225  EN and ENO 228                      223    Block types and their applications       Block types    Block types    Elementary  Function    Elementary  function block
159. umn  only via SFCView  blocks for diagnostics    WidthErrorStateColumn Width of the ErrorState column  only via SFCView  blocks for diagnostics    WidthErrorCommentColumn Width of the ErrorComment column                If UsePLCDiagSystem is setto true the ErrorState and ErrorPinType widths are  0  Zero     If showA11TransitionInputs is set to false the ErrorStep column width is 0   Zero           Note  To make a column invisible the width must be set to 0  Zero            70       SFCView appearance and behavior       Representation  of the action  information    Texts       Property    Description       ColumnHdrErrorStep    ErrorStep column header       ColumnHdrErrorVariable    ErrorVariable column header       ColumnHdrErrorPinType    Header for the ErrorPinType column  only via  SFCView blocks for diagnostics        ColumnHdrErrorState    Header for the ErrorState column  only via SFCView  blocks for diagnostics                    ColumnHdrErrorComment       ErrorComment column header             Note  The SFCView texts are stored in English by default but can be changed by  the person carrying out the configuration           Column widths       Property    Description       WidthActionQualifierColumn    Width of the ActionQualifier column       WidthActionTimeColumn    Width of the ActionTime column       WidthActionNameColumn    Width of the ActionName column       WidthActionTypeColumn    Width of the ActionType column       WidthActionCommentColumn       Width of th
160. un on the PLCs with the sections to be visualized   Communication via Modbus TCP IP  6    The communication between the operating station and the PCs is carried out via the  Modbus TCP IP  DCOM     Communication via various buses  7    The communication between the OFS server and the PLCs can be carried out via  the following buses  as long as they are supported by the relevant PLCs    Modbus   e Modbus Plus   e Modbus TCP IP   e Uni Telway       User requirements    Programming  environment    Configuring  SFC View    Programming    interface    SFC View Demo   Application       The programming environment is a HMI application that supports ActiveX container        In order to be able to configure SFC View in a HMI application the user should have  a basic understanding of the following areas    e SFC programming in Unity Pro   e OFS parameterization   e Embedding ActiveX controls in HMI applications       The SFC View software package has a programming interface that makes it  possible to set up SFC View in such a way that that the workflow and display is  appropriate for a HMI application        A sample program written in Visual Basic is installed along with SFC View    This SFC View demo application is a standalone program that can also be  executed without Visual Basic    Nearly all the properties  methods and events for SFC View were configured in this  program and can be tested in conjunction with Unity Pro  the OPC Factory Server   OFS   and the Unity Pro PLC Simulat
161. urns Sets the text to display the chain state  Time Check Disabled  in the  overview and details simple view        Syntax object OverviewTextDisableTimeCheck    string     The OverviewTextDisableTimeCheck property syntax has these parts              Part Description   object An object expression that evaluates to a SFC View control    string A string expression that evaluates to the text displayed for the chain  states the overview and details simple view                       140    Properties       OverviewTextDisableTransitions Property       Brief description Returns Sets the text to display the chain state  Transitions Disabled    in the overview  and details simple view        Syntax object  OverviewTextDisableTransitions    string     The OverviewTextDisableTransitions property syntax has these parts                 Part Description   object An object expression that evaluates to a SFC View control    string A string expression that evaluates to the text displayed for the chain  states the overview and details simple view              OverviewTextRunning Property       Brief description Returns Sets the text to display the chain state  Running  in the overview        Syntax object  OverviewTextRunning    string     The OverviewTextRunning property syntax has these parts                 Part Description   object An object expression that evaluates to a SFC View control    string A string expression that evaluates to the text displayed for the chain  states the overview
162. uts  Actual parameters  outputs   Operands  Operation The operation determines which function is to be executed with the FFB  e g  shift    register  conversion operations           225    Block types and their applications       Operand    Formal actual  parameters    FFB Call in IL ST    The operand specifies what the operation is to be executed with  With FFBs  this  consists of formal and actual parameters        Inputs and outputs are required to give values to the FFB or to take values from the  FFB  These are called formal parameters    Objects are connected to the formal parameters which contain the current process  states  These are called actual parameters    During program runtime  the actual parameters are used to pass the process values  to the FFB and output them after processing    The data type of the actual parameters must match the data type of the input output   formal parameters   The only exceptions are generic inputs outputs  for which the  data types are determined by the actual parameters  If all actual parameters are  literals  the correct data type for the function block will be selected        In text languages IL and ST  FFBs can be called in formal and in informal form   Details can be found in the Reference manual    Example of a formal function call    out  LIMIT  MN  0  IN  varl  MX  5      Example of an informal function call    out  LIMIT  0  varl  5             Note  Take note that the use of EN and ENO is only possible for formal calls     
163. w are   e Monitor Pro 7 2  Schneider Electric   e Vijeo Look 2 5  Schneider Electric   e iFix 3 0  GE Fanuc   e InTouch 7 2  Woderware   Other applications tested are    e Internet Explorer 6 0  Microsoft   e Visual Basic 6 0  Microsoft       The following PLCs programmed with Unity Pro are supported   e Quantum   e Premium   e Atrium       System Architecture    General Mode  of Operation       SFC View reads the structure of the sections and other data from the Unity Pro  project    stu   For this Unity Pro must be installed    Via the OPC Factory Server  OFS   SFC View reads the online data from the SFC   sections status  variable status  diagnosis buffer etc      SFC View recognizes project changes in the PLC and automatically updates the  display        18    Requirements and restrictions       System  configuration    Simple  Configuration    This guarantees that the sections display in the HMI application and the PLC  program always remain consistent    Function blocks from the SFC View library must be used for a particular diagnosis  mode and for online controlling when configuring Unity Pro    Apart from this no other programming needs to be carried out in the PLC        SFC View can be used in simple and in distributed system configurations        A simple configuration is shown below              1 Operating station  2 PLCs  3 Communication    Operating station  1    The following components must be on the operating station    e HMI Application   e Unity Pro progra
164. width of Error Variable column in the grid for transition errors        Syntax object WidthErrorVariableColumn    long     The WidthErrorVariableColumn property syntax has these parts              Part Description   object An object expression that evaluates to a SFC View control    long A long type expression that specifies width of column in the grid for  transition errors                    Remarks When UsePLCDiagSystem property is true  width of Error State and Pin Type  columns is always 0  When ShowAllTransitionsInput property is set to false  Step  Name column width is also 0        Note  To hide a column you have to set Width property of the column to 0                 168    Properties       WidthErrorPinTypeColumn Property    Brief description    Syntax    Remarks       Returns Sets width of Pin Type column in the grid for transition errors        object  WidthErrorPinTypeColumn    long     The WidthErrorPinTypeColumn property syntax has these parts        Part Description       object An object expression that evaluates to a SFC View control        long A long type expression that specifies width of column in the grid for transition  errors                    When UsePLCDiagSystem property is true  width of Error State and Pin Type  columns is always 0  When ShowAllTransitionsInput property is set to false  Step  Name column width is also 0        Note  To hide a column you have to set Width property of the column to 0           WidthErrorStateColumn Property    Br
165. y   For information on this see the readme txt file        Installation and registration of Unity Pro and OFS       Installation Install Unity Pro and the OPC  OFS  as described in their respective manuals        Registration Register Unity Pro and the OPC  OFS  as described in their respective manuals           28    Installation       Installing SCF View    Changing and  canceling    Installation  directories    Installing SFC  View       For the installation described here you can change options already selected by  clicking on Back or cancel the installation by clicking on Cancel        The installation directories for the software are preset as defaults  However they can  be changed   If this is necessary  click Find   to select a different installation directory        The step by step instructions for installing the SFCView software are described                                        here   Step Action  1 Insert the CD ROM   Execute the Setup exe file   3 Select the language for the installation wizard and confirm the SFCView  installation by clicking on OK   4 Confirm the start screen by clicking onNext   5 Read the licensing conditions and accept them by clicking on Yes   6 Check the configuration and then confirm it with Next   7 Enter your name  the name of your company and the serial number and then  confirm by clicking on Next   8 Select the directory into which the program should be installed using Find and  confirm usingNext   9 Select a program folder and con
166. yed for the status flag if the  actions are deactivated                 Note  The SFCView texts are stored in English by default but can be changed by  the person carrying out the configuration              66    SFCView appearance and behavior       Variables display    Lines display    General settings  for diagnostics    Color display for the status flags       Property    Description       ChainFlagsOffBackColor    Color of background display for status flag  if the  status flags is deactivated        ChainFlagsOffForeColor    Color of text for status flag if the status flag is  deactivated        ChainFlagsOnBackColor    Color of background for status flag if the status  flag is activated              ChainFlagsOnForeColor       Color of text for status flag if the status flag is  activated              Color display for variables  actions  transitions and diagnostic variables                    Property Description   ValueOffBackColor The background color for a variable in its off  state    ValueOffForeColor The text color for a variable in its off state    ValueOnBackColor The background color for a variable in its on  state    ValueOnForeColor The text color for a variable in its on state                 Connection lines color       Property    Description       DetailsViewLinesColor          Color of the lines between step information and action  information or between transitions and diagnostic  information           Diagnostic mode       Property    Description    
    
Download Pdf Manuals
 
 
    
Related Search
    
Related Contents
Manuel d`utilisation Serie CN142  Owners Manual  Texas Instruments MSOP8 User's Manual  Hydraulic Pumping Unit (HPU)  Manuale di installazione e manutenzione per automazioni per porte  Handbücher  Sunbeam 1361-705 User's Manual  X2 TECH, X2 Graphic Guía del usuario  User Manual  ALLinONE - Teknosolar.com    Copyright © All rights reserved. 
   Failed to retrieve file