# Software

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

The SMD4 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 SMD4 devices to your computer <p class="callout info">If you intend to ultimately connect via LAN or Serial, start off by using the USB interface to perform basic setup on the LAN or serial interface first, then once satisfied connect on LAN or Serial as required.   
      
    Multiple instances of the same physical SMD4, but on different interfaces are allowed. For example, you could plug in the SMD4 with a network cable and USB lead, add the device connected via USB, configure network settings, then add device again as a network device. This can be useful during commissioning in establishing a working setup.  
      
    Note that the LAN interface only allows one connection at a time; auto-discovery of network connected device will fail to discover a device that is always connected to another software instance, be it AML Device Control or any other software.</p>
- Start the AML Device Control software and click ‘Add device’ in the top left corner

[![image.png](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2025-01/scaled-1680-/image.png)](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2025-01/image.png)

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

[![image.png](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2024-02/scaled-1680-/tVkimage.png)](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2024-02/tVkimage.png)


<p class="callout info">The speed of auto detection varies by interface quantity of ports on your PC. Detection of USB and LAN devices is typically quick, whereas detection of devices connected via RS232 or RS485 can be considerably slower if a large number of COM ports are present on the PC.   
  
The SMD4 network interface has an implementation of SSDP (Simple Service Discovery Protocol) which allows it to be discovered easily on a network, without knowing its IP address.</p>


### <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>

