Closed loop with homing

[vc_row gap=”15″ el_class=”NewContainerSE1K”][vc_column css=”.vc_custom_1487861980487{margin-right: 15px !important;}”][TS-VCSC-Spacer height=”100″ conditionals=”eyJ2aWV3ZXJzdGF0dXMiOiJldmVyeWJvZHkiLCJyZXN0cmljdGlvbiI6Im5vbmUiLCJ1c2Vycm9sZXMiOiIiLCJ1c2Vyc2NvcGUiOiJhbnkiLCJ1c2VyY2FwcyI6IiIsIm90aGVyc2NvcGUiOiJhbnkiLCJvdGhlcnRhZ3MiOiIiLCJkZXZpY2V0eXBlcyI6IiJ9″][vc_column_text css=”.vc_custom_1490900487273{margin-right: 15px !important;}”]

Example Program

Closed loop with homing

[/vc_column_text][TS-VCSC-Spacer height=”20″ conditionals=”eyJ2aWV3ZXJzdGF0dXMiOiJldmVyeWJvZHkiLCJyZXN0cmljdGlvbiI6Im5vbmUiLCJ1c2Vycm9sZXMiOiIiLCJ1c2Vyc2NvcGUiOiJhbnkiLCJ1c2VyY2FwcyI6IiIsIm90aGVyc2NvcGUiOiJhbnkiLCJvdGhlcnRhZ3MiOiIiLCJkZXZpY2V0eXBlcyI6IiJ9″][vc_column_text css=”.vc_custom_1491851615674{margin-right: 15px !important;}”] [/vc_column_text][TS-VCSC-Spacer height=”20″ conditionals=”eyJ2aWV3ZXJzdGF0dXMiOiJldmVyeWJvZHkiLCJyZXN0cmljdGlvbiI6Im5vbmUiLCJ1c2Vycm9sZXMiOiIiLCJ1c2Vyc2NvcGUiOiJhbnkiLCJ1c2VyY2FwcyI6IiIsIm90aGVyc2NvcGUiOiJhbnkiLCJvdGhlcnRhZ3MiOiIiLCJkZXZpY2V0eXBlcyI6IiJ9″][/vc_column][/vc_row][vc_row el_class=”NewContainerSE1K”][vc_column width=”1/3″][vc_column_text]

Description

This program demonstrates the use of the home to home switch instruction (HM) in closed loop, also there is a move on input routine. The Homing method used is HM1, which will slew at VM (Max Velocity) in the negative direction, when input 1 is activated, the axis will creep in the plus direction at VI (Initial Velocity).

See the MCode Home to home switch command and change the homing method to experiment with different methods of homing. Output 1 is set to activate when the axis is moving. Stalling the motor will generate an error, activating output 2.

The code shown on the right may be copied and pasted into the program editor window of the Motion Control Programmer application, or a zip file containing the program files may be downloaded below.

Topics

  • Closed Loop/Encoder
  • MCode OS
[/vc_column_text][vc_column_text css=”.vc_custom_1516027846381{margin-top: 30px !important;}”]

Applicable Product

  • Lexium MDrive
  • MDrive Linear Actuator
  • MDrive Plus
  • MForce

Resource Files

[/vc_column][vc_column width=”2/3″][vc_column_text]

Program Example

Lexium MCodeMDrive MCode




 

[/vc_column_text][/vc_column][/vc_row]