Challenge - 5 Problems
PLC Comparison Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediateOutput of EQ instruction in PLC ladder logic
Given the following PLC ladder logic snippet using the EQ (equal) instruction, what will be the value of the output coil EQ_Output after execution?
Inputs:
- Input1 = 10
- Input2 = 10
Logic:
EQ_Output = EQ(Input1, Input2)
Inputs:
- Input1 = 10
- Input2 = 10
Logic:
EQ_Output = EQ(Input1, Input2)
PLC Programming
Input1 = 10 Input2 = 10 EQ_Output = (Input1 == Input2)
Attempts:
2 left
💡 Hint
EQ checks if two values are exactly the same.
✗ Incorrect
Since Input1 and Input2 are both 10, the EQ instruction returns TRUE, setting EQ_Output to TRUE.
💻 Command Output
intermediateResult of NE (not equal) instruction
What will be the output of the NE instruction when comparing these two values?
InputA = 5
InputB = 8
NE_Output = NE(InputA, InputB)
InputA = 5
InputB = 8
NE_Output = NE(InputA, InputB)
PLC Programming
InputA = 5 InputB = 8 NE_Output = (InputA != InputB)
Attempts:
2 left
💡 Hint
NE returns TRUE if values are different.
✗ Incorrect
Since 5 is not equal to 8, NE returns TRUE, so NE_Output is TRUE.
💻 Command Output
advancedOutput of GT (greater than) instruction with negative numbers
Consider the GT instruction comparing two signed integers:
Value1 = -3
Value2 = -7
GT_Output = GT(Value1, Value2)
What is the value of GT_Output?
Value1 = -3
Value2 = -7
GT_Output = GT(Value1, Value2)
What is the value of GT_Output?
PLC Programming
Value1 = -3 Value2 = -7 GT_Output = (Value1 > Value2)
Attempts:
2 left
💡 Hint
Remember that -3 is greater than -7 on the number line.
✗ Incorrect
Since -3 is greater than -7, the GT instruction returns TRUE.
💻 Command Output
advancedLT (less than) instruction with equal values
What will the LT instruction output be when comparing two equal values?
Var1 = 12
Var2 = 12
LT_Output = LT(Var1, Var2)
Var1 = 12
Var2 = 12
LT_Output = LT(Var1, Var2)
PLC Programming
Var1 = 12 Var2 = 12 LT_Output = (Var1 < Var2)
Attempts:
2 left
💡 Hint
LT only returns TRUE if the first value is strictly less than the second.
✗ Incorrect
Since Var1 equals Var2, LT returns FALSE because 12 is not less than 12.
🧠 Conceptual
expertUnderstanding combined comparison instructions in PLC
In a PLC program, you want to check if a temperature value is between 20 and 30 degrees inclusive using comparison instructions EQ, NE, GT, and LT.
Which combination of instructions correctly implements this check?
Options:
Which combination of instructions correctly implements this check?
Options:
Attempts:
2 left
💡 Hint
Use GT and LT with values just outside the range to include boundaries.
✗ Incorrect
Since GE and LE instructions are not given, using GT(Temp, 19) and LT(Temp, 31) includes 20 and 30 because Temp > 19 means Temp >= 20 and Temp < 31 means Temp <= 30.
