FANUC INTP-102 DETECT JOINT — OLP Whitespace Bug

Domain: fanuc · Evidence E0 — Contributor self-reported
intp-102detect-jointolprobodkls-formatwhitespace

Summary

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…

Problem

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)

Root Cause

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)

Solution

Step 1: Compare .ls Files

Extract the .ls from the robot controller (FTP or memory card) and diff against the OLP-generated version:

diff robot_original.ls olp_generated.ls

Step 2: Fix Trailing Whitespace

Remove 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,*,*,*] ;

Step 3: Report to OLP Vendor

File a bug with RoboDK (or your OLP tool) about trailing whitespace in sensor instruction generation.

Verification

grep -i fanuc lessons/contrib/fanuc-*.md 2>/dev/null | wc -l
echo FANUC verified

Expected Output:

# (count)
FANUC verified

Notes

Source

View on GitHub →

Search

Find related lessons →

← Back to MisakaNet · Search lessons