# Software

### <span style="color: rgb(0, 0, 0);">Installation and setup</span>

The SMD3 is compatible with the AML Device Control software, which can be downloaded from the Software page on our website: [https://arunmicro.com/documents/software/](https://arunmicro.com/documents/software/)

- Connect all SMD3 devices to your computer, using a USB lead, and power them on.
- Start the AML Device Control software and click ‘Add device’ in the top left corner

![](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2023-10/embedded-image-nrvldrth.png)

<span style="color: rgb(0, 0, 0);">USB connected SMD3 devices should automatically appear in the list. Select all devices that you wish to add and click “Add n selected devices”</span>

### <span style="color: rgb(0, 0, 0);">![](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2023-10/embedded-image-lcvmwci1.png)</span>


### <span style="color: rgb(0, 0, 0);">Overview</span>

<span style="color: rgb(0, 0, 0);">The default layout of the software is shown below. </span>

[![download.png](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2023-10/scaled-1680-/download.png)](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2023-10/download.png)

#### <span style="color: rgb(0, 0, 0);">Project panel</span>

<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" id="bkmrk-shows-a-list-of-the-" style="border-collapse: collapse; border-spacing: 0px; border: initial hidden initial;"><tbody><tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes;"><td style="width: 290.6pt; padding: 0cm; border-style: hidden;" valign="top" width="387">Shows a list of the devices and scripts in the project. Currently selected devices are highlighted. Multiple devices can be selected by holding down CTRL and clicking. The device properties panel shows the properties for the selected device(s).

Right-clicking on an empty area within the project panel presents a context menu, with options to add new devices, new scripts or importing scripts.

</td><td style="width: 24.05pt; padding: 0cm; border-style: hidden;" valign="top" width="32"><span style="mso-no-proof: yes;"> </span>

</td><td style="width: 195.55pt; padding: 0cm; border-style: hidden;" valign="top" width="261"><span style="mso-no-proof: yes;"><span style="mso-spacerun: yes;"> </span></span>![](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2023-10/embedded-image-ot6o8wxb.png)

</td></tr><tr style="mso-yfti-irow: 1;"><td style="width: 290.6pt; padding: 0cm; border-style: hidden;" valign="top" width="387"></td><td style="width: 24.05pt; padding: 0cm; border-style: hidden;" valign="top" width="32"><span style="mso-no-proof: yes;"> </span>

</td><td style="width: 195.55pt; padding: 0cm; border-style: hidden;" valign="top" width="261"><span style="mso-no-proof: yes;"> </span>

</td></tr><tr style="mso-yfti-irow: 2; mso-yfti-lastrow: yes;"><td style="width: 290.6pt; padding: 0cm; border-style: hidden;" valign="top" width="387">The right-click context menu on each device provides access to functions such as clearing faults or placing the selected device into ident mode in which the green status indicator flashes.

</td><td style="width: 24.05pt; padding: 0cm; border-style: hidden;" valign="top" width="32"><span style="mso-no-proof: yes;"> </span>

</td><td style="width: 195.55pt; padding: 0cm; border-style: hidden; vertical-align: top;" valign="top" width="261"><span style="mso-no-proof: yes;"><span style="mso-spacerun: yes;"> </span></span>![](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2023-10/embedded-image-r6rykxnr.png)

</td></tr></tbody></table>

A status indicator next to each device shows the current status of each device according to these colours:

<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" id="bkmrk-colour-description-%C2%A0" style="border-collapse: collapse; border: none; width: 48.2723%; height: 201.387px;"><tbody><tr style="height: 31.3079px;"><td style="width: 19.4221%; border: 1pt solid rgb(127, 127, 127); background: rgb(109, 111, 113); padding: 2.85pt 5.4pt; height: 31.3079px;" width="75"><span style="color: rgb(255, 255, 255);">Colour</span>

</td><td style="width: 80.7845%; border-top: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-image: initial; border-left: none; background: rgb(109, 111, 113); padding: 2.85pt 5.4pt; height: 31.3079px;" width="269"><span style="color: rgb(255, 255, 255);">Description</span>

</td></tr><tr style="height: 45.4398px;"><td style="width: 19.4221%; border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-left: 1pt solid rgb(127, 127, 127); border-image: initial; border-top: none; background: rgb(244, 244, 244); padding: 2.85pt 5.4pt; height: 45.4398px; vertical-align: middle;" width="75"><span style="color: black; mso-color-alt: windowtext;"><span style="mso-spacerun: yes;">![](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2023-10/embedded-image-gqukm9hp.png) </span></span>

</td><td style="width: 80.7845%; border-top: none; border-left: none; border-bottom: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); background: rgb(244, 244, 244); padding: 2.85pt 5.4pt; height: 45.4398px; vertical-align: middle;" width="269"><span style="color: black; mso-color-alt: windowtext;">Device connected and ready</span>

</td></tr><tr style="height: 56.3657px;"><td style="width: 19.4221%; border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-left: 1pt solid rgb(127, 127, 127); border-image: initial; border-top: none; padding: 2.85pt 5.4pt; height: 56.3657px; vertical-align: middle;" width="75"><span style="mso-spacerun: yes;">![](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2023-10/embedded-image-nuavbykf.png) </span>

</td><td style="width: 80.7845%; border-top: none; border-left: none; border-bottom: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); padding: 2.85pt 5.4pt; height: 56.3657px; vertical-align: middle;" width="269">Bake mode running, limit switch triggered or joystick connected

</td></tr><tr style="height: 45.6366px;"><td style="width: 19.4221%; border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-left: 1pt solid rgb(127, 127, 127); border-image: initial; border-top: none; background: rgb(244, 244, 244); padding: 2.85pt 5.4pt; height: 45.6366px; vertical-align: middle;" width="75"><span style="color: black; mso-color-alt: windowtext;"><span style="mso-spacerun: yes;">![](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2023-10/embedded-image-6pcr06rd.png) </span></span>

</td><td style="width: 80.7845%; border-top: none; border-left: none; border-bottom: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); background: rgb(244, 244, 244); padding: 2.85pt 5.4pt; height: 45.6366px; vertical-align: middle;" width="269"><span style="color: black; mso-color-alt: windowtext;">Device in a fault state</span>

</td></tr><tr style="height: 22.6366px;"><td style="width: 19.4221%; border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-left: 1pt solid rgb(127, 127, 127); border-image: initial; border-top: none; padding: 2.85pt 5.4pt; height: 22.6366px; vertical-align: middle;" width="75"><span style="mso-spacerun: yes;">![](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2023-10/embedded-image-onlssu03.png) </span>

</td><td style="width: 80.7845%; border-top: none; border-left: none; border-bottom: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); padding: 2.85pt 5.4pt; height: 22.6366px; vertical-align: middle;" width="269">Device disconnected

</td></tr></tbody></table>





#### <span style="color: rgb(0, 0, 0);">Device properties panel</span>

Select one or more devices in the project panel; their properties are displayed and can be edited here. A blank is shown for properties which are different across the selected devices. As each property is selected, help text appears at the bottom of the panel describing the configuration option in more detail.

- Some properties allow selection of one of several choices, for example, temperature sensor selection:

![](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2023-10/embedded-image-ifaxxusz.png)

- Others such as ‘Run current’ simply require a numeric value to be entered
- Others allow values to be entered directly, or the three dots button to the right to be clicked. This opens a window, allowing a more complex value to be input, for example, ‘Acceleration’ allows input in the native units or seconds:

![](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2023-10/embedded-image-og0jituo.png)

#### <span style="color: rgb(0, 0, 0);">System work area</span>

Controller windows for each device appear in this area. Windows can be arranged as desired and will automatically ‘snap’ to a grid making it easy to keep them neatly organised.

#### <span style="color: rgb(0, 0, 0);">Controller window</span>

<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" id="bkmrk-shows-a-status-summa" style="border-collapse: collapse; width: 100.001%; border-spacing: 0px; height: 351.609px;"><tbody><tr style="height: 351.609px;"><td style="width: 52.8781%; padding: 0cm; border-style: hidden; height: 351.609px;" valign="top" width="406">Shows a status summary for the selected device, providing essential information such as actual velocity, actual (absolute) position, relative position and error status.

Absolute and relative position counters may be reset using the ![](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2023-11/embedded-image-qc93djea.png) icons.

For controlling an SMD3, choose the type of motion and click start or stop. Multiple SMD3 devices can be controlled using the motion controls on the ribbon:

 ![](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2023-10/embedded-image-y8dcktip.png)

  
<span style="mso-no-proof: yes;">  
</span>

</td><td style="width: 47.212%; padding: 0cm; border-style: hidden; height: 351.609px;" valign="top" width="257"><span style="mso-no-proof: yes;">![](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2023-10/embedded-image-iamsxg1e.png)  
</span>

</td></tr></tbody></table>

<p class="callout info">**INFORMATION:** Be aware that the synchronisation between multiple SMD3s is not specified or guaranteed when controlling them in this way; delays within the computer, software, and USB connection to the SMD3 mean that each SMD3 will start or stop its motion at a slightly different moment, therefore this option is not suitable for performing complex co-ordinated movements across multiple axes.</p>

#### <span style="color: rgb(0, 0, 0);">Ribbon</span>

Contains buttons for all actions. Within the software, buttons can be hovered over for more information.

![](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2023-10/embedded-image-vzegxhj4.png)

### <span style="color: rgb(0, 0, 0);">Saving projects</span>

<div id="bkmrk-smd3-configuration-i">SMD3 configuration is maintained in two locations:</div><div id="bkmrk-the-smd3-itself%2C-wit">1. The SMD3 itself, with the use of the ”Save to device” command. If the “Save to device” command is not used, settings will revert to their previous values on power cycling.
2. In the software project file.

</div><div id="bkmrk-the-behaviour-of-the">The behaviour of the software in relation to this is as follows:</div><div id="bkmrk--9"></div>**If the serial number of a connected SMD3 matches that of one in the project file that is open:** The configuration given in the project file prevails, and the SMD3 configuration is synchronised to match that in the project file. Note that unless you use the save changes to hardware function, the original configuration of the SMD3 is not overwritten, and will be restored on power cycle or by using the load command to restore the configuration from flash.

**If the serial number of a connected SMD3 does not match any of those in the project file that is open:** The SMD3 is considered a new device in the project, and the project file will be initialised from the configuration found in the SMD3 itself. After this point, the first behaviour outlined above applies.

<p class="callout info">**INFORMATION:** In the first case above, configuration items that require the SMD3 to be in standby will not be correctly synchronized if the SMD3 is not in standby when the software connects.</p>

### <span style="color: rgb(0, 0, 0);">Scripting</span>

<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" id="bkmrk-the-software-include" style="border-collapse: collapse; width: 100.001%; height: 214px; border-spacing: 0px; border: initial hidden initial;"><tbody><tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes;"><td style="width: 60.292%; padding: 0cm; border-style: hidden;" valign="top" width="482">The software includes an easy to use script editor, that allows for sequences to be programmed and executed on multiple connected SMD3 devices, as well as system level operations such as adding and removing SMD3 devices from the project.

The scripting language used is JavaScript; this is powerful, easy to use and extensively documented. A global ‘smd’ object is made available from which you perform all interactions with the SMD3s. Type ‘smd.’ and an auto completion popup appears, showing all available commands, as well as help documentation for each. Press the enter key to select an option, then provide any arguments required.

</td><td style="width: 39.7981%; padding: 0cm; border-style: hidden;" valign="top" width="198"><span style="mso-no-proof: yes;">![](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2023-10/embedded-image-xiskhunj.png)  
</span>

</td></tr></tbody></table>

<span style="color: rgb(0, 0, 0);">A brief description of each function/command is presented below the scripting section. Here is an overview of the scripting area:</span>

<span style="color: rgb(0, 0, 0);">![](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2023-10/embedded-image-zqrvkx9d.png)</span>

<span style="color: rgb(0, 0, 0);">The auto completion popup can be shown using the ‘Ctrl-K’ keyboard shortcut.</span>

<span style="color: rgb(0, 0, 0);">Information on the available SMD3 device specific commands can be found in section [USB Interface](https://bookstack.vps-da8d40f3.arunmicro.com/link/14#bkmrk-page-title) of this manual. Serial command mnemonics will be auto completed by the script editor. The arguments of each scripting function are identical to those shown in section [Command Reference](https://bookstack.vps-da8d40f3.arunmicro.com/link/14#bkmrk-command-reference), however, the format of querying and commanding is different. The example below shows how the SMD3 mode can be set and queried:</span>

<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" id="bkmrk-smd.mode%282%29%3B-smd.mod" style="border-collapse: collapse; border: none; height: 39px; width: 111.977%;"><tbody><tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; mso-yfti-lastrow: yes;"><td style="width: 50.045%; border-top: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-left: 1pt solid rgb(127, 127, 127); border-image: initial; border-right: none; background: rgb(244, 244, 244); padding: 0cm 5.4pt;" valign="top" width="283"><span style="color: rgb(224, 62, 45);">smd.Mode(2);</span>

<span style="color: rgb(224, 62, 45);">smd.Mode();</span>

</td><td style="width: 50.045%; border-top: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-image: initial; border-left: none; background: rgb(244, 244, 244); padding: 0cm 5.4pt;" valign="top" width="396"><span style="color: rgb(45, 194, 107);">// Set the SMD3 mode to 2 (remote)</span>

<span style="color: rgb(45, 194, 107);">// Query state of mode</span>

</td></tr></tbody></table>

<span style="color: rgb(0, 0, 0);">The ribbon contains scripting specific buttons.</span>

<span style="color: rgb(0, 0, 0);">![](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2023-10/embedded-image-dzv1jovw.png)</span>

#### <span style="color: rgb(0, 0, 0);">Function specific to the SMD3 software</span>

<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" id="bkmrk-function-description" style="width: 812px; border-collapse: collapse; border: none; height: 1081.34px;" width="680"><tbody><tr style="height: 30.7407px;"><td style="width: 130.146px; border: 1pt solid rgb(127, 127, 127); background: rgb(109, 111, 113); padding: 2.85pt 5.4pt; height: 30.7407px;"><span style="color: rgb(255, 255, 255);">Function</span>

</td><td style="width: 687.806px; border-top: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-image: initial; border-left: none; background: rgb(109, 111, 113); padding: 2.85pt 5.4pt; height: 30.7407px;"><span style="color: rgb(255, 255, 255);">Description</span>

</td></tr><tr style="height: 110.174px;"><td style="width: 130.146px; border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-left: 1pt solid rgb(127, 127, 127); border-image: initial; border-top: none; background: rgb(244, 244, 244); padding: 2.85pt 5.4pt; height: 110.174px;" valign="top"><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">Add</span>

</td><td style="width: 687.806px; border-top: none; border-left: none; border-bottom: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); background: rgb(244, 244, 244); padding: 2.85pt 5.4pt; height: 110.174px;" valign="top"><span class="CodeBlueChar" style="color: rgb(53, 152, 219);"><span style="mso-bidi-font-family: 'Open Sans';">bool</span></span><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;"> </span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext;">Add</span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">(</span><span class="CodeBlueChar" style="color: rgb(53, 152, 219);"><span style="mso-bidi-font-family: 'Open Sans';">string</span></span><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;"> </span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext;">serial</span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">)</span>

<span style="mso-bidi-font-size: 10.0pt; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">Add a new device to the project.</span>

<span style="mso-bidi-font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">Returns true if the device has been detected and added to the project.</span>

<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">serial:</span>

<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;"><span style="mso-spacerun: yes;"> </span>Device serial number.</span>

</td></tr><tr style="height: 53.1482px;"><td style="width: 130.146px; border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-left: 1pt solid rgb(127, 127, 127); border-image: initial; border-top: none; padding: 2.85pt 5.4pt; height: 53.1482px;" valign="top"><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">ClearLog</span>

</td><td style="width: 687.806px; border-top: none; border-left: none; border-bottom: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); padding: 2.85pt 5.4pt; height: 53.1482px;" valign="top"><span class="CodeBlueChar" style="color: rgb(53, 152, 219);"><span style="mso-bidi-font-family: 'Open Sans';">void</span></span><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;"> </span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial;">ClearLog</span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">( )</span>

<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">Clear command line.</span>

</td></tr><tr style="height: 52.1482px;"><td style="width: 130.146px; border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-left: 1pt solid rgb(127, 127, 127); border-image: initial; border-top: none; background: rgb(244, 244, 244); padding: 2.85pt 5.4pt; height: 52.1482px;" valign="top"><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">ConnectAll</span>

</td><td style="width: 687.806px; border-top: none; border-left: none; border-bottom: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); background: rgb(244, 244, 244); padding: 2.85pt 5.4pt; height: 52.1482px;" valign="top"><span class="CodeBlueChar" style="color: rgb(53, 152, 219);"><span style="mso-bidi-font-family: 'Open Sans';">void</span></span><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;"> </span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext;">ConnectAll</span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">( )</span>

<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">Connect all devices in the project.</span>

</td></tr><tr style="height: 110.174px;"><td style="width: 130.146px; border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-left: 1pt solid rgb(127, 127, 127); border-image: initial; border-top: none; padding: 2.85pt 5.4pt; height: 110.174px;" valign="top"><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">Delayms</span>

</td><td style="width: 687.806px; border-top: none; border-left: none; border-bottom: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); padding: 2.85pt 5.4pt; height: 110.174px;" valign="top"><span class="CodeBlueChar" style="color: rgb(53, 152, 219);"><span style="mso-bidi-font-family: 'Open Sans';">void</span></span><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;"> </span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial;">Delayms</span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">(</span><span style="color: rgb(53, 152, 219);"><span class="CodeBlueChar"><span style="mso-bidi-font-family: 'Open Sans';">int</span></span><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;"> </span></span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial;">value</span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">)</span>

