Which products are affected?
ESP-SPAC-CAM1 – Software Package Cam V1.5 (cam template)
What happens?
The sequence of the UserProgram2 POU prepared for the user in the 'sequential flow chart' programming language cannot be initialised since the corresponding UserProgram2.SFCInit initialisation variable is cyclically set to FALSE by the cam template.
When does the problem occur?
The problem occurs if the user tries to write the UserProgram2.SFCInit variable in order to initialise the process sequence. If the UserProgram2 POU is called by the cam template, the UserProgram2.SFCInit variable is set to FALSE.
Possible diagnostics?
In the DDS online mode the UserProgram2.SFCInit variable cannot be set to TRUE. Despite being set by the user, the UserProgram2.SFCInit variable is reset cyclically to FALSE by the cam template.
Short-term measures/recommendations?
Use your own self-programmed POU (programmed in the 'sequential flow chart' programming language) instead of the prepared UserProgram2 POU. In this own self-programmed POU the SFC variables assigned can be accessed without restrictions.
Evaluation:
The UserProgram2.SFCInit SFC variable cannot be written by the user since the cam template resets this variable whenever the UserProgram2 POU is called. Since all other POUs generated by the user in the sequential flow chart programming language allow setting/resetting the SFC variables, the problem can easily be avoided by using another POU than the UserProgram2 POU.