CalWest ManufacturingRobotics Fontana, CA

Call or text (818) 397-4809

FANUC UOP signals and how a PLC starts a robot program

What each UOP input and output does on an R-30iB or R-30iB Plus controller, the conditions for remote operation, the three program selection methods, and a start sequence a PLC can follow.

FANUC UOP signals are the inputs and outputs a PLC uses to run a FANUC robot in automatic: enable it, pick a program, start it, pause it, reset faults and watch what it’s doing. They are the user operator panel signals, shown on the controller as UI and UO. This guide covers each signal, local and remote operation, PNS, RSR and STYLE program selection, and a start sequence a PLC can follow.

In short

A PLC starts a FANUC program through UOP signals. With the robot in AUTO, the pendant disabled and Remote selected, the PLC holds *IMSTP, *HOLD, *SFSPD and ENBL on and waits for CMDENBL. It writes the program number to PNS1 to PNS8, turns on PNSTROBE, checks the SNO echo when SNACK pulses, then pulses PROD_START. The program starts on the falling edge, and PROGRUN comes on.

This follows FANUC’s operator’s manual for R-30iB and R-30iB Plus controllers (Basic Function, B-83284EN). FANUC’s Tech Transfer series on remote starting notes that some of these settings and menus moved on the R-50iA, so check your controller’s manual.

What are FANUC UOP signals?

UOP signals have fixed jobs set by the system: UI[1] is always *IMSTP, UO[1] is always CMDENBL. What you choose is where they come from. Under MENU, 5 I/O, F1 TYPE, UOP, the F2 CONFIG screen assigns ranges of UI and UO to a rack, slot and start point, which might be a hard-wired I/O board or an EtherNet/IP connection to the PLC. A changed assignment shows PEND and takes effect after a power cycle.

FANUC has two layouts. Full assignment uses 18 inputs and 20 outputs and is the R-30iB default. Simple assignment uses 8 inputs and 4 outputs, frees the rest for general I/O, and only offers PNS for program selection. UI signals also have to be switched on: Enable UI signals, under MENU, 0 NEXT, 6 SYSTEM, F1 TYPE, Config, is TRUE as standard. Mapping UOP over a network is covered in our EtherNet/IP with Allen-Bradley guide.

FANUC UOP inputs (UI)

Signal Normal state What it does
UI[1] *IMSTP ON Off: alarm, servo power off, robot and program stop at once
UI[2] *HOLD ON Off: robot decelerates to a stop and the program pauses
UI[3] *SFSPD ON Off: decelerated stop, program stops, override drops to the fence value. Needed for remote
UI[4] CSTOPI OFF Ends the running program (when it finishes, by default) and clears queued RSR requests
UI[5] RESET OFF Clears alarms and turns servo power back on. Acts on the falling edge as standard
UI[6] START OFF Falling edge. Resumes a paused program; by default also starts the selected program from the cursor line
UI[7] HOME OFF No action of its own in the UOP list; a macro can be assigned to it
UI[8] ENBL ON Must be on to jog or start a program with motion. Turning it off halts a running program
UI[9] to UI[16] — RSR1 to RSR8, PNS1 to PNS8 or STYLE1 to STYLE8, depending on the selection method
UI[17] PNSTROBE OFF Reads PNS1 to PNS8 to select a program
UI[18] PROD_START OFF Falling edge. Starts the selected program from line 1

The asterisk marks the inputs that work by staying on, so a broken wire stops the robot instead of letting it run. *IMSTP, *HOLD, *SFSPD and CSTOPI work whether the robot is in local or remote. START, PROD_START and the selection inputs only work in remote.

The stop inputs are not the safety circuit

FANUC is direct about this. Its manual says *IMSTP is controlled by software and that the external emergency stop should be used for safety-critical processing. It says the same of *SFSPD, pointing to the controller’s safety fence signal for an immediate stop. The wiring for both circuits is in FANUC’s controller maintenance manual for R-30iB and R-30iB Plus (B-83195EN).

On a typical cell, the PLC drives the three stop inputs from its own stop logic, and the hard-wired stop circuits run separately: e-stops, gate interlocks and light curtains through a safety relay or safety PLC into the robot’s safety inputs, with Dual Check Safety on robots that have it. Our safety PLC programming page covers that side.

Never jumper, force, simulate or hold on from background logic a UOP stop input to get a cell running. When one drops, the cause is in the PLC program, the wiring or the network, and that’s where it gets fixed. A dropped *IMSTP posts an alarm, which our SRVO-037 guide traces step by step.

