NOT
PROGRAM NOT_DEMO VAR BOOL1,BOOL2: BOOL; END_VAR BOOL2:= NOT BOOL1; END_PROGRAM
The function negates the input.