In this presentation, I introduce the FANUC TP Timer instruction and demonstrate how timers can be used in RoboGuide and real-world robot applications. The video focuses on timer configuration, programming techniques, practical examples, and common limitations.
Main Takeaways
1. FANUC Provides Built-In Program Timers
Program timers can be accessed through the robot controller and used to track elapsed time within TP programs. The number of available timers can be increased through a system variable, and each timer can be configured individually.
2. Local vs. Global Timers
Two timer modes are available:
- Local Timers run only while the program is executing and can only be controlled by the task that started them.
- Global Timers continue running independently of program execution and can be accessed by multiple tasks.
Understanding the difference is important when designing multi-task robot applications.
3. Core Timer Functions
The timer instruction supports four key operations:
- Start
- Stop
- Reset
- Read Timer Value
These commands form the foundation for most timer applications in TP programming.
4. Measuring Cycle Time
One of the most common uses of timers is cycle-time measurement. The video demonstrates how to start a timer before a robot operation, stop it when the operation completes, and store the elapsed time in a register for monitoring and analysis. This provides valuable data for improving robot performance and throughput.
5. Timers Are Retentive
A timer does not automatically reset when stopped. If restarted without a reset, it continues counting from its previous value. For accurate measurements, timers should be reset before starting a new timing cycle.
6. Timers Can Control Process Logic
Beyond cycle-time measurement, timers can be used to simulate process behavior. The video uses timers to model an infeed conveyor delivering cases at a fixed rate and to coordinate handshake signals between the conveyor and robot. This demonstrates how timers can support synchronization and throughput simulation.
7. Limitation: Timers Cannot Run in Background Logic
A key limitation discussed is that TP timer instructions are not supported in FANUC Background Logic. Attempting to use them generates a fault. A workaround is demonstrated using a continuously looping TP program executed with the RUN instruction.
8. Multiple Timers Can Simulate Real Production Conditions
Additional timers are used to model accumulation on upstream conveyors, creating a more realistic simulation of production flow and demonstrating how multiple timers can work together in advanced applications.
9. Introduction to Advanced Timing Methods
The presentation concludes by introducing two advanced alternatives that will be covered in Part 2:
- Fast Clock System Variable for high-resolution timing.
- KAREL Timer Functions for greater flexibility and advanced applications.
Final Summary
FANUC TP timers are a simple but powerful tool for measuring cycle times, synchronizing operations, simulating equipment behavior, and monitoring process performance. The most important concepts covered are the difference between local and global timers, the need to reset retentive timers, and the limitation that timer instructions cannot be used directly in Background Logic. For applications requiring higher precision or greater flexibility, Fast Clock system variables and KAREL timers provide advanced alternatives.
One-Sentence Takeaway:
Mastering FANUC timers gives robot programmers a practical and effective way to analyze cycle times, coordinate processes, and build more sophisticated automation solutions.