FANUC UOP outputs (UO)

Signal On when
UO[1] CMDENBL The robot will accept a start from the remote device (see below)
UO[2] SYSRDY Servo power is on
UO[3] PROGRUN A program is running; off while paused
UO[4] PAUSED A program is paused and waiting to resume
UO[5] HELD The HOLD button is pressed or *HOLD is off
UO[6] FAULT An alarm is active. Warnings don’t set it
UO[7] ATPERCH The robot is at reference position 1
UO[8] TPENBL The pendant’s enable switch is on
UO[9] BATALM A backup battery is low, in the controller or the pulsecoders
UO[10] BUSY A program is running or the pendant is processing
UO[11] to UO[18] ACK1 to ACK8 for RSR, or SNO1 to SNO8 for PNS and STYLE
UO[19] SNACK Pulses when a PNS (or STYLE) number is accepted

Local vs remote

A FANUC robot only takes a start from UOP in the remote state. FANUC’s remote conditions are:

  • The teach pendant enable switch is off.
  • The remote signal SI[2] is on. Remote/Local setup on the Config screen sets it: Remote, Local, or External I/O to follow an input.
  • *SFSPD and ENBL are on.
  • The system variable $RMT_MASTER is 0, peripheral equipment.

CMDENBL comes on when the remote conditions are met, the robot is ready (ENBL on, servo power on, no alarm) and the robot is in continuous mode, not single step. FANUC’s troubleshooting table adds the mode switch in AUTO. In local, programs are started from the operator panel instead.

PNS vs RSR vs STYLE

The method is chosen under MENU, 6 SETUP, F1 TYPE, Prog Select, Program select mode. After changing it, the controller has to be power cycled.

PNS RSR STYLE
Inputs Binary number on PNS1 to PNS8, read on PNSTROBE One input per program, RSR1 to RSR8 Binary number on STYLE1 to STYLE8
Program name PNS plus four digits: PNS number plus base number RSR plus four digits: registration number plus base number Any name, from a style table
Started by PROD_START The RSR input itself START or PROD_START
While another program runs Ignored Queued, run in order Ignored
Acknowledge SNO1 to SNO8 plus SNACK ACK1 to ACK8 pulse SNO and SNACK, off as standard

The four digits matter. With a base number of 100, PNS number 38 selects PNS0138, and FANUC’s manual warns that a program named PNS138 won’t run. STYLE avoids the naming rule, which helps when the program names mean something to the crew. A fourth mode, OTHER, selects a program named in a system variable. FANUC’s manual calls it a special-purpose function, and FANUC’s Tech Transfer series shows it set up to run a MAIN program.

How a PLC starts a FANUC program

A PNS start, step by step:

  1. Hold the robot enabled

    The PLC holds *IMSTP, *HOLD, *SFSPD and ENBL on whenever its own logic allows motion.

  2. Clear faults

    If FAULT is on, pulse RESET and wait for FAULT to go off and SYSRDY to come on. Then wait for CMDENBL.

  3. Select

    Write the program number to PNS1 to PNS8, then turn on PNSTROBE. The robot reads the inputs more than once to make sure they're stable.

  4. Confirm

    When SNACK pulses, compare SNO1 to SNO8 with the number sent. A mismatch means don't start.

  5. Start

    Turn PROD_START on for at least 100 ms, then off. The program starts on the falling edge and PROGRUN comes on.

  6. Run the cycle

    Part-present, clear-to-enter and cycle-done handshakes run on ordinary DI and DO, written into both programs.

Leave PNSTROBE on through the start if the Config setting PROD_START depend on PNSTROBE is TRUE; that setting exists to stop a stray PROD_START from running whatever is on the pendant screen.

To pause, the PLC drops *HOLD, and START resumes. To finish at the end of a cycle, CSTOPI ends the program once it completes. With CSTOPI for ABORT set TRUE, it ends the program immediately instead, and Abort all programs by CSTOPI extends that to every running task. With START for CONTINUE only set TRUE, START only resumes paused programs, keeping the split FANUC’s manual describes: PROD_START or RSR to start, START to resume.

Common reasons a PNS start fails

  • The program is named without four digits, PNS38 instead of PNS0038 with a base number of 0.
  • Program select mode was changed, or a UOP assignment still reads PEND, and the controller hasn’t been power cycled.
  • PROD_START is held on permanently. It acts on the falling edge, so it never starts anything.
  • The PLC sends a new number while a program is paused. PNS inputs are ignored while a program is running or paused, so abort or finish the paused one first.
  • The PLC sends 0. With full assignment that leaves no program selected.
  • Someone left the pendant enable switch on, which takes the robot out of remote.

