.

Axis.DriveParamWriteUInt8

DriveParamWriteUInt8 writes the 8-bit unsigned integer value to the drive parameter specified by the index argument.

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: DriveParamWriteUInt8 does not validate whether the data type is supported by the drive parameter being set to.  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.

Result

Void

Arguments

 
Argument Type Description

index

Int32

The index of the drive parameter to be written to.

value

Int8

The value to write to the drive parameter.

Common Exceptions

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

 

Visual Basic

Syntax

Sub DriveParamWriteUInt8(index As Int32, value As Byte)

Sample Code

 
controller.Axis(0).DriveParamWriteUInt8(17, 40) 


Sample Application

 

C#

Syntax

void DriveParamWriteUInt8(int index, byte value);

Sample Code

 
// For S600 SynqNet Drive:
// 0x03c FILTMODE   rw unsigned8   {0~4} 2 "Feedback Filter Mode"
int drive_param_index = 60; 

// DriveParamReadUInt8
byte current_value = controller.Axis[0].DriveParamReadUInt8(drive_param_index);

// Write down current_value
controller.Axis[0].DriveParamWriteUInt8(drive_param_index, current_value);

 

See Also

MPX Drive Parameters Overview

 

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