Industrial engineering
Controls package builder.
Run an inspection cell from the operator panel. Follow one part from pickup to pallet or reject, then compare the FANUC and ABB programs that move it.
Interactive workcell
Run a part through the cell.
Keep a faulty part off the pallet. Choose All faulty and press Run part. Use Next operation to follow the part from the gripper to the reject bin. Run a part Download project files
Robot at home.
Material cycle
Pass goes to the pallet. Fail goes to the reject bin.
- Phase
- Idle
- Part
- None
- Gripper
- Open
- Good · pallet
- 0
- Rejected · bin
- 0
Sorting something similar on your line? Discuss a sorting problem
Step pauses after each operation. Press Next operation to advance. Continuous keeps feeding parts until you stop it. Hold pauses the cycle and keeps a carried part in the jaws. Blockages are raised on the Alarms screen.
- ✓ Pass → Pallet
- ✕ Fail → Reject bin
- Parts arrive at Infeed
Manual positioning
Between material cycles
Robot handshake
PLC ⇄ robot registers, live
- Request GI[1]
- PLC asks for a route: 1 inspect · 2 pallet · 3 reject · 4 home · 5 infeed.
- 0
- Robot target GO[2]
- Station number the robot is moving toward.
- 0
- Robot busy DO[1]
- On while the robot works a request.
- Off
- At target DI[1]
- On when the arm has reached its target.
- Off
- Route reply GO[1]
- Robot echoes the route. The PLC clears its request on a match.
- 0
Live ladder
Power flows left to right to the coil. Use Slow monitor, or hold the cycle and Step scan. Networks 1–4 run the route handshake, 5–8 the material cycle.
- 01 · Latch requestSendClear pathIdleReq = 0MOVRoute → Req
- 02 · Clear requestReq ≠ 0Ack = ReqMOV0 → Req
- 03 · Count completionAcceptedClearIdleCTUCycles +1
- 04 · Motion enableClear pathBusyTarget dueOTEMotion
- 05 · Grip at pickupPick completeAt infeedPiece readyOTLGripCmd
- 06 · Inspect and routeInspect completePart heldMeasuredMOVSort route
- 07 · Release at destinationSort completeAt binPart heldOTUGripCmd
- 08 · Register sorted partReleaseJaws openPart clearCTUSorted
Scroll the list, or Tab into it and use ↑ ↓. Networks 1–4 route · 5–8 material.
Virtual I/O monitor
Read the same signals used by the ladder and the robot program. Word values identify the destination: 1 inspection, 2 pallet, 3 reject bin, 4 home, 5 infeed. A bit is on or off.
| Signal | Direction | Value |
|---|---|---|
GI[1] Requested route | PLC → robot | |
GO[2] Target register | Robot → model | |
DO[1] Robot busy | Robot → PLC | |
DI[1] At target | Model → robot | |
GO[1] Acknowledged route | Robot → PLC | |
TransferClear Transfer permitted | Model → PLC | |
MotionEnable Joint motion enabled | PLC → model | |
GripCmd Close gripper | PLC → gripper | |
GripClosed Jaws closed | Gripper → PLC | |
GripOpen Jaws open | Gripper → PLC | |
PartHeld Part held in jaws | Gripper → PLC | |
InspectionPass Inspection passed | Inspection → PLC |
Transfer obstruction
Block the virtual transfer to interrupt a cycle, even with a part in the gripper. Acknowledge the alarm, clear the obstruction and reset the alarm. A held command resumes only when you choose Resume.
- Cause
- Clear
- Alarm state
- Normal
Alarm history
- No alarm events yet.
Robot program and event history
Event history
The latest 80 events remain here until the page closes or reloads. Each entry shows the order and local time.
- Ready at home.
FANUC LS
The highlighted line runs in the browser. Its joint move selects a virtual position register: PR[1] inspection, PR[2] pallet, PR[3] reject, PR[4] home or PR[5] infeed. The original diagram uses illustrative geometry and timing.
- 01
! +----------------------------+ - 02
! | BBB W W BENCHWORK | - 03
! | B B W W SOFTWARE | - 04
! | BBB W W W TRANSFER | - 05
! | B B WW WW CELL | - 06
! | BBB W W BWSTUDY | - 07
! +----------------------------+ - 08
- 09
! PLC owns grip and inspection - 10
! PR 1 Inspect / 2 Pallet - 11
! PR 3 Reject / 4 Home - 12
! PR 5 Infeed pickup - 13
- 14
LBL[1] - 15
! Accept one PLC route word - 16
WAIT (GI[1]<>0) - 17
R[1]=GI[1] - 18
DO[1]=ON - 19
GO[2]=R[1] - 20
- 21
! Move to the requested station - 22
J PR[R[1]] 20% FINE - 23
WAIT DI[1]=ON - 24
- 25
! Return this route to the PLC - 26
GO[1]=R[1] - 27
WAIT (GI[1]=0) - 28
- 29
! Clear target before busy drops - 30
GO[2]=0 - 31
WAIT DI[1]=OFF - 32
GO[1]=0 - 33
DO[1]=OFF - 34
- 35
JMP LBL[1]
Controller and robot program files
Open the PLC project, read either robot program and trace the signals between them.
Rockwell controller
Open the project in Studio 5000 Logix Designer or inspect the ladder in the XML export.
Robot programs
Read either file in a text editor, then follow its active instruction in the operator terminal.
Robot EtherNet/IP device files and signal map
Adapter device descriptions
PLC and robot I/O
Each adapter exchanges eight bytes in each direction. The map identifies the route words, busy bit and arrival signal used by the controller logic.
Robot I/O mapPLC bytes, FANUC bits and ABB signals · CSVRobot I/O workbookFilterable signal register · ExcelRoutine list and how to use these files
Controller routines
- P10_Cell
Commands (36), Diagnostics (9), Handshake (16), MainRoutine (4), Sequence (20) - P20_Model
GripInspect (11), MainRoutine (2), RobotSim (16) - P30_RobotIO
MainRoutine (2), ReadImages (12), WriteImages (14)
Steps
- Open BW_SortCell.ACD in the listed Logix Designer version. The L5X contains the same controller and its rung comments.
- For the onboard model, use SourceSelect = 0 and SampleMode = 2 for alternating good and reject parts. Follow the Cell_100ms task in scan order.
- In a running offline simulation, leave OpContinuous at 0 and pulse OpRun for each operation. For consecutive parts, set OpContinuous to 1 and pulse OpRun. Pulse OpStopAfter to finish the current part.
- Trace RobotRequest from pickup to inspection and sorting. The PLC holds GripCmd until the part reaches its destination and counts the part after release feedback.
- Both robot modules start inhibited. The EDS files describe the adapters. The signal map shows how four 16-bit words in each direction carry the request, target, busy, arrival and reply.
Station package builder
- BOM device
- VI-21 · Inspection camera
- Generated PLC tag
InspectionOK- HMI indicator
- Quality / Inspection passed
- Virtual robot interface
- GI[1] / GO[1]
Open the generated PLC program
PROGRAM StationReview
VAR
PartPresent, InspectionOK, StartReview : BOOL;
LastStart : BOOL;
RequestWord, RobotAck, LastRoute, Stage : INT;
END_VAR
(* Inputs and words are symbolic simulator values. Stage 0/10/20 = ready/wait/clear. *)
CASE Stage OF
0: IF StartReview AND NOT LastStart AND PartPresent AND RobotAck = 0 THEN
IF InspectionOK THEN RequestWord := 10; ELSE RequestWord := 20; END_IF;
Stage := 10;
END_IF;
10: IF RobotAck = RequestWord THEN
LastRoute := RobotAck;
RequestWord := 0;
Stage := 20;
END_IF;
20: IF RobotAck = 0 THEN Stage := 0; END_IF;
END_CASE;
LastStart := StartReview;
END_PROGRAM
Inspect FANUC LS source · BWROUTE.LS
/PROG BWROUTE /ATTR OWNER = MNEDITOR; COMMENT = "Route word review"; PROG_SIZE = 0; DEFAULT_GROUP = *,*,*,*,*; /MN 1: R[90]=GI[1] ; 2: IF R[90]=10,JMP LBL[1] ; 3: IF R[90]=20,JMP LBL[1] ; 4: GO[1]=0 ; 5: JMP LBL[2] ; 6: LBL[1] ; 7: GO[1]=R[90] ; 8: LBL[2] ; /POS /END
Inspect all seven HMI bindings
- Part at station
- Overview /
PartPresent - Inspection passed
- Quality /
InspectionOK - Review request
- Overview /
StartReview - Route requested
- Robot /
RequestWord - Route acknowledged
- Robot /
RobotAck - Last route
- Overview /
LastRoute - Sequence stage
- Overview /
Stage
- BOM device
- VI-21 · Inspection camera
- Generated PLC tag
InspectionOK- HMI indicator
- Quality / Inspection passed
- Virtual robot interface
- giRouteRequest / goRouteAck
Open the generated PLC program
PROGRAM StationReview
VAR
PartPresent, InspectionOK, StartReview : BOOL;
LastStart : BOOL;
RequestWord, RobotAck, LastRoute, Stage : INT;
END_VAR
(* Inputs and words are symbolic simulator values. Stage 0/10/20 = ready/wait/clear. *)
CASE Stage OF
0: IF StartReview AND NOT LastStart AND PartPresent AND RobotAck = 0 THEN
IF InspectionOK THEN RequestWord := 10; ELSE RequestWord := 20; END_IF;
Stage := 10;
END_IF;
10: IF RobotAck = RequestWord THEN
LastRoute := RobotAck;
RequestWord := 0;
Stage := 20;
END_IF;
20: IF RobotAck = 0 THEN Stage := 0; END_IF;
END_CASE;
LastStart := StartReview;
END_PROGRAM
Inspect ABB RAPID source · RouteReview.mod
MODULE RouteReview
! Configure giRouteRequest and goRouteAck as virtual group signals.
PROC ReviewOnce()
VAR num job;
job := GInput(giRouteRequest);
IF job = 10 OR job = 20 THEN
SetGO goRouteAck, job;
ELSE
SetGO goRouteAck, 0;
ENDIF
ENDPROC
ENDMODULE
Inspect all seven HMI bindings
- Part at station
- Overview /
PartPresent - Inspection passed
- Quality /
InspectionOK - Review request
- Overview /
StartReview - Route requested
- Robot /
RequestWord - Route acknowledged
- Robot /
RobotAck - Last route
- Overview /
LastRoute - Sequence stage
- Overview /
Stage
- BOM device
- VS-42 · Label reader
- Generated PLC tag
LabelOK- HMI indicator
- Quality / Label verified
- Virtual robot interface
- GI[1] / GO[1]
Open the generated PLC program
PROGRAM StationReview
VAR
PartPresent, LabelOK, StartReview : BOOL;
LastStart : BOOL;
RequestWord, RobotAck, LastRoute, Stage : INT;
END_VAR
(* Inputs and words are symbolic simulator values. Stage 0/10/20 = ready/wait/clear. *)
CASE Stage OF
0: IF StartReview AND NOT LastStart AND PartPresent AND RobotAck = 0 THEN
IF LabelOK THEN RequestWord := 10; ELSE RequestWord := 20; END_IF;
Stage := 10;
END_IF;
10: IF RobotAck = RequestWord THEN
LastRoute := RobotAck;
RequestWord := 0;
Stage := 20;
END_IF;
20: IF RobotAck = 0 THEN Stage := 0; END_IF;
END_CASE;
LastStart := StartReview;
END_PROGRAM
Inspect FANUC LS source · BWROUTE.LS
/PROG BWROUTE /ATTR OWNER = MNEDITOR; COMMENT = "Route word review"; PROG_SIZE = 0; DEFAULT_GROUP = *,*,*,*,*; /MN 1: R[90]=GI[1] ; 2: IF R[90]=10,JMP LBL[1] ; 3: IF R[90]=20,JMP LBL[1] ; 4: GO[1]=0 ; 5: JMP LBL[2] ; 6: LBL[1] ; 7: GO[1]=R[90] ; 8: LBL[2] ; /POS /END
Inspect all seven HMI bindings
- Part at station
- Overview /
PartPresent - Label verified
- Quality /
LabelOK - Review request
- Overview /
StartReview - Route requested
- Robot /
RequestWord - Route acknowledged
- Robot /
RobotAck - Last route
- Overview /
LastRoute - Sequence stage
- Overview /
Stage
- BOM device
- VS-42 · Label reader
- Generated PLC tag
LabelOK- HMI indicator
- Quality / Label verified
- Virtual robot interface
- giRouteRequest / goRouteAck
Open the generated PLC program
PROGRAM StationReview
VAR
PartPresent, LabelOK, StartReview : BOOL;
LastStart : BOOL;
RequestWord, RobotAck, LastRoute, Stage : INT;
END_VAR
(* Inputs and words are symbolic simulator values. Stage 0/10/20 = ready/wait/clear. *)
CASE Stage OF
0: IF StartReview AND NOT LastStart AND PartPresent AND RobotAck = 0 THEN
IF LabelOK THEN RequestWord := 10; ELSE RequestWord := 20; END_IF;
Stage := 10;
END_IF;
10: IF RobotAck = RequestWord THEN
LastRoute := RobotAck;
RequestWord := 0;
Stage := 20;
END_IF;
20: IF RobotAck = 0 THEN Stage := 0; END_IF;
END_CASE;
LastStart := StartReview;
END_PROGRAM
Inspect ABB RAPID source · RouteReview.mod
MODULE RouteReview
! Configure giRouteRequest and goRouteAck as virtual group signals.
PROC ReviewOnce()
VAR num job;
job := GInput(giRouteRequest);
IF job = 10 OR job = 20 THEN
SetGO goRouteAck, job;
ELSE
SetGO goRouteAck, 0;
ENDIF
ENDPROC
ENDMODULE
Inspect all seven HMI bindings
- Part at station
- Overview /
PartPresent - Label verified
- Quality /
LabelOK - Review request
- Overview /
StartReview - Route requested
- Robot /
RequestWord - Route acknowledged
- Robot /
RobotAck - Last route
- Overview /
LastRoute - Sequence stage
- Overview /
Stage