.

Axis.DriveParamReadUInt16

DriveParamReadUInt16 returns the drive parameter specified by the index argument as a 16-bit unsigned integer.

SynqNet drives may have drive-specific parameters. These parameters are used to provide drive-specific information to the user or allow the user to change the drive configuration.

Examples of read-only drive parameters: amplifier power rating, amplifier temperature, motor capacity, motor serial number, encoder type, etc.

Examples of read/write drive parameters: maximum torque limit, maximum speed limit, gravity compensation, etc.

Note: DriveParamReadUInt16 does not validate whether the data type is supported by the drive parameter being read.  It is up to the user to choose the correct drive parameter method.  Please refer to your drive’s manual for information about what data types are supported by each drive parameter.

Version History

Introduced in MPX 2.0.

Results

UInt16

Arguments

 
Argument Type Description
index Int32 The index of the drive parameter being read.

Common Exceptions

 
Error Reason
AxisNotMappedToSqNode The axis object is not mapped to a SynqNet node.

Visual Basic

Syntax

Function DriveParamReadUInt16(index As Int32) As UInt16

Sample Code

 
Dim x As UIn16 = controller.Axis(0).DriveParamReadUInt16(1) 


Sample Application

 

C#

Syntax

ushort DriveParamReadUInt16(int index);

Sample Code

 
ushort x = controller.Axis[0].DriveParamReadUInt16(1); 

 

See Also

MPX Drive Parameters Overview

 

       Legal Notice  |  Tech Email  |  Feedback
      
Copyright ©
2001-2021 Motion Engineering