Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

obtaining software limit enabled status

hi

im controlling a pci-7344 through VB6 and flexmotion.
im enabling the software limits when a user has defined the travel range for a servo and then disabling them when they want to reset the range again.
when the program is terminated and restarted how can i check if the software limits are enabled or not? the same function enables and disables them 'flex_enable_limits' and i cant find a way of checking which state its in.
when i terminate my program the last state of the limit switches (enabled/disabled) is stored in the card memory until i initialise the hardware again correct?
any idea how to check if the limits are enabled or not?

cheers in advance
dan
0 Kudos
Message 1 of 2
(2,979 Views)
Dan,

You can use the flex_read_axis_status_rtn function to check the status of the limit switches. Let me know if you need more details on how to use it.

Best Regards,

Michael Halloran
Systems Engineer
Viewpoint Systems - Boston Office
www.viewpointusa.com
0 Kudos
Message 2 of 2
(2,979 Views)