Event table delay
G'day
I'm having problems trying to run a simulation to pick up a box when an output is high. In the event table, it attaches the box whenever do1=1.
I've watched th IO simulator, and the output is switched on at exactly the right time. However the event table doesn't trigger it's action instantly. It seems to wait anywhere between 0 and 1 second.
I got around it by putting a WaitTime in the program after the output is turned on. But I have to wait for a second to make sure I capture it, and this slows down the simulation WAY too much.
I've checked the resolution of the simulation, and that was at 0.02 seconds.
Thanks, hope someone can help,
Dave.
Comments
-
Hello Dave,
To get around the problem you have we suggest you do something like the following (a handshake):
In the eventtable:
do1=1 Set di1=1 di1=1 ->attach the box
In the program:
Set do1=1 Wait di1=1
This will not effect your simulation time, it will just secure your box is attached at the right time.
Hope this solves your problem.
Best regards
/Ulrika Mor?n
Support Engineer
0 -
Check also that you have zone = fine at the target where you pick the part, but that's as usual/Martin Lundh
Product manager
ABB Robotics0 -
Thanks Ulrika,
It nearly worked. Now it definitely picks the box up, but the whole simulation pauses while it checks the status of di1. (The simulation timer also pauses).
Any other ideas?
PS the zone is fine - thanks Martin.
0 -
Hello again,
What do you mean with/ include in Simulation Time?
Please have a look at this topic
Best regards
/Ulrika Mor?n
Support Engineer
Ulrika Mor?n38037,59450231480 -
Sorry Ulrika,
I'll try explain it it bit clearer...
Here's a chunk of my program:
MoveJ pickadown,vmax,fine,tool0WObj:=wobj0;
SetDO do1,1;
WaitDI di1,1;
MoveJ pickaup,vmax,z200,tool0WObj:=wobj0;In the event table, when do1=1, it sets di1=1, as well as attaching the box, as you suggested. This makes sure the box is definitely attached before moving, but watching the IO simulator, di1 takes a long time to turn on. This makes the robot pause as it's attaching the box.
Hope this make more sense,
Dave.
0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 314 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 794 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings