Equal EQU
Passes power while A equals B.
EQU
AGlobal.Speed0BGlobal.Zero0
| Tag | After two scans |
|---|---|
| Speed | 0 |
| Zero | 0 |
How it works
Passes power while A equals B. Numbers must match exactly. Text is compared character for character, with the shorter text padded with NUL.
How it's used
Use EQU to act on one value of a number, such as a step number or a recipe.
EQU
AGlobal.State2B2
Global.FillingOTE
EQU
AGlobal.State2B3
Global.MixingOTE
| Tag | Value |
|---|---|
| State | 2 |
| Filling | 1 |
| Mixing | 0 |
State is 2, so only Filling is on.
Operands
| Operand | Data type | Read or write |
|---|---|---|
| A | DINT, REAL, STRING, CHAR or a number | Reads |
| B | DINT, REAL, STRING, CHAR or a number | Reads |
Common mistakes
- Comparing REAL valuesNumbers must match exactly. 2.9999 is not 3. Use LIM for a REAL that is close enough.
Learn it in a lesson
- Comparing valuesIntermediate · 25 min