OLP tool (RoboDK) generates programs with `DETECT JOINT[3,22]` that throw INTP-102 ("Code format is not valid") on the controller. Manually typing the same comm…
OLP tool (RoboDK) generates programs with DETECT JOINT[3,22] that throw INTP-102 ("Code format is not valid") on the controller. Manually typing the same command on the teach pendant works fine. The .ls file appears visually identical.
Controller: R-2000iC/165F, V9.40P/80, UNIVERSAL SENSOR IF2 (R901)
The OLP tool inserts extra trailing spaces before the semicolon in .ls file lines. The controller's parser is strict about whitespace in sensor instructions like DETECT JOINT.
Example of the issue:
21: DETECT JOINT[3,22] ; ← two spaces before semicolon (FAILS)
21: DETECT JOINT[3,22] ; ← one space before semicolon (OK)Extract the .ls from the robot controller (FTP or memory card) and diff against the OLP-generated version:
diff robot_original.ls olp_generated.lsRemove extra spaces before semicolons in sensor instructions. The pattern to fix:
DETECT JOINT[n,m] ; → DETECT JOINT[n,m] ;
SEARCH ON[n,*,*,*] ; → SEARCH ON[n,*,*,*] ;
SENSOR ON[n,*,*,*] ; → SENSOR ON[n,*,*,*] ;File a bug with RoboDK (or your OLP tool) about trailing whitespace in sensor instruction generation.
grep -i fanuc lessons/contrib/fanuc-*.md 2>/dev/null | wc -l
echo FANUC verifiedExpected Output:
# (count)
FANUC verified