Closed loop on error

[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 on error

[/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 illustrates closed loop control with an On Error (OE) routine which will perform math functions on the counters to display the position error.

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

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




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