<span style="mso-bidi-font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">Delay in milliseconds.</span>

<span style="mso-bidi-font-size: 10.0pt; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">value:</span>

<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;"><span style="mso-spacerun: yes;"> </span>Minimum: 0</span>

<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;"><span style="mso-spacerun: yes;"> </span>Maximum: 2^31 -1</span>

</td></tr><tr style="height: 110.174px;"><td style="width: 130.146px; border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-left: 1pt solid rgb(127, 127, 127); border-image: initial; border-top: none; background: rgb(244, 244, 244); padding: 2.85pt 5.4pt; height: 110.174px;" valign="top"><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">DelaySeconds</span>

</td><td style="width: 687.806px; border-top: none; border-left: none; border-bottom: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); background: rgb(244, 244, 244); padding: 2.85pt 5.4pt; height: 110.174px;" valign="top"><span class="CodeBlueChar" style="color: rgb(53, 152, 219);"><span style="mso-bidi-font-family: 'Open Sans';">void</span></span><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;"> </span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext;">DelaySeconds</span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">(</span><span style="color: rgb(53, 152, 219);"><span class="CodeBlueChar"><span style="mso-bidi-font-family: 'Open Sans';">int</span></span><span style="line-height: 107%;"> </span></span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext;">value</span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">)</span>

