component test1; license "GPL"; pin in float Position_input; pin in bit Trigger_input; pin out float Position_output; variable float Position_safe = 0.0; variable int Trigger_last = 0; function _; ;; FUNCTION(_) { if (Trigger_input && !Trigger_last) { Position_safe = Position_input; } Position_output = Position_safe; Trigger_last = Trigger_input; } This seems to be working now. He didn't like the Trigger_last to be a bit... It's set to int now. I'm having different kinds of trouble now. I'll try to figure it out myself for the moment. If I get stuck again. I'll let you know! Thank you for the quick reply... Again! ❤