Beckhoff Automation GmbH & Co. KG TX1200 — 5.9 Sequential Function Chart Editor

Editors SFCErrorPOU: This variable of the type STRING contains the name of the block in which a timeout has occurred. SFCCurrentStep: This variable is of the type STRING. The name of the step is stored in this variable which is active, independently of the time monitoring. In the case of simultaneous sequences the step is stored in the branch on the outer right. No further timeout will be registered if a timeout occurs and the variable SFCError is not reset again. SFCErrorAnalyzation:

This variable, of type STRING, provides the transition expression as well as every variable in an assembled expression which gives a FALSE result for the transition and thus produces a timeout in the preceding step. A requirement for this is declaration of the SFCError flag, which registers the timeout. SFCErrorAnalyzation refers back to a function called AppedErrorString in the TcSystem.Lib library. The output string separates multiple components with the symbol “|”. SFCTip, SFCTipMode: This variables of type BOOL allow inching mode of the SFC. When this is switched on by SFCTipMode=TRUE, it is only possible to skip to the next step if SFCTip is set to TRUE.

As long as SFCTipMode is set to FALSE, it is possible to skip even over transitions. 'Extras' 'Time Overview' With this command you can open a window in which you can edit the time settings of your SFC steps: Time Boundaries Overview for a SFC POU In the time boundaries overview, all steps of your SFC POU are displayed. If you have entered a time boundary for a step, then the time boundary is displayed to the right of the step (first, the lower limit, then the upper limit). You can also edit the time boundaries. To do so, click on the desired step in the overview. The name of the step is then shown below in the window.

Go to the Minimum Time or Maximum Time field, and enter the desired time boundary there. Note that the entries are of the TIME type, so you use a TIME constant (i.e. T#3s) or a variable of the TIME type. If you close the window with OK, then all of the changes will be stored. In the example, steps 2 and 6 have a time boundary. Shift1 lasts at least two, and at most, ten seconds. Shift2 lasts at least seven, and at most, eight seconds. 'Extras' 'Options' With this command you open a dialog box in which you can set different options for your SFC POU. TX1200 157 Version: 1.3