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.
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).
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.