[![image.png](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2025-01/scaled-1680-/JMIimage.png)](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2025-01/JMIimage.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; width: 98.8095%; height: 461.033px;"><tbody><tr style="height: 222px;"><td style="width: 50.0004%; padding: 0cm; border-style: hidden; height: 222px;" 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: 2.16882%; padding: 0cm; border-style: hidden; height: 222px;" valign="top" width="32"><span style="mso-no-proof: yes;"> </span>

</td><td style="width: 47.8318%; padding: 0cm; border-style: hidden; height: 222px;" valign="top" width="261"><span style="mso-no-proof: yes;"><span style="mso-spacerun: yes;"> </span></span>

[![image.png](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2025-01/scaled-1680-/qWlimage.png)](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2025-01/qWlimage.png)

</td></tr><tr style="height: 22.4px;"><td style="width: 50.0004%; padding: 0cm; border-style: hidden; height: 22.4px;" valign="top" width="387">  
</td><td style="width: 2.16882%; padding: 0cm; border-style: hidden; height: 22.4px;" valign="top" width="32"><span style="mso-no-proof: yes;"> </span>

</td><td style="width: 47.8318%; padding: 0cm; border-style: hidden; height: 22.4px;" valign="top" width="261"><span style="mso-no-proof: yes;"> </span>

</td></tr><tr style="height: 216.633px;"><td style="width: 50.0004%; padding: 0cm; border-style: hidden; height: 216.633px;" 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: 2.16882%; padding: 0cm; border-style: hidden; height: 216.633px;" valign="top" width="32"><span style="mso-no-proof: yes;"> </span>

</td><td style="width: 47.8318%; padding: 0cm; border-style: hidden; vertical-align: top; height: 216.633px;" valign="top" width="261"><span style="mso-no-proof: yes;"><span style="mso-spacerun: yes;">[![image.png](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2025-01/scaled-1680-/9A5image.png)](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2025-01/9A5image.png)</span></span>

</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: 318.608px;"><tbody><tr style="height: 318.608px;"><td style="width: 52.8781%; padding: 0cm; border-style: hidden; height: 318.608px;" 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 may be reset using the ![](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2023-11/embedded-image-qc93djea.png) icons adjacent to the readouts.

Individual devices may be controlled using the buttons on the controller window, or if multiple devices are selected in the system tree on the left, use the controls on the ribbon to operate them all at once.

 ![](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: 318.608px;" valign="top" width="257">[![image.png](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2025-01/scaled-1680-/YJXimage.png)](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2025-01/YJXimage.png)

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

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

<p class="callout info">Be aware that the synchronisation between multiple SMD4s is not specified or guaranteed. For example, if multiple devices are selected and the start button on the ribbon is clicked delays within the computer, software, and data connection to the SMD4 mean that each SMD4 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. Hover over a button with the mouse to show tooltip with help information.

[![image.png](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2025-01/scaled-1680-/8ibimage.png)](https://bookstack.vps-da8d40f3.arunmicro.com/uploads/images/gallery/2025-01/8ibimage.png)

### <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"><span style="color: rgb(0, 0, 0);">The software includes an easy to use script editor, that allows for sequences to be programmed and executed on multiple connected SMD4 devices, as well as system level operations such as adding and removing SMD4 devices from the project.</span><span style="color: rgb(0, 0, 0);">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 SMD4s. Type ‘smd.’ (or use the 'CTRL+K' keyboard shortcut) 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.</span></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);">Information on the available SMD4 device specific commands can be found in section [USB](https://bookstack.vps-da8d40f3.arunmicro.com/link/50#bkmrk-usb) 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/books/smd4-user-manual/page/communications-protocol#bkmrk-command-reference), however, the format of querying and commanding is different. The example below shows how the SMD4 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(1);</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 SMD4 mode to 1 (Normal)</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);">Utility functions</span>

<span style="color: rgb(0, 0, 0);">These utility functions don't translate to a command executed by the SMD4, and are used to perform tasks such as connecting devices, or creating delays in your program.</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 for a specified duration in milliseconds, before executing the next instruction.</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; mso-bidi-font-weight: bold;">Delay for a specified duration in seconds, before executing the next instruction.</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 SMD4 and that are not also available as a remote command are listed below.

<p class="callout warning">Note that these all return an array rather than a single value, with each array element corresponding to the data from one SMD4. Use the array index syntax to access the desired element. This applies regardless of the number of devices.  
  
For example, if there is only one SMD4 connected, use BakeActiveFlag()\[0\] to get the state of the bake active flag for that device.</p>

The order of the array elements matches the order in which the SMD4 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 “Z-axis” device, use MotorStandbyFlag()\[2\]. Notice that array indices are 0 based.

<table border="1" cellpadding="0" cellspacing="0" class="MsoNormalTable" id="bkmrk-function-description-1" style="border-collapse: collapse; width: 812px; border-spacing: 0px; border: medium none currentcolor;" 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>##### Execute a series of movements, illustrating synchronous move commands

<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);">1</span>);</div><div id="bkmrk-%C2%A0-%C2%A0-%2F%2F-move-motor-%2B5"></div><div id="bkmrk-%2F%2F-move-%2B100-steps%2C-"><span style="color: rgb(45, 194, 107);">// Move +100 steps, then -500 steps, and finally +100 steps</span></div><div id="bkmrk-%2F%2F-%22moverelative%22-ex"><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 id="bkmrk-smd.moverelative%28-50">smd.MoveRelative(<span style="color: rgb(255, 0, 255);">-</span><span style="color: rgb(255, 0, 255);">500</span>);</div><div id="bkmrk-smd.moverelative%28100">smd.MoveRelative(<span style="color: rgb(255, 0, 255);">1</span><span style="color: rgb(255, 0, 255);">00</span>);</div><div id="bkmrk--23"></div><div id="bkmrk-%2F%2F-log-the-finishing"><span style="color: rgb(45, 194, 107);">// Log the finishing step position to the command line output area</span></div><div id="bkmrk-smd.log%28smd.actualpo">smd.Log(smd.ActualPosition()[<span style="color: rgb(255, 0, 255);">0</span>]);</div><div id="bkmrk--24"></div>##### Execute movement on multiple drives, illustrating synchronous and asynchronous commands

<div id="bkmrk-%C2%A0-%C2%A0%C2%A0"><div id="bkmrk-%2F%2F-select-first-devi"><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: #ff00ff;">1</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 id="bkmrk--25"></div><div id="bkmrk-%2F%2F-select-second-dev"><span style="color: rgb(45, 194, 107);">// Select second device and start a movement</span></div><div id="bkmrk-smd.select%28%22device_1"><div id="bkmrk-smd.select%28%22device_1-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--26"></div><div id="bkmrk-smd.moverelativeasyn-1">smd.MoveRelativeAsync(<span style="color: rgb(255, 0, 255);">5000</span>);</div></div><div id="bkmrk--27">  
</div><div id="bkmrk-%2F%2F-both-motors-are-c"><span style="color: rgb(45, 194, 107);">// Both motors are completing their moves at the same time.</span></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--28">  
</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--29">  
</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--30">  
</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--31">  
</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--32">  
</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>