Syncing robot cycles with PLC I/O signals requires mapping inputs to program logic and using external triggers. This guide covers the technical steps to align motion with external control, including prerequisites, numbered steps, common mistakes, and a final verification.
- Map PLC I/O tags to the robot controller's external input registers before writing program logic.
- Use external trigger signals to start robot cycles only when the PLC confirms the environment is safe and ready.
- Verify timing by monitoring the teach pendant during a dry run to catch phase errors.
- Check the pre-commissioning interlock checklist to ensure safety relays and E-stops are wired correctly.
- A final verification run with the PLC active confirms that the robot stops when the PLC sends a stop signal.
Prerequisites: What You Need Before You Start
You need a robot controller with external I/O access, a PLC with mapped input and output tags, and a teach pendant. The robot must be in a safe state with the E-stop released and the safety circuit active. Do not start moving the robot until the PLC interlock logic is verified.
Before writing code, confirm the physical wiring. Check that the PLC outputs that trigger the robot are connected to the correct external input terminals on the robot controller. The teach pendant will show the digital input states as ON or OFF. If the wiring is reversed or the PLC output is dead, the robot will not respond to the trigger.
Review the robot controller manual for the specific I/O register addresses. These are not universal. Different controller families use different addresses for external triggers and digital inputs. Note the address for the cycle start signal and the address for the cycle complete signal. Also note the address for any safety stop input that the PLC monitors.
Step 1: Define the PLC I/O Map
Create a table that maps each PLC tag to a robot controller I/O address. The PLC tag for the cycle start command goes to the robot external input 1. The PLC tag for the cycle complete feedback goes to the robot external output 1. The safety stop state from the PLC goes to the robot external input 2.
This map prevents mismatches during programming. If the PLC sends the start command to the wrong tag, the robot will ignore it or start an unintended cycle. The map also helps when you hand the project to another engineer later.
Keep the map simple. Use clear names. Do not use generic names like IN1 or OUT1. Use names that reflect the function, such as CYCLE_START or CYCLE_DONE. This makes the code easier to read and debug.
Step 2: Configure the Robot Controller I/O
Access the I/O configuration in the robot controller software. Enter the I/O addresses from your map. Set the external input 1 as the cycle start trigger. Set the external output 1 as the cycle complete feedback. Set the external input 2 as the safety stop input.
Some controllers require you to define the signal type. Set the inputs as rising edge triggers. This means the robot starts only when the signal changes from OFF to ON. A falling edge trigger would start the robot when the signal turns off, which is usually not what you want for a cycle start.
Save the configuration. Do not power cycle the robot yet. The next step is to write the program logic.
Step 3: Write the Robot Program Logic
Open the program in the teach pendant or the robot controller software. Create a new program block. Add a wait instruction that monitors the external input 1. The wait instruction pauses the program until the input is ON.
After the wait instruction, add the motion instructions. These are the moves that make up the robot cycle. After the motion, add an instruction that sets the external output 1 to ON. This tells the PLC that the cycle is complete.
Add another wait instruction that monitors the external input 1 again. This waits for the PLC to reset the start signal before the cycle repeats. This creates a closed loop between the PLC and the robot.
Step 4: Add Safety and Interlock Checks
Insert a safety check before the motion block. If the external input 2, which carries the safety stop state, is not in the safe condition, the program stops immediately. Do not continue to the motion.
This check protects the robot and the people around it. The PLC should drive this input based on the safety relay status. If the safety relay drops, the PLC sets the input to the unsafe state, and the robot stops.
Do not rely on the PLC logic alone for safety. The robot controller should have its own safety circuit. The PLC logic is for process control. The safety circuit is for emergency stops and door switches.
Step 5: Test the PLC Signals in Isolation
Power on the PLC. Do not power on the robot yet. Use the PLC HMI or a programming tool to test each output. Turn on the cycle start output. Check the teach pendant to see if the external input 1 is now ON. Turn it off. Check if the input is OFF.
Repeat this for the safety stop input. Turn on the unsafe state. Check if the robot controller registers it. Turn it off. Check if it returns to the safe state.
If the robot does not see the signals, the wiring is wrong or the I/O configuration is incorrect. Fix the wiring or the configuration before moving to the next step.
Step 6: Run a Dry Run with the Robot
Release the E-stops. Enable the robot in jog mode. Do not run the full program yet. Use the teach pendant to jog the robot to the start position. Then, use the PLC to send the cycle start signal.
Watch the robot. It should start the program. Watch the teach pendant screen. The external input 1 should show ON. The robot should execute the motion. The external output 1 should turn ON when the cycle ends. The PLC should reset the start signal. The robot should wait for the next trigger.
If the robot does not start, check the PLC output. If it does start but does not stop, check the safety input. If it stops at the wrong time, check the motion logic.
Step 7: Verify Cycle Timing and Synchronization
Run the program in auto mode. Do not intervene. Watch the robot and the PLC HMI at the same time. The robot should start exactly when the PLC sends the trigger. The robot should stop exactly when the PLC sends the stop signal.
Measure the cycle time. The PLC should record the time from the start trigger to the cycle complete feedback. Compare this to the robot program cycle time. They should match within a small tolerance.
If the times do not match, there is a delay in the signal or the program logic. Check the PLC scan time. Check the robot controller polling rate. Check the wiring for resistance or noise.
Common Mistakes to Avoid
One mistake is mapping the cycle start signal to a falling edge trigger. The robot starts when the signal turns off, not when it turns on. This causes unpredictable behavior.
Another mistake is forgetting to reset the cycle complete output. The PLC waits for the feedback to turn off before it can send the next start signal. If the robot leaves the output ON, the PLC never sends the next trigger. The cycle stalls.
A third mistake is skipping the safety check. The robot runs even when the safety relay is dropped. This is a serious hazard. Always include the safety input check in the program.
A fourth mistake is not checking the I/O map. The PLC and robot use different tag names. A mismatch between the two systems causes no start or wrong start.
Final Verification Step
Run a full production cycle with the PLC active. Do not touch the teach pendant. Let the PLC run the cycle start and stop signals. The robot should complete the cycle without intervention. Check the PLC log for errors. Check the robot controller log for faults.
Observe the robot for ten full cycles. Watch for any drift in timing. Watch for any missed triggers. If everything is stable, the integration is complete. Document the I/O map and the test results. Store the program backup.
The integration is not just about the robot moving. It is about the robot moving in sync with the PLC. The PLC controls the process. The robot executes the motion. When both are synchronized, the line runs predictably and safely.
Frequently asked questions
What if the robot does not start when the PLC sends the signal?
Check the wiring between the PLC and the robot controller. Verify the I/O address in the robot configuration. Confirm the PLC output is actually turning on.
How do I know if the safety input is working?
Trigger the safety stop on the PLC. The robot should stop immediately. Check the teach pendant to see if the safety input changed state.
Can I use the teach pendant to test the PLC signals?
Yes. The teach pendant displays the digital input and output states. You can watch the state change when you toggle the PLC outputs.
What if the cycle time is off by a few hundred milliseconds?
This is usually due to PLC scan time or robot controller polling. Adjust the PLC scan time or the robot controller I/O polling rate to reduce the delay.
Do I need a separate safety circuit?
Yes. The PLC logic is for process control. The robot controller has a dedicated safety circuit for E-stops and door switches. Do not rely on the PLC for safety stops.



