ilunn - 2019-09-10

Hi all I have wrote a program for IFM CR0401 (codesys 2.3) but have issue on start up, the program causes a pneumatic cylinder to extend and retract on the rising trigger of input (via a guard switch) as the guard switch is closed on power up the program sees it and the cylinder does 1 random movement. on PLC,s that I've used there is a internal register that is flagged upon power up/run but I cannot find anything like it in codesys, any one got any ideas how I can block the input on power up.