<span style="mso-bidi-font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">Delay in seconds.</span>

<span style="mso-bidi-font-size: 10.0pt; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">value:</span>

<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;"><span style="mso-spacerun: yes;"> </span>Minimum: 0</span>

<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;"><span style="mso-spacerun: yes;"> </span>Maximum: 2147483</span>

</td></tr><tr style="height: 53.1482px;"><td style="width: 130.146px; border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-left: 1pt solid rgb(127, 127, 127); border-image: initial; border-top: none; padding: 2.85pt 5.4pt; height: 53.1482px;" valign="top"><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">DisconnectAll</span>

</td><td style="width: 687.806px; border-top: none; border-left: none; border-bottom: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); padding: 2.85pt 5.4pt; height: 53.1482px;" valign="top"><span style="color: rgb(53, 152, 219);"><span class="CodeBlueChar"><span style="mso-bidi-font-family: 'Open Sans';">void</span></span><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;"> </span></span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial;">DisconnectAll</span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">( )</span>

<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">Disconnect all devices in the project.</span>

</td></tr><tr style="height: 53.1482px;"><td style="width: 130.146px; border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-left: 1pt solid rgb(127, 127, 127); border-image: initial; border-top: none; background: rgb(244, 244, 244); padding: 2.85pt 5.4pt; height: 53.1482px;" valign="top"><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">Log</span>

