Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

problemas con softmotion al momento de querer reiniciar la simulacion

 Busco quien me pueda ayudar para entender el problema que tengo con SoftMotion y Solidworks,

Cuando ejecuto la simulación Solidworks realiza perfectamente los movimientos deseados, pero una vez que desactivo el VI para hacer ajustes

y cambiar datos de posición de mi robot y quiero volver a iniciar con el robot inicia automáticamente su movimiento sin ni siquiera aun ejecutarse el VI el donde se contienen las posiciones a desplazarse, después de ahí se producen errores y tengo que siempre reiniciar Labview para que dicha simulación se ejecute adecuadamente, pareciera que solo puedo ejecutar correctamente el robot en el primer intento

 

i'm looking for help in an issue related to SoftMotion and Solidworks

 

usually the simulation works pretty fine just on the first try but once i want to re-start  with new position data SolidWorks does crazy things such go to the last position it was conducted, then usually i get all kind of errors on drivers mostly, so if i want to execute this simulation again i basically need to re-start Labview, in other words  my simulation is just working fine on the first communication between SolidWorks and Labview, if i want to change something on my front panel and the restart i get all kind of issues.

 

Espero alguien me pueda ayudar, lo agradezco anticipadamente

Thanks in advance

Javier Sobarzo

Motion Engineer.

 

0 Kudos
Message 1 of 8
(6,950 Views)

Hola Javier32.

 

Me quedan algunas dudas con respecto a tu problema, pero por lo que entendí corres la simulación en Solidworks, después únicamente detienes el VI, cambias valores y vuelves a correr el VI.

 

Lo que puede estar pasando es que nunca detienes la simulación en sí, solamente cortas la comunicación con LabVIEW, por lo que en cuanto le das deploy al proyecto la simulación intenta iniciarse una vez más (antes de que corra el VI). Te dejo una liga donde explica como inicias y detienes la simulación de solidworks: http://zone.ni.com/reference/en-XX/help/371093G-01/mclvhowto/howtosolidworksstartsimulation/. Esta información también la puedes localizar en la ayuda de SoftMotion.

 

Si esto no resuelve tu problema podrías poner los códigos de error que te arroja, y en qué momento los arroja?

 

 

Saludos

Aldo H
Ingenieria de Aplicaciones
Message 2 of 8
(6,943 Views)

Hola Aldo:

 

voy a ponerte toda la secuencia de como ocurre el error, pero si es relacionado precisamente a cuando corto la simulacion, sigo los pasos que tu me mencionaste y sigo teniendo el mismo problema, en cuanto tenga la informacion la voy a subir.

 

Gracias!

Javier

0 Kudos
Message 3 of 8
(6,923 Views)

Aldo:

 

Te describo a manera de secuencia de eventos el problema que tengo:

 

1.- en la versión mas nueva de softmotion no solo es necesario hacer "deploy"para iniciar la simulación, como sabemos por default se va a modo Active pero también es necesario dar click botón derecho sobre el ensamble de Solidworks en el proyecto para dar click a "Start Simulation"  

 

2.- una vez que se le ha dado click a Start Simulation es posible ya correr el VI, 

 

3.- una vez que lo corro y ejecuta toda la operación de movimiento le doy stop al VI.

 

4.- Vuelvo al proyecto y según el manual más nuevo de softmotion dice que es necesario dar click a "Stop Simulation"lo cual lo hago para después pasar a modo configuración, lo he intentando también yendo directamente a modo configuración sin darle Stop simulation pero en ambos casos cuando inicio de nuevo la simulación automáticamente Solidworks hace movimientos anormales y de ahí se mandan errores en los ejes como son, el error FF82 y una vez que limpio dicho error suele aparecer el error -70228.

 

5.- Pensaba si esto tenía que ver con el método Relative o Absolute, no me queda claro porque al iniciar la simulación de nueva cuenta solidworks no se queda en la posición y espera los datos del VI, SIMPLEMENTE empieza a moverse sin aun ejecutarse dicho VI.

 

6.- Para poder volver a correr la simulación siempre tengo que volver a iniciar Labview.

 

Gracias por tu ayuda!

 

Javier

0 Kudos
Message 4 of 8
(6,908 Views)

Hi Javier,

 

Is the problem you're seeing that after running a simulation once and then stopping it, upon restarting the simulation, the axes start in one position and then immediately jump to another position? If so, I may have a solution for you. If not, can you explain your problem again?

 

Thanks,

0 Kudos
Message 5 of 8
(6,892 Views)

Paul

 

what you are describing is exactly my problem, upon restarting the simulation the axes jump to another position inmediatly. usually the axes do crazy stuffs

 

thanks and Regards!

Javier

 

 

0 Kudos
Message 6 of 8
(6,889 Views)

Hi Javier,

 

The reason why this is happening is because the SolidWorks model wants to start the simulation at the 'keyed' position (this is the position of the model when you first open it). However, after making a move, SoftMotion has an internal offset that is different from the 'keyed' position. When you stop and restart the simulation, SolidWorks tries to start at the 'keyed' position, but SoftMotion immediately overwrites this position, which causes the jump. Unfortunately, I haven't been able to find a way to clear this internal SoftMotion offset. There are two ways to clear the offset on an RT target, but neither of these methods work on Windows and therefore I have to find another way. I will let you know when I have an update.

 

Thanks,

0 Kudos
Message 7 of 8
(6,881 Views)

OK, your help is well apreciated, i was just wondering if the rest of the people using this module has been dealing with the same problem? so for instance in your case do you normallly just execute once and then re-start the software?

 

Thanks

Javier

 

 

0 Kudos
Message 8 of 8
(6,875 Views)