Production checks on the Prog Select screen

The Prog Select screen can refuse a start or resume for: robot not at home, robot too far from where it paused, simulated I/O, general or program override under 100%, machine lock, single step, or a process not ready. Each check can prompt, post an error (SYST-011 Failed to run task and SYST-079 Startup check failed), or, for most of them, be forced. When CMDENBL is on but nothing starts, look here and at the alarm history detail for SYST-011. Our guide on why a FANUC robot won’t run in AUTO works through the rest.

Open control cabinet with an Allen-Bradley CompactLogix 5380 PLC and I/O cards on the left, a row of red Allen-Bradley Guardmaster safety relays beside them, breakers, power supplies and labeled wiring in white duct
Fig. 1A cell control panel built and wired in our shop: CompactLogix 5380 PLC and I/O on the left, red Guardmaster safety relays beside them. Program control and stop circuits live in separate hardware.

How we wire UOP on the cells we build

We write the robot program, the PLC program and the operator screens on our cells, so the UOP handshake and the cell handshake are set once and tested together, in our shop before shipping and again at commissioning. Our FANUC robot programming page covers the robot side, including robots we didn’t build. If yours won’t take a remote start, send us a photo of the UOP screen and the PLC’s view of the same bits.

Common questions

What is the difference between PNS and RSR on a FANUC robot?
PNS reads a binary program number on eight inputs when PNSTROBE comes on, echoes it back on SNO1 to SNO8 with a SNACK pulse, and starts the program when PROD_START drops. It only works with nothing running. RSR gives each of eight inputs its own program, starts it directly, and queues the request if another program is running. PNS suits a PLC that runs one program per cycle.
Why is CMDENBL off on my FANUC robot?
CMDENBL needs the remote conditions, the ready conditions and continuous mode. Check that the mode switch is in AUTO, the pendant enable switch is off, Remote/Local is set to remote, *SFSPD and ENBL are on, $RMT_MASTER is 0, no alarm is active, servo power is on (SYSRDY on), and step mode is off. FANUC's manual has this list as a table under Setting Automatic Operation.
Can I jumper *IMSTP, *HOLD and *SFSPD to get the robot running?
Don't. Those inputs are part of the cell's stop logic, and a jumper or forced signal hides whatever turned them off. Find out why the PLC or the wiring dropped the signal and fix it there. FANUC also says *IMSTP and *SFSPD are software signals and that safety-critical stops belong on the controller's external emergency stop and fence circuits.
Does a FANUC robot start on the rising or falling edge of START?
On the falling edge. FANUC's manual says START and PROD_START act when the signal turns off after being on, and its timing charts show the signal held on for at least 100 ms. Neither can be left on permanently. RSR inputs start their program on the rising edge, and RESET acts on the falling edge unless Detect FAULT_RESET signal is changed.
Do I need UOP to run a FANUC robot from a PLC over EtherNet/IP?
In most cells, yes. EtherNet/IP carries the signals, but the UOP assignment decides which network bits act as START, ENBL, PNS and the rest. The UOP inputs and outputs are mapped onto the EtherNet/IP rack on the robot's UOP configuration screen, and the PLC sees them as bits in its input and output words.

Sources

  1. FANUC America: Robot support and manuals (R-30iB/R-30iB Plus Operator's Manual, Basic Function, B-83284EN: 3.3 Peripheral I/O, 3.8 Setting Automatic Operation, 3.15 System Config Menu, 6.6 Automatic Operation, 9.14.5 Cycle Stop Signal; via the Customer Resource Center)
  2. FANUC Tech Transfer: How to Remote Start a Robot using the OTHER Method (series, including changes for R-50iA)

Start a project

Bring us the process. We'll bring the cell.

Send a phone video of the manual process, or a part drawing, by text or email. We come back with a cell concept and a plan: robot, tooling, controls and code.

Call or text
Call or text
(818) 397-4809
Email
sales@calwestmfg.com
Shop
13815 Arrow Rte, Fontana, CA 92335
Hours
Mon–Fri 7:00am – 3:45pm

FANUC Authorized System Integrator (ASI). Part of CalWest Manufacturing, founded 2012: AS9100D and ISO 9001 certified, ITAR registered.