01-29-2014 01:51 PM
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 ?
01-29-2014 02:07 PM
Does this anser your question?
http://forums.ni.com/t5/Motion-Control-and-Motor-Drives/Soft-Motion-Reset-Position/td-p/1820955
01-30-2014 10:00 AM
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
01-30-2014 11:15 AM
@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
01-30-2014 11:27 AM
Hi,
Here is my code.
Greets
01-30-2014 11:36 AM
02-03-2014 07:28 AM
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