Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.
We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.
Trap Routine
viktor
✭
Hello.
I would like to make a trap routine in my program. I will have a pulse generator and every pulse should call out the TRAP routine, for example it can be
TRAP
i=i+1;
RETURN;
ENTRAP
So, which is actually the highest possible frequency of reacting to TRAP routine, or to count pulses? Does it depend on the I/O card that I am using?
Thank you very much for your help
I would like to make a trap routine in my program. I will have a pulse generator and every pulse should call out the TRAP routine, for example it can be
TRAP
i=i+1;
RETURN;
ENTRAP
So, which is actually the highest possible frequency of reacting to TRAP routine, or to count pulses? Does it depend on the I/O card that I am using?
Thank you very much for your help
0
Comments
-
I don't think that is going to work very well, if you have anything more than a few Hz. I would think that the constant interrupts would either a) overrun the interrupt queue or b) affect motion control, or both. What are you trying to control or monitor? Can you convert the pulses to analog and then set up ranges where you would trigger? There is support for analog signal interrupts built-in to RAPID.Russell Drown0
-
Hello
Thank you very much for your reply. Well, I have an incremental encoder, that gives 360 pulses per revolution, the movement is very slow, so maybe 1 revolution per second. This is the precision that I need. So, I was thinking, whether it is possible to use an I/O card and count the pulses and calculate the speed with trap routine. I was wondering, if it would be possible without installing an additional encoder unit to IRC5.
Thank you very much in advance.
0
Categories
- All Categories
- 5.7K RobotStudio
- 402 UpFeed
- 21 Tutorials
- 16 RobotApps
- 307 PowerPacs
- 407 RobotStudio S4
- 1.8K Developer Tools
- 251 ScreenMaker
- 2.9K Robot Controller
- 368 IRC5
- 92 OmniCore
- 8 RCS (Realistic Controller Simulation)
- 859 RAPID Programming
- 43 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 111 Collaborative Robots
- 5 Job listings