SFC Programming Create a new POU Select Sequential Function Chart as implementation language Configure the application You can add a step by right-clicking on the objects and choosing “Insert Step transition” Add an action to the step by double-clicking on it. The action will be executed when the corresponding step is active. Add a coil. This bit is set to 1 if “Step0” is activated the first time Edit a transition by dobule-clicking on the element Add a contact . The transition can only be passed if the bit is set to 1 You can set the minimum and maximum processing time of steps The format is t#Xs. In this example, the step will be active for at least 3 seconds A macro contains a part of the SFC chart, it is a way to hide parts of the program (E.g. to simplify the display). You can also add elements from the ToolBox by using Drag & Drop Open the macro with a double-click Add some elements to the macro Monitor the status of the SFC steps. Add a new POU. Choose ST as implementation language. Enter the implicit variables for the monitoring. .x shows the current activation status of the step. .t shows the elapsed time since the activation of the step. Control the operation of the SFC with SFC flags Open the project settings and select the “SFC” tab Activate the flags you want to use. The “SFCInit” flag resets the SFC chart to the “Init” element, no actions of the element are executed. The “SFCReset” flag resets the SFC chart to the “Init” element, all actions of the element are executed Activate the flags you want to use Control the operation of the SFC with the SFC flag Declare the flags in “VAR_INPUT” Add a new POU. Choose LD as implementation language Programming example Add the POUs to the MAST task

How to Program with the SFC Implementation Language in SoMachine V4.1.? | Schneider Electric
Tagged on:                                                                         

2 thoughts on “How to Program with the SFC Implementation Language in SoMachine V4.1.? | Schneider Electric

  • March 28, 2018 at 12:50 am
    Permalink

    Tutorial is a bit rushed.

    Reply
  • November 14, 2018 at 5:15 pm
    Permalink

    Hi there

    I would like to ask if you can do a video with SoMachine from scratch?

    May thanks, Stefan

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *