Live workflow + PLC signals
Workflow follows PLC CommandOut and CommandIn only. PA3/NAU telemetry is unavailable; PCB LEDs show internal picked/wrong-tool threshold state.
Process flow
correct vs incorrect toolStep A auto-tares with blinking orange, then waits in white.
PLC Command 1 arms this holder and saves the allowed reference.
Strain changed while allowed. Holder waits for return.
incorrect → keep blinking blue
Correct return means strain comes back near the saved reference. Incorrect/wrong tool stays in wait-return branch until corrected, or Reset to Step A / Command 0 is sent.
Current command
backend —Quick controls
safe firstCommand 0 sends the holder to Step A. Command 1 starts the allowed/tare cycle. Pulse 1 sec sends Command 1 briefly and then returns to Command 0. Command 1 turns RevPi CommandOut on, sending 24 V to PCB PLC_IN. The PCB 24V_OUT is read back as CommandIn. Threshold buttons only work when Step A is verified: CommandOut=0 and CommandIn=0. They send 8/9/10 short pulses; PCB confirms +5% with orange, -5% with purple, and factory default with cyan.
Live strain / NAU7802
Graph refreshes about 5×/second and current weight uses a 2s trimmed average noise filter and snaps to the nearest saved calibration point when close enough. Use Tare with no weight, then add known weights and press Add calibration point. Current weight updates automatically from the fitted calibration.
Calibration tool
Use with no known weight/load. Saves current average raw count as zero.
calibration loading…
Calibration points
saved| weight g | raw | delta | |
|---|---|---|---|
| no points | |||
Firmware / PICKit 5
loading firmware list…
Flashing forces command 0 first, then uses PICKit 5 over UPDI. Pin 2=VDD sense, pin 3=GND, pin 4=UPDI/PA0.
Job output
liveno firmware job yet
Signal path
RevPi DIO → PCBCommandOut → PCB PLC_IN
24 V command signal
read as CommandIn
main.c state machine