Skip to main content

Troubleshooting

Common Issues​

ProblemCauseSolution
Data shows UNAVAILABLESource disconnected or expression errorCheck connectivity; validate expressions
Double-counting partsMultiple rising edges per cycleAdd debounce or adjust the threshold
State not changingExpression always falseTest each condition independently
Wrong data typeString vs number mismatchUse explicit conversion functions — see Data Types

Debugging Tips​

  1. Start simple. Get basic connectivity working before adding transforms.
  2. Test incrementally. Add one variable at a time and verify its output before chaining the next operation.
  3. Check data mapping. Confirm transformed items are mapped correctly in Machine Settings.
  4. Use Diagnostics. View raw data items in the machine's Diagnostics tab to see exactly what the adapter is receiving.

YAML Syntax Problems​

Most script errors that are not logic errors are YAML errors. The YAML Guide covers the syntax in full, but these four account for most failures:

  • Indent with spaces, not tabs
  • Quote strings that contain a colon followed by a space
  • Boolean values are lowercase true / false
  • Comments start with #