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

Editors You can take advantage of three different entries in the step attribute dialog box. Under Minimum Time , you enter the minimum length of time that the processing of this step should take. Under the Maximum Time , you enter the maximum length of time that the processing of this step should take. 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. Under Comment you can insert a comment to the step. In the 'Sequential function chart options' dialog which you open under 'Extras' 'Options' , you can then enter whether comments or the time setting is displayed for the steps in the SFC editor.

On the right, next to the step, either the comment or the time setting will appear. If the maximum time is exceeded, SFC flags [ } 156] are set which the user can query. The example shows a step whose execution should last at least two, and at the most, ten seconds. In Online mode, there is, in addition to these two times, a display of how long the step has already been active. SFC-Flags If a step is active in SFC for longer than its attributes state, some special flags are set. There are also variables which can be set in order to control the program flow in the sequential function chart. To use the flags it is necessary, globally or locally, to declare them as output or input variables.

SFCEnableLimit This variable is of the type BOOL. When it has the value TRUE, the timeouts of the steps will be registered in SFCError. Other timeouts will be ignored. SFCInit When this boolean variable has the value TRUE the sequential function chart is set back to the Init step. The other SFC flags are reset too (initialization). The Init step remains active, but is not executed, for as long as the variable has the value TRUE. It is only when SFCInit is again set to FALSE that the block can be processed normally. SFCReset: This variable, of type BOOL, behaves similarly to SFCInit. Unlike the latter, however, further processing takes place after the initialization of the Init step.

Thus for example the SFCReset flag could be re-set to FALSE in the Init step. SFCQuitError: Execution of the SFC diagram is stopped for as long as this boolean variable has the value TRUE whereby a possible timeout in the variable SFCError is reset. All previous times in the active steps are reset when the variable again assumes the value FALSE. SFCPause Execution of the SFC diagram is stopped for as long as this boolean variable has the value TRUE. SFCError: This Boolean variable is TRUE when a timeout has occurred in a SFC diagram. If another timeout occurs in a program after the first one, it will not be registered unless the variable SFCError is reset first. SFCTrans:

This boolean variable takes on the value TRUE when a transition is actuated. SFCErrorStep: This variable is of the type STRING. If SFCError registers a timeout, in this variable is stored the name of the step which has caused the timeout. TX1200 156 Version: 1.3