FANUC IO Marker M[] Instruction — Background Logic Alternative

Domain: fanuc · Evidence E0 — Contributor self-reported
markerm-registeriobackground-logichandling-toolvass

Summary

The M[] option appears in the I/O replace menu but is undocumented in standard TP programming guides. Users don't know what it does or when to use it.

Problem

The M[] option appears in the I/O replace menu but is undocumented in standard TP programming guides. Users don't know what it does or when to use it.

Root Cause

M[] is a Marker register — a background-logic-like flag system built into FANUC HandlingTool. It evaluates Boolean expressions continuously without BG Logic. Disabled by default: $MIX_LOGIC.$USE_MKR=FALSE.

Solution

Enable Markers

Set $MIX_LOGIC.$USE_MKR = TRUE

A new Marker option appears in MENU → I/O.

Usage

M[1] = (DI[1] AND DI[2])

This expression runs in the background continuously until cleared or overwritten. No BG Logic task needed.

VASS Standard Use Cases (VW/Audi/SEAT/Škoda)

Markers are used extensively in VASS (Volkswagen Automotive Standard) for:

CategoryExamples
DockingDocking Stand 1 Occupied/Empty, Tool 1 Docked/Undocked
HandlingClamp 1 Open/Close, Magnet 1 On/Off, Vacuum 1 Blow/Suck
Machine SafetyAir OK, Water OK, Spot Welding Gun OK

Used with TIMER BEFORE, POINT LOGIC (P-SPS), and TC ONLINE instructions.

Practical Example: Analog Sensor to Digital Input

-- Map analog sensor to marker for MH valve input
M[1] = (AI[1] > R[1])  -- R[1] = closed threshold per part type
-- Use M[1] as input in MH valve config instead of DI

This is useful when "closed" distance varies by part type — set threshold in R[1], MH valve config stays constant.

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