Hello,
I would like to reset to the INIT step a SFC. For this I found the differents available Flags : https://help.codesys.com/webapp/_cds_sfc_sfc_flags;product=codesys;version=3.5.16.0
In my case I would like to use "SFCReset" so I activated this Flag in the SFC properties > SFC Settings.
Now I would like to activate the reset with a simple push button. Unfortunately when I asign the flag SFCReset to a coil I have a compil error:
C0037: 'SFCReset' is no input of 'GRF7_proc'
It seems this flag is only an output... not what I want. So how can I reset a SFC with a simple push button?
Hello,
I would like to reset to the INIT step a SFC. For this I found the differents available Flags :
https://help.codesys.com/webapp/_cds_sfc_sfc_flags;product=codesys;version=3.5.16.0
In my case I would like to use "SFCReset" so I activated this Flag in the SFC properties > SFC Settings.
Now I would like to activate the reset with a simple push button. Unfortunately when I asign the flag SFCReset to a coil I have a compil error:
C0037: 'SFCReset' is no input of 'GRF7_proc'
It seems this flag is only an output... not what I want. So how can I reset a SFC with a simple push button?
In advance many thanks for your reply.
Last edit: yann2021 2021-06-18
Hello,
you have to declare 'SFCReset' in the VAR_INPUT section of your FB 'GRF7_proc'. A little snipet from my FB 'Bohren'
Reinhard
Hello Reinhard,
I did it but still have this error message "'SFCReset' is no input of 'GRF7_proc'" :-(
Hello Yann,
have you made these settings in the Project Settings and the FB settings?