Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Home switch control during simulation

Hello,

I am trying to control Softmotion simulated axis and I am struggling to work with Find home express VI. I have found a nice example project called Reference Move - Home and index. My problem is, that I am not able to manually control state of home switch. 

 

I have tried invoke node - axis interface - write data. But with negative result. (Also, I found out, I have to wire all of the inputs of the invoke node but I only need to control the Limits/Home status.) I have enabled the home switch in axis properties and set it to simulated. 

image.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Thanks for any help.

0 Kudos
Message 1 of 3
(2,218 Views)

I just found out that the invoke node has following error, but it does not help me to solve the problem 

 

Error -77051 occurred at Invoke Node in Reference Move - Home and Index.vi

Possible reason(s):

NI SoftMotion: The specified array size is incorrect. For Write or Set operations the size must be equal to the required size. For Read or Get operations the size must be greater than or equal to the required size. The required size is the number of axes or other items you are reading data from or writing data to.

0 Kudos
Message 2 of 3
(2,203 Views)

This will be difficult to simulate unfortunately. The Simulated axis does not give you control of the home switch state, and the Axis: Write Data method is only for use with the Unbound axis (which is why that is erroring). There are a few deprecated Unbound axis examples that you can work with to achieve this behavior, but it is a legacy axis type that was originally used for extension to other hardware and software.

0 Kudos
Message 3 of 3
(2,153 Views)