For a program I want to use the Timer-function PULSE_GEN_S but I cant make Variables in the Safe-Context constant, as there is no checkbox for it. Can someone help me out how to use PULSE_GEN_S?
Hi,
Do you want to just have a fixed time for the pulse High / Low time?
You can set fixed times for the Function as follows:
So just like in the standard PLC it is Datatype#value to declare a constant value in the program.
Local variables in the controller cannot be set with an inital value, but global safety variables can. However the function specifically is looking for a constant as per the above example.
Thank you! This solved my problem.