Rc7 Script -

10: // Move down and pick bArmDown := TRUE; fbPickTimer(IN := TRUE, PT := T#500ms); IF fbPickTimer.Q THEN bGripperVacuum := TRUE; fbPickTimer(IN := FALSE); nState := 20; END_IF

rPercent := (rRaw - 0.0) / (10.0 - 0.0); // Normalize F_ScaleInput := REAL_TO_INT(rMin + (rMax - rMin) * rPercent); END_FUNCTION rc7 script

If your data contains a pipe | character, the RC7 parser will split it incorrectly. Escape with backtick: `| or use alternate delimiter |DELIM=; at the script’s top. 10: // Move down and pick bArmDown :=