g.mccormick
Lifetime Supporting Member
Ok working on TwinCat for first real time.
I cannot seem to find a way to do a compare in the ladder.
The way our driver works (from our control system to the plc) we cannot use bits, we must use 32bit DINT.
So I will be reading and writing to/from a bunch of memory words, then using logic in the PLC to turn on outputs if certain things are ok.
In the PLC logic, I need to see if a request is on, then turn on a logical of BOOL type. I can't use a DINT in a NO contact in ladder as it is not a BOOL, I can't figure out how to do a compare in the ladder editor
I'm learning how to do this in ST.
Example in ST:
Global variables
Request1 AT %MD4: DINT;
Logical1: BOOL;
IF Request1>= 1 THEN Logical1:= TRUE; ELSE Logical1:=FALSE; END_IF
I can't figure out how to do >= in ladder.
I cannot seem to find a way to do a compare in the ladder.
The way our driver works (from our control system to the plc) we cannot use bits, we must use 32bit DINT.
So I will be reading and writing to/from a bunch of memory words, then using logic in the PLC to turn on outputs if certain things are ok.
In the PLC logic, I need to see if a request is on, then turn on a logical of BOOL type. I can't use a DINT in a NO contact in ladder as it is not a BOOL, I can't figure out how to do a compare in the ladder editor
I'm learning how to do this in ST.
Example in ST:
Global variables
Request1 AT %MD4: DINT;
Logical1: BOOL;
IF Request1>= 1 THEN Logical1:= TRUE; ELSE Logical1:=FALSE; END_IF
I can't figure out how to do >= in ladder.