Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I disable a limit switch using SoftMotion function blocks?

My application is very simple and I am using the SoftMotion function blocks.

It is possible for my system to start outside the limit switches. So if the systems starts moving forward, I could find the reverse limit first. I have a sensor that can tell me if I am beyond a limit switch.

 

I want to disable the reverse limit, so I can move forward until I find the forward limit switch. Then I would enable the reverse limit. And finally I will use the SoftMotion find center block.

 

I haven't found a way to disable the limit switches using SoftMotion block. Is this possible?

 

Thanks,

Fabiola 

For an opportunity to learn from experienced developers / entrepeneurs (Steve, Joerg, and Brian amongst them):
Check out DSH Pragmatic Software Development Workshop!

DQMH Lead Architect * DQMH Trusted Advisor * Certified LabVIEW Architect * Certified LabVIEW Embedded Developer * Certified Professional Instructor * LabVIEW Champion * Code Janitor

Have you been nice to future you?
0 Kudos
Message 1 of 5
(4,395 Views)

Fabiola,

 

you can set all axis properties by connecting a property node to the axis resource. 

 

Axis Properties.png

I hope this helps,

Jochen

0 Kudos
Message 2 of 5
(4,388 Views)

Jochen,

 

Unfortunately these properties are currently read-only and should really only be used with Axis Interface mode.

 

There is not a supported way to disable limits or other settings programatically yet.

 

Marc

0 Kudos
Message 3 of 5
(4,376 Views)

Oops, I'm sorry for this misinformation. I was not aware of the fact, that these properties are read only.

 

Jochen

0 Kudos
Message 4 of 5
(4,359 Views)

Fabiola,

 

You can start outside the limit switches and move to inside the limit switch - however when the rising edge of any limit signal is encountered, motion will stop. So you will be required to start motion again. You are always allowed to move in the opposite direction of an active limit switch. So if you were on the negative side of a reverse limit (outside the limit) - you can move forward until the motion controller encounters (rising edge of limit signal) the reverse limit switch - when it will stop motion. However you can still start motion again as long as you are moving in the direction forward direction. A falling edge of the limit signal will not stop motion.

 

You will, however, not be able to go back to outside the limit switches without disabling them (which you can not pro grammatically do right now). 

 

Hope that helps 

 

Marc 

0 Kudos
Message 5 of 5
(4,347 Views)