Simulation work in the first loop only......
ievoi
✭
in RobotStudio
The idea of my simulation is to use to the triangular clamp to pick up number of balls and then place it in the stand (can hold up to six balls).
I was able to opening and closing of the clamp was working fine in the simulation (by just setting the corresponding signal to open and closing it in the MAIN). However, when I try to put it in a PROC and run it multiple times, the clamp would only open on the first time.
I am just wondering what causes this problem and if there is any way to get around it other than putting everything in the MAIN?
Thanks
0
Comments
-
if you have used set-reset.. check if its reset properly in you PROC's..
Do not fear to be eccentric in opinion, for every opinion now accepted was once eccentric..0 -
Not sure what you meant by set-reset, but I used SETDO clamp, 1; or SETDO clamp, 0; for the opening or closing of the clamp.0
-
okay.. try checking onto the status of your digital IO "clamp"in the "IO simulator" in the "simulation" tab while running your program.. if it stays 1... there's some problem with the program.. try using "Set clamp / Reset clamp" instead of "SETDO clamp, 1; or SETDO clamp, 0".
Regards-
ER
Do not fear to be eccentric in opinion, for every opinion now accepted was once eccentric..0 -
I tried using both set/reset and SETDO 1/0, I observed that the signal from IO simulator changes, but the clamp itself isn't showing the opening/closing.Also, not sure if this would help. But when I try clicking the output signal manually on the IO simulator, the clamp does response to the signal and open/close.0
-
try resetting the signal in main before you enter the procedure ..
Do not fear to be eccentric in opinion, for every opinion now accepted was once eccentric..0 -
Thanks for your advice megatool, so I am now using SET/RESET instead and I had to invert the signals so that signal is RESET at the end of the PROC and for some odd reason this works, i.e. SET=close and RESET=open.... very strange...ievoi2011-04-26 07:55:55Anyone know why?0 -
guess some VC problem, or multiple values for the same DO at an instance..
Do not fear to be eccentric in opinion, for every opinion now accepted was once eccentric..0 -
Now that the problem with opening and closing of the clamp is fixed, I am having another problem with binding to child parts. For some reason whenever it is going to grab the balls that are created from "source" it gives me an error:"Property Binding failed to set 'Child' (Value is not allowed)"However, it doesn't seem to have problem grabbing the ones that I created manually through "Modelling". Also, the signals between the clamp and ball are passed on through dynamic property, so I don't understand what is causing this problem.0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 310 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 786 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings