Disclaimer: Not sure what plc you are using or what error 4024 means but I can comment on the format of your code if you use a typcicaly IEC 61131 plc language (which most plcs are).
First, the :=
i an assignment operator. The =
is a comparison operator. So in your if
statment you would use
IF IP_emo = FALSE THEN
or alternatively (depending on which plc you use. typically all IEC 61131 languages are the same though)
IF NOT IP_emo THEN
Secondly, AND
and OR
are for comparison so you can't have them with an assingment operator. You can do something like
ELSE
State :=OFF;
IP_emo:=TRUE;
start_Btn:=TRUE;
start_Btn:=FALSE;
State:= Monitor_Mode;
END_IF
or maybe
ELSE
State :=OFF;
IF IP_emo=TRUE AND start_Btn=TRUE AND (start_Btn=TRUE OR start_Btn=FALSE) THEN
State:= Monitor_Mode;
END_IF
END_IF
not exactly sure what you are trying to do.