IF AND statement in crimson complex code

Join Date
Oct 2012
Location
Mackay
Posts
2
I'm trying to do an if statement relying on two Boolean values;
IF (tag1) AND (tag2) RETURN output 1
ELSE IF (tag1) RETURN output 2
ELSE IF (tag2) RETURN output 3
ELSE RETURN output 4

I just don't know how to put that AND from the first line into Crimson code
 

Similar Topics

Hey everyone, I am trying to right an expression in FTView and getting syntax errors. If {[PLC]System.Auto} Then 1 OR If {[PLC]System.Estopped}...
Replies
2
Views
559
Hey everyone, I am sending an email from a red lion. If I just use 1 of the case statements without the full switch statement, the email works...
Replies
2
Views
1,738
RSLogix 5000 I am getting a 'CMP, Operand 0: Invalid expression.' for this. It's been a long week, I can't see the problem. (a = (b + 1)) OR...
Replies
7
Views
2,546
Hello Everyone, I am not proficient with STL so I wanted to get another opinion on this big of logic. A( L #MaxPos...
Replies
11
Views
4,300
Anyone know a way to get the CMP Instruction to highlight in yellow when the statements is true in ladder logic? Similar to the XIC?
Replies
5
Views
2,317
Back
Top Bottom