beautypg.com

L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual

Page 746

background image

L-force | PLC Designer

General Editors

744

DMS 4.1 EN 03/2011 TD29

In order to allow this access, declare the flag in the SFC Settings dialog. For this
purpose select sfc1 in the Devices resp. POUs window and choose command
'Properties' from the context menu. Open subdialog 'SFC Settings' and there, on tab
'Flags', set a checkmark each in column 'Declare' and 'Use' for flag "SFCError". (Solely
declaring would make the variable visible in the online view of the sfc1 declaration
part, but it would be without function.)

Abb. 411 SFC Settings

Now you can read SFCError within the SFC, for example in an action, via "SFCError", or
from another POU via "sfc1.SFCError".

Abb. 412 Accessing SFCError