</td><td style="width: 687.806px; border-top: none; border-left: none; border-bottom: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); background: rgb(244, 244, 244); padding: 2.85pt 5.4pt; height: 53.1482px;" valign="top"><span class="CodeBlueChar" style="color: rgb(53, 152, 219);"><span style="mso-bidi-font-family: 'Open Sans';">void</span></span><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;"> </span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext;">Log</span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">(</span><span class="CodeBlueChar"><span style="mso-bidi-font-family: 'Open Sans';">string</span></span><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;"> </span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext;">value</span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">)</span>

<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">Print value to the command line.</span>

</td></tr><tr style="height: 154.988px;"><td style="width: 130.146px; border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-left: 1pt solid rgb(127, 127, 127); border-image: initial; border-top: none; padding: 2.85pt 5.4pt; height: 154.988px;" valign="top"><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">Name</span>

</td><td style="width: 687.806px; border-top: none; border-left: none; border-bottom: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); padding: 2.85pt 5.4pt; height: 154.988px;" valign="top"><span class="CodeBlueChar"><span style="mso-bidi-font-family: 'Open Sans';">bool **Name**(<span style="color: rgb(53, 152, 219);">string</span> **serial**, <span style="color: rgb(53, 152, 219);">string</span> **name**)</span></span>

<span class="CodeBlueChar"><span style="mso-bidi-font-family: 'Open Sans';">Change name of the device.</span></span>

<span class="CodeBlueChar"><span style="mso-bidi-font-family: 'Open Sans';">Returns true if the device has been found and name changed.</span></span>

<span class="CodeBlueChar"><span style="mso-bidi-font-family: 'Open Sans';">serial:</span></span>

<span class="CodeBlueChar"><span style="mso-bidi-font-family: 'Open Sans';"><span style="mso-spacerun: yes;"> </span>Device serial number.</span></span>

<span class="CodeBlueChar"><span style="mso-bidi-font-family: 'Open Sans';">name:</span></span>

<span class="CodeBlueChar"><span style="mso-bidi-font-family: 'Open Sans';"><span style="mso-spacerun: yes;"> </span>Device new name.</span></span>

</td></tr><tr style="height: 110.174px;"><td style="width: 130.146px; border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-left: 1pt solid rgb(127, 127, 127); border-image: initial; border-top: none; background: rgb(244, 244, 244); padding: 2.85pt 5.4pt; height: 110.174px;" valign="top"><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">Remove</span>

</td><td style="width: 687.806px; border-top: none; border-left: none; border-bottom: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); background: rgb(244, 244, 244); padding: 2.85pt 5.4pt; height: 110.174px;" valign="top"><span class="CodeBlueChar"><span style="mso-bidi-font-family: 'Open Sans';"><span style="color: rgb(53, 152, 219);">bool</span> **Remove**(<span style="color: rgb(53, 152, 219);">string</span> **serial**)</span></span>

<span class="CodeBlueChar"><span style="mso-bidi-font-family: 'Open Sans';">Remove a device from the project.</span></span>

<span class="CodeBlueChar"><span style="mso-bidi-font-family: 'Open Sans';">Returns true if the device has been detected and removed from the project.</span></span>

<span class="CodeBlueChar"><span style="mso-bidi-font-family: 'Open Sans';">serial:</span></span>

<span class="CodeBlueChar"><span style="mso-bidi-font-family: 'Open Sans';"><span style="mso-spacerun: yes;"> </span>Device serial number.</span></span>

</td></tr><tr style="height: 53.1482px;"><td style="width: 130.146px; border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-left: 1pt solid rgb(127, 127, 127); border-image: initial; border-top: none; padding: 2.85pt 5.4pt; height: 53.1482px;" valign="top"><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">RemoveAll</span>

</td><td style="width: 687.806px; border-top: none; border-left: none; border-bottom: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); padding: 2.85pt 5.4pt; height: 53.1482px;" valign="top"><span class="CodeBlueChar" style="color: rgb(53, 152, 219);"><span style="mso-bidi-font-family: 'Open Sans';">void</span></span><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;"> </span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial;">RemoveAll</span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">( )</span>

<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">Remove all devices from the project.</span>

</td></tr><tr style="height: 87.7662px;"><td style="width: 130.146px; border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-left: 1pt solid rgb(127, 127, 127); border-image: initial; border-top: none; background: rgb(244, 244, 244); padding: 2.85pt 5.4pt; height: 87.7662px;" valign="top"><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">Select</span>

