LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reset Position in Softmotion

Hi,

 

I make co-simulation with model of milling machine in Solidworks and I need help...

 

How to set Reset Position so that the blade from any point traveled to initial after I press Home Position button ? Should I use Reset Position block ?

 
Thanks in advance,
 
Bartek
0 Kudos
Message 1 of 7
(2,556 Views)

Does this anser your question?

 

http://forums.ni.com/t5/Motion-Control-and-Motor-Drives/Soft-Motion-Reset-Position/td-p/1820955

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 2 of 7
(2,547 Views)

Unfortunetly not...

 


My point is how to set the reference position to which I could return from any location with a single button ? At the beginning I thought of using the block Reset Position but it does not work or I am doing something wrong.

 

 

Greets

 

 

 

 

0 Kudos
Message 3 of 7
(2,512 Views)

@b.juszczyk wrote:

Hi,

 

I make co-simulation with model of milling machine in Solidworks and I need help...

 

How to set Reset Position so that the blade from any point traveled to initial after I press Home Position button ? Should I use Reset Position block ?

 
Thanks in advance,
 
Bartek

Can you show us the code? What are you doing programmatically when you hit your home button?

 

Ben64

0 Kudos
Message 4 of 7
(2,497 Views)

Hi,

Here is my code.

 

Greets

0 Kudos
Message 5 of 7
(2,494 Views)

First observation, it looks like you're passing an empty array to the Reset Position block. Also, I'm not sure but you are using different ressource names for the Reset function (coordinate space 1) and for the linear moves to go to 0 position (Axis1 and Axis2).

 

empty array.png

 

Ben64

0 Kudos
Message 6 of 7
(2,487 Views)

Dear b.juszczyk,

First of all let me welcome you on the NI forums,

 

 

You should definietly try out what ben64 suggested. The empty array you are passing on to the Reset Position block will not reset any Axis you specified. 

Also, please keep in mind that the Funcion Blocks you are using are asynchronous and would require a positive rising edge on the Execute input, by simply for example leaving it on true will still let in run only one time.

 

You can read more on the use of Function Blocks here:

http://zone.ni.com/reference/en-XX/help/371093K-01/mclvhowto/infoasyncprogramming/

 

Best regards,
Peter

Peter L.
National Instruments Hungary
Applications Engineer
0 Kudos
Message 7 of 7
(2,433 Views)