04-02-2019 09:24 AM
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.
Thanks for any help.
04-02-2019 10:15 AM
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.
04-08-2019 07:53 AM
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.