Bistable instructions
FBD
LD
In ladder diagram, specify a rising edge in the contact and SET or RESET in the coil:
ST
When programming with structured text, enter the following:
(*TRUE and FALSE are assigned to Y0*)
IF DF(X0) THEN
Y0:= TRUE;
END_IF;
IF DF(X1) THEN
Y0:= FALSE;
END_IF;
510