---
title: "Wrap Function: Simplified Position Control for Rotary Indexing in Absolute Coordinates"
description: With recent trends focusing on improving engineering efficiency, many products have been developed to specifically help shorten design cycles for machine automation.  This post describes an example of a product feature that can make absolute positioning applications less complex to manage.
image: https://blog.orientalmotor.com/hubfs/Rotary%20index%20table.jpg
---

[![Oriental Motor U.S.A. Corp.](https://blog.orientalmotor.com/hs-fs/hubfs/OM-logo-200px.jpg?width=200&height=47&name=OM-logo-200px.jpg)](https://www.orientalmotor.com/index.html)

- <https://blog.orientalmotor.com>
- [Products](https://www.orientalmotor.com/products/index.html)
- [Motor Sizing](https://www.orientalmotor.com/motor-sizing/index.html)
- [Technology](https://www.orientalmotor.com/technology/index.html)
- [FAQ](https://faq.orientalmotor.com/)
- [Contact Us](https://www.orientalmotor.com/contact/index.html)

- [Stepper Motors](https://www.orientalmotor.com/stepper-motors/index.html)
- [Servo Motors](https://www.orientalmotor.com/servo-motors/index.html)
- [Industrial Robots](https://www.orientalmotor.com/industrial-robots/index.html)
- [AC Motors & Gear Motors](https://www.orientalmotor.com/ac-motors-gear-motors/index.html)
- [Brushless DC Motors](https://www.orientalmotor.com/brushless-dc-motors-gear-motors/index.html)
- [Linear Actuators](https://www.orientalmotor.com/linear-actuators/index.html)
- [Rotary Actuators](https://www.orientalmotor.com/rotary-actuators/index.html)
- [Network Products](https://www.orientalmotor.com/network-products/index.html)
- [Cooling Fans](https://www.orientalmotor.com/cooling-fans/index.html)
- [Encoders](https://www.orientalmotor.com/encoders-sensors/index.html)

Engineering Notes

## Engineering Notes by Oriental Motor

# [Wrap Function: Simplified Position Control for Rotary Indexing in Absolute Coordinates](https://blog.orientalmotor.com/simplified-position-control-for-rotary-indexing-in-absolute-coordinates)

 \[fa icon="calendar"\] Originally posted on Jan 4, 2019, 7:56:17 PM   
Last updated on April 13, 2023 / by [Johann Tang](https://blog.orientalmotor.com/author/johann-tang)

![Johann Tang](https://app.hubspot.com/settings/avatar/8cc777610596a2b2230de2963e906c0b)

- [Tweet](https://twitter.com/share)

With recent trends focusing on improving engineering efficiency, many products have been developed to specifically help shorten design cycles for machine automation.  Part of improving efficiency is making products easier to use, so additional time and resources can be spent elsewhere.  This post describes a product feature that can make index table applications less complex to manage.

| ![Rotary index table](https://blog.orientalmotor.com/hs-fs/hubfs/Rotary%20index%20table.jpg?width=300&name=Rotary%20index%20table.jpg) | **APPLICATION EXAMPLE:** rotary index table that rotates a fixed distance repeatedly in the same direction.  A motorized rotary actuator is installed below the index table.  The product video below shows a similar application example of a syringe dispensing application; also with a rotary actuator. |
| --- | --- |
| For an index table that rotates a fixed distance repeatedly in the same direction, position management can be difficult since the internal position counter value keeps increasing.  Some mathematical calculations are necessary to convert the step count to degrees before the operator can understand where the table is actually facing. | <iframe class="hs-responsive-embed-iframe" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" xml="lang" src="https://www.youtube.com/embed/B4fV818fYJc?rel=0" width="400" height="225" frameborder="0" allowfullscreen data-service="youtube"></iframe> |

 

For example, let's say we are positioning 90 degrees at a time with a motor that has a basic step resolution of 200 steps per revolution, or 1.8° per step.  The position counter value will look like this:

| **Steps** | **0** | **50** | **100** | **150** | **200** | **250** | **300** | **350** | **400** | **450** | **500** |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| **Degrees** | **0°** | **90°** | **180°** | **270°** | **360°** | **450°** | **540°** | **630°** | **720°** | **810°** | **900°** |

 

*On a rotary table, the same index positions repeat after 360 degrees, the actual position coordinates within 360° have to be calculated.*

 

Here's a simple formula to figure out the actual position coordinates. 

**Actual Position = Current position in degrees - (360 x number of revolutions travelled)**

For 900°, the rotary table has rotated more than 2 revolutions, so the formula will be:

**Actual Position = 900° - (360° x 2) = 180°** (from home position)

 

Is there an easier way to do this?

 

| **Challenge** |
| --- |
| Manage 360° coordinates better by converting to absolute coordinates instead of steps |

For positioning management of index tables, it is easier to monitor the table position if the position count value can be set in degrees as well as clear the position counter once it passes 360°.  For the above example, the position values can be converted from step count to degrees, which makes life just a little easier.  Other functions, such as Wrap Proximity Positioning and Wrap Absolute Positioning, can be used to make position control and management even easier.

 

| **Solution** |
| --- |
| Use the **Wrap Function** to reset position counter when appropriate |

The Wrap Function automatically resets the position counter value to 0 when the motor output shaft exceeds a set value.  For example, when the "Wrap Setting Range" is set to "1 rotation", the position counter value automatically resets to 0 when the motor shaft exceeds 360° from the home position.  Gear ratios can also be added to additional adjustments.

![Wrap function setting flow chart](https://blog.orientalmotor.com/hs-fs/hubfs/image-174.png?width=400&name=image-174.png)

Here we show you a screenshot of the dedicated **MEXE02 support software** where it contains the Wrap parameter settings.

**Left Menu:**

![MEXE02 wrap menu](https://blog.orientalmotor.com/hs-fs/hubfs/MEXE02%20wrap%20menu.jpg?width=769&name=MEXE02%20wrap%20menu.jpg)

**Center Window:**

![Wrap function setting-1](https://blog.orientalmotor.com/hs-fs/hubfs/Wrap%20function%20setting-1.jpg?width=801&name=Wrap%20function%20setting-1.jpg)

The circled parameters are changed from their default values to make this possible.

| **Initial Coordinate Generation & Wrap Coordinate Setting** | To use the wrap function, select manual setting. Setting range: ABZO sensor or manual |
| --- | --- |
| **Initial Coordinate Generation & Wrap Setting Range (rev)** | Sets the wrap range. The command position returns to 0 when the motor has rotated for the number of times set here. Setting range: 5 to 655,360 (1=0.1 rev) |
| **Initial Coordinate Generation & Wrap Range Offset Ratio (%)** | Set the offset ratio of the wrap range. Setting range:  0 to 10,000 (1=0.01%) |
| **Wrap Setting** | Enable or disable |
| **The Number of the RND-ZERO output in wrap range** | Sets the number of times to turn the RND-ZERO output ON in the wrap range. Setting range: 1 to 536,870,911 divisions |

 

Here's a video showing you how to set up the Wrap Function parameters for Oriental Motor's rotary actuators by using the **MEXE02 support software**.

<iframe style="display: block; margin: 0px auto;" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" xml="lang" src="https://www.youtube.com/embed/bw1-cwcWepM?rel=0" width="700" height="394" frameborder="0" allowfullscreen></iframe>

 

  **Bonus**: Learn the various types of Wrap positioning operations you can do with this video tutorial.

<iframe width="560" height="315" src="https://www.youtube.com/embed/2XfXejb9BLw" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen style="position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; border: none;"></iframe>

 

For more information about the Wrap Function, please refer to **page 40** of the [![AZ Series Functions Manual](https://hubspot-no-cache-na2-prod.s3.amazonaws.com/cta/default/2284573/ef087954-48dc-40d6-8930-ebde6ad2797f.png)](https://hubspot-cta-redirect-na2-prod.s3.amazonaws.com/cta/redirect/2284573/ef087954-48dc-40d6-8930-ebde6ad2797f).\*   
\*The DG II Series is the hollow rotary actuator version of the AZ Series.

---

| Product Highlight: DG II Series Rotary Actuators - Low profile - AC and DC versions available - 60/85/130/200 mm frame sizes - Built-in absolute position sensor - Permissible torque up to 50 Nm (440 lb-in) - Moment load up to 100 Nm (880 lb-in) - Thrust load up to 900 lbs (408 kg) | [![DG II Series hollow rotary actuators](https://hubspot-no-cache-na2-prod.s3.amazonaws.com/cta/default/2284573/b9305403-3ca3-405e-9464-3b3c093e9da0.png)](https://hubspot-cta-redirect-na2-prod.s3.amazonaws.com/cta/redirect/2284573/b9305403-3ca3-405e-9464-3b3c093e9da0) |
| --- | --- |

| [![Learn More](https://hubspot-no-cache-na2-prod.s3.amazonaws.com/cta/default/2284573/f1ad7b9b-d3a6-43cb-94bc-13637f726db6.png)](https://hubspot-cta-redirect-na2-prod.s3.amazonaws.com/cta/redirect/2284573/f1ad7b9b-d3a6-43cb-94bc-13637f726db6) | [![Watch More Videos](https://hubspot-no-cache-na2-prod.s3.amazonaws.com/cta/default/2284573/25d4bc52-ebfc-4fbb-a7e8-132edd5b40a6.png)](https://hubspot-cta-redirect-na2-prod.s3.amazonaws.com/cta/redirect/2284573/25d4bc52-ebfc-4fbb-a7e8-132edd5b40a6) |
| --- | --- |

 

The Wrap Function is available with products from the [![AlphaStep AZ Series Family  ](https://hubspot-no-cache-na2-prod.s3.amazonaws.com/cta/default/2284573/40dbe408-3fc7-4ae1-95d4-87b8e1a398aa.png)](https://hubspot-cta-redirect-na2-prod.s3.amazonaws.com/cta/redirect/2284573/40dbe408-3fc7-4ae1-95d4-87b8e1a398aa), such as EZS linear slides, EAC linear cylinders, DGII Series rotary tables, DRS/DR compact cylinders, L rack and pinion systems, and EH gripper systems.  

 

Interested in learning more about the AlphaStep family?

[![Schedule a Demo  ](https://hubspot-no-cache-na2-prod.s3.amazonaws.com/cta/default/2284573/1e7b1d02-89a3-44b1-8bcf-5d33d24a7a34.png)](https://hubspot-cta-redirect-na2-prod.s3.amazonaws.com/cta/redirect/2284573/1e7b1d02-89a3-44b1-8bcf-5d33d24a7a34)

 

 Topics: [Stepper Motors](https://blog.orientalmotor.com/topic/stepper-motors), [Absolute Positioning](https://blog.orientalmotor.com/topic/absolute-positioning), [Linear Actuators](https://blog.orientalmotor.com/topic/linear-actuators), [VIDEOS](https://blog.orientalmotor.com/topic/videos), [Software](https://blog.orientalmotor.com/topic/software), [Application Examples](https://blog.orientalmotor.com/topic/application-examples)

![Johann Tang](https://app.hubspot.com/settings/avatar/8cc777610596a2b2230de2963e906c0b)

#### Written by [Johann Tang](https://blog.orientalmotor.com/author/johann-tang)

Johann Tang is a Product Specialist at Oriental Motor USA Corp. Before joining the marketing team, he spent 14 years in sales and technical application support, and he also led product training on various types of fractional-horsepower electric motors, gear motors, actuators, drivers, and controllers. If you have any questions, please feel free to use the live chat window, 1-800-GO-VEXTA (1-800-468-3982), or techsupport@orientalmotor.com, to reach our product support team. Sorry, comments have been turned off.

[\[fa icon="linkedin-square"\]Linkedin](https://www.linkedin.com/in/johanntang/)

Search

### Subscribe Here!

- Recent
- Popular
- Categories

### Lists by Topic

- [Stepper Motors (62)](https://blog.orientalmotor.com/topic/stepper-motors)
- [VIDEOS (61)](https://blog.orientalmotor.com/topic/videos)
- [Application Examples (48)](https://blog.orientalmotor.com/topic/application-examples)
- [Speed Control (47)](https://blog.orientalmotor.com/topic/speed-control)
- [BLDC Motors (46)](https://blog.orientalmotor.com/topic/bldc-motors)
- [Alphastep Hybrid Control (40)](https://blog.orientalmotor.com/topic/alphastep-hybrid-control)
- [Absolute Positioning (36)](https://blog.orientalmotor.com/topic/absolute-positioning)
- [Linear Actuators (34)](https://blog.orientalmotor.com/topic/linear-actuators)
- [AC Motors (32)](https://blog.orientalmotor.com/topic/ac-motors)
- [Robotics (26)](https://blog.orientalmotor.com/topic/robotics)
- [Motion Control Basics (20)](https://blog.orientalmotor.com/topic/motion-control-basics)
- [Gearheads (17)](https://blog.orientalmotor.com/topic/gearheads)
- [Software (17)](https://blog.orientalmotor.com/topic/software)
- [Incremental Positioning (16)](https://blog.orientalmotor.com/topic/incremental-positioning)
- [Servo Motors (15)](https://blog.orientalmotor.com/topic/servo-motors)
- [Product Introductions (14)](https://blog.orientalmotor.com/topic/product-introductions)
- [Factory Automation (13)](https://blog.orientalmotor.com/topic/factory-automation)
- [Motor Sizing (13)](https://blog.orientalmotor.com/topic/motor-sizing)
- [Conveyors (12)](https://blog.orientalmotor.com/topic/conveyors)
- [Medical (11)](https://blog.orientalmotor.com/topic/medical)
- [Network (11)](https://blog.orientalmotor.com/topic/network)
- [Food & Packaging (10)](https://blog.orientalmotor.com/topic/food-packaging)
- [Technical Manual Series (9)](https://blog.orientalmotor.com/topic/technical-manual-series)
- [Stepper Drivers (8)](https://blog.orientalmotor.com/topic/stepper-drivers)
- [Rotary Actuators/Index Tables (7)](https://blog.orientalmotor.com/topic/rotary-actuators-index-tables)
- [Encoders (6)](https://blog.orientalmotor.com/topic/encoders)
- [Troubleshooting (6)](https://blog.orientalmotor.com/topic/troubleshooting)
- [Washdown (6)](https://blog.orientalmotor.com/topic/washdown)
- [Case Studies (5)](https://blog.orientalmotor.com/topic/case-studies)
- [Grip Conveyors (5)](https://blog.orientalmotor.com/topic/grip-conveyors)
- [Semiconductors (5)](https://blog.orientalmotor.com/topic/semiconductors)
- [Product Demos (4)](https://blog.orientalmotor.com/topic/product-demos)
- [Smooth Drive (4)](https://blog.orientalmotor.com/topic/smooth-drive)
- [Torque Limit (Push Motion, Tension Control) (4)](https://blog.orientalmotor.com/topic/torque-limit-push-motion-tension-control)
- [Vertical Lifts (4)](https://blog.orientalmotor.com/topic/vertical-lifts)
- [XYZ/Cartesian/Gantry (4)](https://blog.orientalmotor.com/topic/xyz-cartesian-gantry)
- [AGV/AMR (3)](https://blog.orientalmotor.com/topic/agv-amr)
- [Bottle Capping (3)](https://blog.orientalmotor.com/topic/bottle-capping)
- [Cooling Fans (3)](https://blog.orientalmotor.com/topic/cooling-fans)
- [Service Life (3)](https://blog.orientalmotor.com/topic/service-life)
- [Laboratory (2)](https://blog.orientalmotor.com/topic/laboratory)
- [Pumps (2)](https://blog.orientalmotor.com/topic/pumps)
- [Chemical Mechanical Polishing (1)](https://blog.orientalmotor.com/topic/chemical-mechanical-polishing)
- [Wafer Handling (1)](https://blog.orientalmotor.com/topic/wafer-handling)
- [Wafer Pin Lifters (1)](https://blog.orientalmotor.com/topic/wafer-pin-lifters)

see all

### Posts by Topic

- [Stepper Motors (62)](https://blog.orientalmotor.com/topic/stepper-motors)
- [VIDEOS (61)](https://blog.orientalmotor.com/topic/videos)
- [Application Examples (48)](https://blog.orientalmotor.com/topic/application-examples)
- [Speed Control (47)](https://blog.orientalmotor.com/topic/speed-control)
- [BLDC Motors (46)](https://blog.orientalmotor.com/topic/bldc-motors)
- [Alphastep Hybrid Control (40)](https://blog.orientalmotor.com/topic/alphastep-hybrid-control)
- [Absolute Positioning (36)](https://blog.orientalmotor.com/topic/absolute-positioning)
- [Linear Actuators (34)](https://blog.orientalmotor.com/topic/linear-actuators)
- [AC Motors (32)](https://blog.orientalmotor.com/topic/ac-motors)
- [Robotics (26)](https://blog.orientalmotor.com/topic/robotics)
- [Motion Control Basics (20)](https://blog.orientalmotor.com/topic/motion-control-basics)
- [Gearheads (17)](https://blog.orientalmotor.com/topic/gearheads)
- [Software (17)](https://blog.orientalmotor.com/topic/software)
- [Incremental Positioning (16)](https://blog.orientalmotor.com/topic/incremental-positioning)
- [Servo Motors (15)](https://blog.orientalmotor.com/topic/servo-motors)
- [Product Introductions (14)](https://blog.orientalmotor.com/topic/product-introductions)
- [Factory Automation (13)](https://blog.orientalmotor.com/topic/factory-automation)
- [Motor Sizing (13)](https://blog.orientalmotor.com/topic/motor-sizing)
- [Conveyors (12)](https://blog.orientalmotor.com/topic/conveyors)
- [Medical (11)](https://blog.orientalmotor.com/topic/medical)
- [Network (11)](https://blog.orientalmotor.com/topic/network)
- [Food & Packaging (10)](https://blog.orientalmotor.com/topic/food-packaging)
- [Technical Manual Series (9)](https://blog.orientalmotor.com/topic/technical-manual-series)
- [Stepper Drivers (8)](https://blog.orientalmotor.com/topic/stepper-drivers)
- [Rotary Actuators/Index Tables (7)](https://blog.orientalmotor.com/topic/rotary-actuators-index-tables)
- [Encoders (6)](https://blog.orientalmotor.com/topic/encoders)
- [Troubleshooting (6)](https://blog.orientalmotor.com/topic/troubleshooting)
- [Washdown (6)](https://blog.orientalmotor.com/topic/washdown)
- [Case Studies (5)](https://blog.orientalmotor.com/topic/case-studies)
- [Grip Conveyors (5)](https://blog.orientalmotor.com/topic/grip-conveyors)
- [Semiconductors (5)](https://blog.orientalmotor.com/topic/semiconductors)
- [Product Demos (4)](https://blog.orientalmotor.com/topic/product-demos)
- [Smooth Drive (4)](https://blog.orientalmotor.com/topic/smooth-drive)
- [Torque Limit (Push Motion, Tension Control) (4)](https://blog.orientalmotor.com/topic/torque-limit-push-motion-tension-control)
- [Vertical Lifts (4)](https://blog.orientalmotor.com/topic/vertical-lifts)
- [XYZ/Cartesian/Gantry (4)](https://blog.orientalmotor.com/topic/xyz-cartesian-gantry)
- [AGV/AMR (3)](https://blog.orientalmotor.com/topic/agv-amr)
- [Bottle Capping (3)](https://blog.orientalmotor.com/topic/bottle-capping)
- [Cooling Fans (3)](https://blog.orientalmotor.com/topic/cooling-fans)
- [Service Life (3)](https://blog.orientalmotor.com/topic/service-life)
- [Laboratory (2)](https://blog.orientalmotor.com/topic/laboratory)
- [Pumps (2)](https://blog.orientalmotor.com/topic/pumps)
- [Chemical Mechanical Polishing (1)](https://blog.orientalmotor.com/topic/chemical-mechanical-polishing)
- [Wafer Handling (1)](https://blog.orientalmotor.com/topic/wafer-handling)
- [Wafer Pin Lifters (1)](https://blog.orientalmotor.com/topic/wafer-pin-lifters)

see all

### Recent Posts

[![New call-to-action](https://hubspot-no-cache-na2-prod.s3.amazonaws.com/cta/default/2284573/f24cd0b7-792e-4246-a809-1f6331235405.png)](https://hubspot-cta-redirect-na2-prod.s3.amazonaws.com/cta/redirect/2284573/f24cd0b7-792e-4246-a809-1f6331235405)

[![product-guide-gray-drop-shadow](https://hubspot-no-cache-na2-prod.s3.amazonaws.com/cta/default/2284573/interactive-194050460599.png)](https://blog.orientalmotor.com/hs/cta/wi/redirect?encryptedPayload=AVxigLLq1i1vxwRHo%2FtTg5kNcHZok6Dwy%2BzrvQERXocC83lLehbtYesnYC%2BohnbFl%2FzvQONxYG%2B%2Bthu84ck0oxTQeS0pptvoXik754CzgRvTbz0QYi5%2Blc42eSkG6iNdaFMGlREECINJDz2EUdDBYA78ebI3lz0%2B0N0VsGkQVYu9083jmwlZ8t2O8UPcpemCDHyWu3RSx25NEi2Pfwc%3D&webInteractiveContentId=194050460599&portalId=2284573)

#### About Us

Oriental Motor offers an extensive product line-up of about 50,000 different products that provide the optimal motion system. For over a century we have concentrated on technological advancement and product design improvement. This emphasis is evident in the sophisticated devices that we market today. Oriental Motor's sales and service network is international, with offices throughout North America, Europe and Asia.

#### More Links

- [\[fa icon="caret-right"\] Home](http://www.orientalmotor.com)
- [\[fa icon="caret-right"\] About Us](http://www.orientalmotor.com/company/index.html)
- [\[fa icon="caret-right"\] Contact Us](http://www.orientalmotor.com/contact/index.html)

#### Contact Us

\[fa icon="phone"\]  1-800-GO-VEXTA (468-3982)

\[fa icon="envelope"\]  sales@orientalmotor.com

\[fa icon="home"\]  570 Alaska Avenue, Torrance CA 90503

\[fa icon="chevron-up"\]Back to top

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Johann Tang",
    "url" : "https://blog.orientalmotor.com/author/johann-tang"
  },
  "dateModified" : "2023-04-13T16:43:42.750Z",
  "datePublished" : "2019-01-05T00:56:17.000Z",
  "headline" : "Wrap Function: Simplified Position Control for Rotary Indexing in Absolute Coordinates",
  "image" : [ "https://blog.orientalmotor.com/hubfs/Rotary%20index%20table.jpg" ],
  "mainEntityOfPage" : {
    "@id" : "https://blog.orientalmotor.com/simplified-position-control-for-rotary-indexing-in-absolute-coordinates",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://blog.orientalmotor.com/hubfs/OM-brand-logo-640x83.jpg"
    },
    "name" : "Oriental Motors"
  }
}
```