Browse FAQs

How to initialize an SFC program back to the Init step in EcoStruxure Machine Expert?

Published date: 23 September 2019

Issue
The sequential function chart needs to be set back to the Init step using a variable

Product Line
M241, M251, M262, M258, LMC058

Environment
EcoStruxure Machine Expert v1.1

Resolution
You can use some implicitly available variables, also named SFC flags to control the operation of an SFC. In order to be able to access these flags you have to declare and activate them. Do this in the SFC Settings dialog box. This is a subdialog box of the object Properties dialog box, available by right-clicking the SFC POU. The step by step procedure is described below:
1. Right-click on the SFC POU and select Properties...
2. Go to the SFC Settings tab
3. Uncheck Use defaults and under the Use colomn check the variables that you want to use. If you want to use this flag from another POU, declare locally the SFCinit as an VAR_INPUT BOOL:

VAR_INPUT
SFCinit:BOOL;
END_VAR

4. Set back the SFC to the Init step by activating the flag from another POU. Use SFC_prog.SFCinit syntax to access the flag.

This completes the procedure to initialize an SFC program back to the Init step in EcoStruxure Machine Expert.

Was this helpful?

What can we do to improve the information ?

Can't find what you are looking for?

Reach out to our customer care team to receive information on technical support, assistance for complaints and more.