RobotStudio event

Simulation work in the first loop only......

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

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

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

    Anyone know why?

    ievoi2011-04-26 07:55:55
  • 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..
  • 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.