Phidget.AddPositionOffset
-------------------------

Adds an offset (positive or negative) to the current position.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Phidget](component_Phidget.md) | [13.4](newinversion134.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ❌ No |

MBS( "Phidget.AddPositionOffset"; PhidgetRef; positionOffset ) 

**MBS**( **"Phidget.AddPositionOffset";** /\* Adds an offset (positive or negative) to the current position. \*/  
**$PhidgetRef**; /\* The reference number for the phidget.e.g. $phidget \*/   
**$positionOffset**) /\* Amount to offset the position bye.g. 0 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PhidgetRef | The reference number for the phidget. | $phidget |
| positionOffset | Amount to offset the position by | 0 |

### Result

Returns OK or error.

### Description

Adds an offset (positive or negative) to the current position.  
Please check phidgets documentation about what values are acceptable for your device.  
This can be especially useful for zeroing position.  
For Stepper, MotorPositionController, or BLDCMotor only.  
This function is free to use.

Created 16th August 2023 , last changed 16th August 2023

  
[Path.ShortPath](PathShortPath.md) - [Phidget.ChildDevices](PhidgetChildDevices.md)

[HTML Version](PhidgetAddPositionOffset.shtml)