</td><td style="width: 687.806px; border-top: none; border-left: none; border-bottom: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); background: rgb(244, 244, 244); padding: 2.85pt 5.4pt; height: 87.7662px;" valign="top"><span style="color: rgb(53, 152, 219);"><span class="CodeBlueChar"><span style="mso-bidi-font-family: 'Open Sans';">bool</span></span><span style="line-height: 107%;"> </span></span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext;">Select</span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">(</span><span class="CodeBlueChar"><span style="mso-bidi-font-family: 'Open Sans';"><span style="color: rgb(53, 152, 219);">string</span>\[ \]</span></span><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;"> devices)</span>

<span style="mso-bidi-font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">Returns true if all the requested devices have been selected.</span>

<span style="mso-bidi-font-size: 10.0pt; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">devices:</span>

<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;"><span style="mso-spacerun: yes;"> </span>Name of the device(s).</span>

</td></tr><tr style="height: 49.2593px;"><td style="width: 130.146px; border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-left: 1pt solid rgb(127, 127, 127); border-image: initial; border-top: none; padding: 2.85pt 5.4pt; height: 49.2593px;" valign="top"><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">SelectAll</span>

</td><td style="width: 687.806px; border-top: none; border-left: none; border-bottom: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); padding: 2.85pt 5.4pt; height: 49.2593px;" valign="top"><span class="CodeBlueChar" style="color: rgb(53, 152, 219);"><span style="mso-bidi-font-family: 'Open Sans';">void</span></span><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;"> </span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial;">SelectAll</span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">( )</span>

Select all devices.

</td></tr><tr style="height: 53.1482px;"><td style="width: 130.146px; border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-left: 1pt solid rgb(127, 127, 127); border-image: initial; border-top: none; background: rgb(244, 244, 244); padding: 2.85pt 5.4pt; height: 53.1482px;" valign="top"><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">SelectNone</span>

</td><td style="width: 687.806px; border-top: none; border-left: none; border-bottom: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); background: rgb(244, 244, 244); padding: 2.85pt 5.4pt; height: 53.1482px;" valign="top"><span class="CodeBlueChar" style="color: rgb(53, 152, 219);"><span style="mso-bidi-font-family: 'Open Sans';">void</span></span><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;"> </span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext;">SelectNone</span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">( )</span>

<span style="color: black; mso-color-alt: windowtext;">Deselect all devices.</span>

</td></tr></tbody></table>

Functions that query the SMD3 and that are not also available as a serial command are listed below. <span style="text-decoration: underline;">Note that these all return an array rather than a single value, with each array element corresponding to the data from one SMD3</span>. The order of the array elements corresponds to the order in which the SMD3 devices are selected. For example, suppose the “X-axis”, “Y-axis” and “Z-axis” named devices were selected with the command “smd.Select(“Z-axis”, ”X-axis”, ”Y-axis)”, to check the standby flag of the “X-axis” device, use MotorStandbyFlag()\[1\].

<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" id="bkmrk-function-description-1" style="width: 963px; border-collapse: collapse; border: none;" width="680"><tbody><tr style="mso-yfti-irow: 0; mso-yfti-firstrow: yes; height: 11.35pt;"><td style="width: 259.157px; border: 1pt solid rgb(127, 127, 127); background: rgb(109, 111, 113); padding: 2.85pt 5.4pt; height: 11.35pt;" width="189"><span style="color: rgb(255, 255, 255);">Function</span>

</td><td style="width: 561.831px; border-top: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-image: initial; border-left: none; background: rgb(109, 111, 113); padding: 2.85pt 5.4pt; height: 11.35pt;" width="491"><span style="color: rgb(255, 255, 255);">Description</span>

</td></tr><tr style="mso-yfti-irow: 1;"><td style="width: 259.157px; border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-left: 1pt solid rgb(127, 127, 127); border-image: initial; border-top: none; background: rgb(244, 244, 244); padding: 2.85pt 5.4pt;" valign="top" width="189"><span style="color: black; mso-color-alt: windowtext;">BakeActiveFlag</span>

</td><td style="width: 561.831px; border-top: none; border-left: none; border-bottom: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); background: rgb(244, 244, 244); padding: 2.85pt 5.4pt;" valign="top" width="491"><span class="CodeBlueChar"><span style="mso-bidi-font-family: 'Open Sans';"><span style="color: rgb(53, 152, 219);">bool</span>\[\]</span></span><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;"> </span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext;">BakeActiveFlag</span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">()</span>

<span style="mso-bidi-font-size: 10.0pt; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">Returns true if the bake mode is running.</span>

</td></tr><tr style="mso-yfti-irow: 2;"><td style="width: 259.157px; border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-left: 1pt solid rgb(127, 127, 127); border-image: initial; border-top: none; padding: 2.85pt 5.4pt;" valign="top" width="189"><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">ConfigurationErrorFlag</span>

</td><td style="width: 561.831px; border-top: none; border-left: none; border-bottom: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); padding: 2.85pt 5.4pt;" valign="top" width="491"><span class="CodeBlueChar"><span style="mso-bidi-font-family: 'Open Sans';"><span style="color: rgb(53, 152, 219);">bool</span>\[\]</span></span><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;"> </span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial;">ConfigurationErrorFlag</span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">()</span>

<span style="mso-bidi-font-size: 10.0pt; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">Returns true if the motor configuration is corrupt.</span>

</td></tr><tr style="mso-yfti-irow: 3;"><td style="width: 259.157px; border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-left: 1pt solid rgb(127, 127, 127); border-image: initial; border-top: none; background: rgb(244, 244, 244); padding: 2.85pt 5.4pt;" valign="top" width="189"><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">EmergencyStopFlag</span>

</td><td style="width: 561.831px; border-top: none; border-left: none; border-bottom: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); background: rgb(244, 244, 244); padding: 2.85pt 5.4pt;" valign="top" width="491"><span class="CodeBlueChar"><span style="mso-bidi-font-family: 'Open Sans';"><span style="color: rgb(53, 152, 219);">bool</span>\[\]</span></span><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;"> </span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext;">EmergencyStopFlag</span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">()</span>

<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">Returns true if the motor is disabled by software.</span>

</td></tr><tr style="mso-yfti-irow: 4;"><td style="width: 259.157px; border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-left: 1pt solid rgb(127, 127, 127); border-image: initial; border-top: none; padding: 2.85pt 5.4pt;" valign="top" width="189"><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">ExternalEnableFlag</span>

</td><td style="width: 561.831px; border-top: none; border-left: none; border-bottom: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); padding: 2.85pt 5.4pt;" valign="top" width="491"><span class="CodeBlueChar"><span style="mso-bidi-font-family: 'Open Sans';"><span style="color: rgb(53, 152, 219);">bool</span>\[\]</span></span><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;"> </span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial;">ExternalEnableFlag</span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">()</span>

<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">Returns true if the external enable input is high.</span>

</td></tr><tr style="mso-yfti-irow: 5;"><td style="width: 259.157px; border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-left: 1pt solid rgb(127, 127, 127); border-image: initial; border-top: none; background: rgb(244, 244, 244); padding: 2.85pt 5.4pt;" valign="top" width="189"><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">ExternalInhibitFlag</span>

</td><td style="width: 561.831px; border-top: none; border-left: none; border-bottom: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); background: rgb(244, 244, 244); padding: 2.85pt 5.4pt;" valign="top" width="491"><span class="CodeBlueChar"><span style="mso-bidi-font-family: 'Open Sans';"><span style="color: rgb(53, 152, 219);">bool</span>\[\]</span></span><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;"> </span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext;">ExternalInhibitFlag</span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">()</span>

<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">Returns true if the external enable input is disabling the motor.</span>

</td></tr><tr style="mso-yfti-irow: 6;"><td style="width: 259.157px; border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-left: 1pt solid rgb(127, 127, 127); border-image: initial; border-top: none; padding: 2.85pt 5.4pt;" valign="top" width="189"><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">IdentModeActiveFlag</span>

</td><td style="width: 561.831px; border-top: none; border-left: none; border-bottom: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); padding: 2.85pt 5.4pt;" valign="top" width="491"><span class="CodeBlueChar"><span style="mso-bidi-font-family: 'Open Sans';"><span style="color: rgb(53, 152, 219);">bool</span>\[\]</span></span><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;"> </span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial;">IdentModeActiveFlag</span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">()</span>

<span style="mso-bidi-font-size: 10.0pt; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">Returns true if the ident mode is active.</span>

</td></tr><tr style="mso-yfti-irow: 7;"><td style="width: 259.157px; border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-left: 1pt solid rgb(127, 127, 127); border-image: initial; border-top: none; background: rgb(244, 244, 244); padding: 2.85pt 5.4pt;" valign="top" width="189"><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">JoystickConnectedFlag</span>

</td><td style="width: 561.831px; border-top: none; border-left: none; border-bottom: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); background: rgb(244, 244, 244); padding: 2.85pt 5.4pt;" valign="top" width="491"><span class="CodeBlueChar"><span style="mso-bidi-font-family: 'Open Sans';"><span style="color: rgb(53, 152, 219);">bool</span>\[\]</span></span><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;"> </span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext;">JoystickConnectedFlag</span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">()</span>

<span style="mso-bidi-font-size: 10.0pt; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">Returns true if the joystick is connected.</span>

</td></tr><tr style="mso-yfti-irow: 8;"><td style="width: 259.157px; border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-left: 1pt solid rgb(127, 127, 127); border-image: initial; border-top: none; padding: 2.85pt 5.4pt;" valign="top" width="189"><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">LimitNegativeFlag</span>

</td><td style="width: 561.831px; border-top: none; border-left: none; border-bottom: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); padding: 2.85pt 5.4pt;" valign="top" width="491"><span class="CodeBlueChar"><span style="mso-bidi-font-family: 'Open Sans';"><span style="color: rgb(53, 152, 219);">bool</span>\[\]</span></span><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;"> </span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial;">LimitNegativeFlag</span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">()</span>

<span style="mso-bidi-font-size: 10.0pt; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">Returns true if the negative limit is active.</span>

</td></tr><tr style="mso-yfti-irow: 9;"><td style="width: 259.157px; border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-left: 1pt solid rgb(127, 127, 127); border-image: initial; border-top: none; background: rgb(242, 242, 242); padding: 2.85pt 5.4pt;" valign="top" width="189"><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">LimitPositiveFlag</span>

</td><td style="width: 561.831px; border-top: none; border-left: none; border-bottom: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); background: rgb(242, 242, 242); padding: 2.85pt 5.4pt;" valign="top" width="491"><span class="CodeBlueChar"><span style="mso-bidi-font-family: 'Open Sans';"><span style="color: rgb(53, 152, 219);">bool</span>\[\]</span></span><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;"> </span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext;">LimitPositiveFlag</span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">()</span>

<span style="mso-bidi-font-size: 10.0pt; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">Returns true if the positive limit is active.</span>

</td></tr><tr style="mso-yfti-irow: 10;"><td style="width: 259.157px; border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-left: 1pt solid rgb(127, 127, 127); border-image: initial; border-top: none; padding: 2.85pt 5.4pt;" valign="top" width="189"><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">MotorOverTemperatureFlag</span>

</td><td style="width: 561.831px; border-top: none; border-left: none; border-bottom: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); padding: 2.85pt 5.4pt;" valign="top" width="491"><span class="CodeBlueChar"><span style="mso-bidi-font-family: 'Open Sans';"><span style="color: rgb(53, 152, 219);">bool</span>\[\]</span></span><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;"> </span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial;">MotorOverTemperatureFlag</span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">()</span>

<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">Returns true if the motor temperature is greater than 190 </span><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: 'Open Sans'; mso-bidi-font-weight: bold;">°</span><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">C.</span>

</td></tr><tr style="mso-yfti-irow: 11;"><td style="width: 259.157px; border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-left: 1pt solid rgb(127, 127, 127); border-image: initial; border-top: none; background: rgb(242, 242, 242); padding: 2.85pt 5.4pt;" valign="top" width="189"><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">MotorShortFlag</span>

</td><td style="width: 561.831px; border-top: none; border-left: none; border-bottom: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); background: rgb(242, 242, 242); padding: 2.85pt 5.4pt;" valign="top" width="491"><span class="CodeBlueChar"><span style="mso-bidi-font-family: 'Open Sans';"><span style="color: rgb(53, 152, 219);">bool</span>\[\]</span></span><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;"> </span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext;">MotorShortFlag</span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">()</span>

<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">Returns true if a motor phase to phase or phase to ground short has been detected.</span>

</td></tr><tr style="mso-yfti-irow: 12;"><td style="width: 259.157px; border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-left: 1pt solid rgb(127, 127, 127); border-image: initial; border-top: none; padding: 2.85pt 5.4pt;" valign="top" width="189"><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">MotorStandbyFlag</span>

</td><td style="width: 561.831px; border-top: none; border-left: none; border-bottom: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); padding: 2.85pt 5.4pt;" valign="top" width="491"><span class="CodeBlueChar"><span style="mso-bidi-font-family: 'Open Sans';"><span style="color: rgb(53, 152, 219);">bool</span>\[\]</span></span><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;"> </span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial;">MotorStandbyFlag</span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">()</span>

<span style="mso-bidi-font-size: 10.0pt; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">Returns true if the motor is stationary.</span>

</td></tr><tr style="mso-yfti-irow: 13;"><td style="width: 259.157px; border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-left: 1pt solid rgb(127, 127, 127); border-image: initial; border-top: none; background: rgb(242, 242, 242); padding: 2.85pt 5.4pt;" valign="top" width="189"><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">TargetVelocityReachedFlag</span>

</td><td style="width: 561.831px; border-top: none; border-left: none; border-bottom: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); background: rgb(242, 242, 242); padding: 2.85pt 5.4pt;" valign="top" width="491"><span class="CodeBlueChar"><span style="mso-bidi-font-family: 'Open Sans';"><span style="color: rgb(53, 152, 219);">bool</span>\[\]</span></span><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;"> </span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext;">TargetVelocityReachedFlag</span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">()</span>

<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">Returns true if the motor is at the target step frequency.</span>

</td></tr><tr style="mso-yfti-irow: 14;"><td style="width: 259.157px; border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-left: 1pt solid rgb(127, 127, 127); border-image: initial; border-top: none; padding: 2.85pt 5.4pt;" valign="top" width="189"><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">TemperatureSensorOpenFlag</span>

</td><td style="width: 561.831px; border-top: none; border-left: none; border-bottom: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); padding: 2.85pt 5.4pt;" valign="top" width="491"><span class="CodeBlueChar"><span style="mso-bidi-font-family: 'Open Sans';"><span style="color: rgb(53, 152, 219);">bool</span>\[\]</span></span><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;"> </span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial;">TemperatureSensorOpenFlag</span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">()</span>

<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; mso-bidi-font-weight: bold;">Returns true if the selected temperature sensor is open circuit.</span>

</td></tr><tr style="mso-yfti-irow: 15; mso-yfti-lastrow: yes;"><td style="width: 259.157px; border-right: 1pt solid rgb(127, 127, 127); border-bottom: 1pt solid rgb(127, 127, 127); border-left: 1pt solid rgb(127, 127, 127); border-image: initial; border-top: none; background: rgb(242, 242, 242); padding: 2.85pt 5.4pt;" valign="top" width="189"><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">TemperatureSensorShortedFlag</span>

</td><td style="width: 561.831px; border-top: none; border-left: none; border-bottom: 1pt solid rgb(127, 127, 127); border-right: 1pt solid rgb(127, 127, 127); background: rgb(242, 242, 242); padding: 2.85pt 5.4pt;" valign="top" width="491"><span class="CodeBlueChar"><span style="mso-bidi-font-family: 'Open Sans';"><span style="color: rgb(53, 152, 219);">bool</span>\[\]</span></span><span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;"> </span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext;">TemperatureSensorShortedFlag</span>**<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">()</span>

<span style="mso-bidi-font-size: 10.0pt; line-height: 107%; mso-bidi-font-family: Arial; color: black; mso-color-alt: windowtext; mso-bidi-font-weight: bold;">Returns true if the selected temperature sensor is shorted (not applicable to thermocouple)</span>

</td></tr></tbody></table>

#### <span style="color: rgb(0, 0, 0);">Example scripts</span>

##### Add device, rename and set device properties

<div id="bkmrk-%2F%2F-add-device-with-s"><span style="color: rgb(45, 194, 107);">// Add device with serial number 20054-027</span></div><div id="bkmrk-smd.add%28%2220054-027%22%29">smd.Add(<span style="color: rgb(186, 55, 42);">"20054-027"</span>);</div><div id="bkmrk--13">  
</div><div id="bkmrk-%2F%2F-set-name-of-devic"><span style="color: rgb(45, 194, 107);">// Set name of device with serial number 20054-027 to MyDevice</span></div><div id="bkmrk-smd.name%28%2220054-027%22">smd.Name(<span style="color: rgb(186, 55, 42);">"20054-027","MyDevice"</span>);</div><div id="bkmrk--14">  
</div><div id="bkmrk-%2F%2F-select-device-wit"><span style="color: rgb(45, 194, 107);">// Select device with name MyDevice</span></div><div id="bkmrk-smd.select%28%22mydevice">smd.Select(<span style="color: rgb(186, 55, 42);">"MyDevice")</span>;</div><div id="bkmrk--15">  
</div><div id="bkmrk-%2F%2F-set-the-accelerat"><span style="color: rgb(45, 194, 107);">// Set the acceleration and deceleration rate in Hz/s</span></div><div id="bkmrk-smd.acceleration%28100">smd.Acceleration(<span style="color: rgb(255, 0, 255);">100</span>);</div><div id="bkmrk-smd.deceleration%28100">smd.Deceleration(<span style="color: rgb(255, 0, 255);">100</span>);</div><div id="bkmrk--16">  
</div><div id="bkmrk-%2F%2F-set-the-accelerat-1"><span style="color: rgb(45, 194, 107);">// Set the acceleration current</span></div><div id="bkmrk-smd.accelerationcurr">smd.AccelerationCurrent(<span style="color: rgb(255, 0, 255);">1.044</span>);</div><div id="bkmrk--17">  
</div><div id="bkmrk-%2F%2F-set-the-hold-curr"><span style="color: rgb(45, 194, 107);">// Set the hold current</span></div><div id="bkmrk-smd.holdcurrent%280%29%3B">smd.HoldCurrent(<span style="color: rgb(255, 0, 255);">0</span>);</div><div id="bkmrk--18">  
</div><div id="bkmrk-%2F%2F-set-the-run-curre"><span style="color: rgb(45, 194, 107);">// Set the run current</span></div><div id="bkmrk-smd.runcurrent%280.5%29%3B">smd.RunCurrent(<span style="color: rgb(255, 0, 255);">0.5</span>);</div><div id="bkmrk--19">  
</div><div id="bkmrk-%2F%2F-set-the-start-fre"><span style="color: rgb(45, 194, 107);">// Set the start frequency</span></div><div id="bkmrk-smd.startfrequency%281">smd.StartFrequency(<span style="color: rgb(255, 0, 255);">10</span>);</div><div id="bkmrk--20">  
</div><div id="bkmrk-%2F%2F-set-the-step-freq"><span style="color: rgb(45, 194, 107);">// Set the step frequency</span></div><div id="bkmrk-smd.stepfrequency%2810">smd.StepFrequency(<span style="color: rgb(255, 0, 255);">1000</span>);</div><div id="bkmrk--21">  
</div><div id="bkmrk-%2F%2F-set-the-frequency"><span style="color: rgb(45, 194, 107);">// Set the frequency at which the drive transitions to full step</span></div><div id="bkmrk-smd.microsteptransit">smd.MicrostepTransition(<span style="color: rgb(255, 0, 255);">500</span>);</div><div id="bkmrk--22">  
</div><div id="bkmrk-%2F%2F-set-the-micostep-"><span style="color: rgb(45, 194, 107);">// Set the micostep resolution</span></div><div id="bkmrk-smd.resolution%2864%29%3B">smd.Resolution(<span style="color: rgb(255, 0, 255);">64</span>);</div><div id="bkmrk-%7D"></div>##### Execute a series of movements, illustrating synchronous move commands

<div id="bkmrk-%2F%2F-select-device-and"><div id="bkmrk-%2F%2F-select-device-wit-1"><span style="color: rgb(45, 194, 107);">// Select device and set mode to remote</span></div><div id="bkmrk-smd.select%28%22mydevice-1">smd.Select(<span style="color: rgb(186, 55, 42);">"MyDevice"</span>);</div><div id="bkmrk-smd.mode%282%29%3B">smd.Mode(<span style="color: rgb(255, 0, 255);">2</span>);</div><div id="bkmrk-%C2%A0-%C2%A0-%2F%2F-move-motor-%2B5"></div><div><span style="color: rgb(45, 194, 107);">// Move +100 steps, then -500 steps, and finally +100 steps</span></div><div><span style="color: rgb(45, 194, 107);">// "MoveRelative" executes synchronously, i.e. the motor must arrive at its destination position before the next line of code executes</span></div><div id="bkmrk-%C2%A0-%C2%A0-smd.moverelative">smd.MoveRelative(<span style="color: rgb(255, 0, 255);">500</span>);</div><div>smd.MoveRelative(<span style="color: rgb(255, 0, 255);">-</span><span style="color: rgb(255, 0, 255);">500</span>);</div><div>smd.MoveRelative(<span style="color: rgb(255, 0, 255);">1</span><span style="color: rgb(255, 0, 255);">00</span>);</div><div>  
</div><div><span style="color: rgb(45, 194, 107);">// Log the finishing step position to the command line output area</span></div><div>smd.Log(smd.ActualPosition()[<span style="color: rgb(255, 0, 255);">0</span>]);</div><div>  
</div></div>##### Execute movement on multiple drives, illustrating synchronous and asynchronous commands

<div id="bkmrk-%2F%2F-select-first-devi"><div id="bkmrk-%C2%A0-%C2%A0%C2%A0"><div id="bkmrk-%2F%2F-select-first-devi-1"><span style="color: rgb(45, 194, 107);">// Select first device and start a movement</span></div><div id="bkmrk-smd.select%28%22device_0">smd.Select(<span style="color: rgb(186, 55, 42);">"Device\_0"</span>);</div><div id="bkmrk-smd.mode%282%29%3B-1">smd.Mode(<span style="color: rgb(255, 0, 255);">2</span>);</div><div id="bkmrk-smd.moverelativeasyn">smd.MoveRelativeAsync(<span style="color: rgb(255, 0, 255);">10000</span>); <span style="color: rgb(45, 194, 107);">// Execution continues to the next line of code immediately, regardless of how long this move will</span></div><div><span style="color: rgb(45, 194, 107);"> // requires to complete.</span></div></div><div>  
</div><div><span style="color: rgb(45, 194, 107);">// Select second device and start a movement</span></div><div><div id="bkmrk-smd.select%28%22device_1">smd.Select(<span style="color: rgb(186, 55, 42);">"Device\_1"</span>);</div><div id="bkmrk-smd.mode%282%29%3B-2">smd.Mode(<span style="color: rgb(255, 0, 255);">2</span>);</div><div id="bkmrk--23"></div><div id="bkmrk-smd.moverelativeasyn-1">smd.MoveRelativeAsync(<span style="color: rgb(255, 0, 255);">5000</span>);</div></div><div id="bkmrk--24">  
</div><div><span style="color: rgb(45, 194, 107);">// Both motors are completing their moves at the same time.</span></div></div>##### Get value of actual position counter and log to command line

<div id="bkmrk-%2F%2F-select-device-wit-2"><span style="color: rgb(45, 194, 107);">// Select device with name MyDevice</span></div><div id="bkmrk-smd.select%28%22mydevice-2">smd.Select(<span style="color: rgb(186, 55, 42);">"MyDevice"</span>);</div><div id="bkmrk--27">  
</div><div id="bkmrk-%2F%2F-store-actual-posi"><span style="color: rgb(45, 194, 107);">// Store actual position in a variable</span></div><div id="bkmrk-pact-%3D-smd.actualpos">pact = smd.ActualPosition();</div><div id="bkmrk--28">  
</div><div id="bkmrk-%2F%2F-log-result-to-com"><span style="color: rgb(45, 194, 107);">// Log result to command line</span></div><div id="bkmrk-smd.log%28pact%5B0%5D%29%3B">smd.Log(pact[<span style="color: rgb(255, 0, 255);">0</span>]);</div><div id="bkmrk--29">  
</div>##### Check if the motor is in standby

<div id="bkmrk-%2F%2F-select-device-wit-3"><span style="color: rgb(45, 194, 107);">// Select device with name MyDevice</span></div><div id="bkmrk-smd.select%28%22mydevice-3">smd.Select(<span style="color: rgb(186, 55, 42);">"MyDevice"</span>);</div><div id="bkmrk--30">  
</div><div id="bkmrk-%2F%2F-store-status-flag"><span style="color: rgb(45, 194, 107);">// Store status flags in a variable</span></div><div id="bkmrk-status-%3D-smd.statusf">status = smd.StatusFlags();</div><div id="bkmrk--31">  
</div><div id="bkmrk-%2F%2F-log-a-specific-bi"><span style="color: rgb(45, 194, 107);">// Log a specific bit status of the selected device to the command line</span></div><div id="bkmrk-if%28status%5B0%5D-%3D-statu">if(status[<span style="color: rgb(255, 0, 255);">0</span>] = status[<span style="color: rgb(255, 0, 255);">0</span>] &amp; (<span style="color: rgb(255, 0, 255);">0x1</span> &lt;&lt; <span style="color: rgb(255, 0, 255);">6</span>)){</div><div id="bkmrk-%C2%A0-%C2%A0-smd.log%28%22motor-i"> smd.Log(<span style="color: rgb(186, 55, 42);">"Motor is in standby"</span>);</div><div id="bkmrk-%7D-else-%7B%C2%A0-%C2%A0%C2%A0">} else { </div><div id="bkmrk-%C2%A0-%C2%A0-smd.log%28%22motor-i-1"> smd.Log(<span style="color: rgb(186, 55, 42);">"Motor is running"</span>);</div><div id="bkmrk-%7D-1">}</div>