Trip On Relative Position

[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

Trip On Relative Position

[/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 will show the use the trip on relative position function (TR).

Program slews the motor at 600 RPM  =  10 RPS. Sets a trip on relative position which produces a 255 * 50 nS pulse every 512 steps. Runs and stops when I1 toggles. Stops quickly when I2 goes low.  (NOT AN E-STOP)

Hardware requirement: Switch connected to Inputs 1 and 2

The code shown on the right may be copied and pasted into the program editor window of the Motion Control Interface application.

Topics

  • 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

The highlighted syntax calls out differences between MDrive MCode and Lexium MCode
Lexium MCodeMDrive MCode


 

 

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