Open Core Interface - MLPI
MLPI-MotionLogicProgrammingInterface(mlpi4MATLAB)  1.26.2
MotionLib
Collaboration diagram for MotionLib:
Motion Functions

Motion Functions

Description

The motion function group provides functionality for defining axes, commanding motion, setting and getting axes information.

The conceptual difference between a drive or device and an axis is that a drive or device is the physical device that is connected to the sercos bus and can be configured via S- and P-parameters. An axis is assigned to a drive or device and is accessible through A-parameters. Multiple axes can be assigned to a drive or device (for example, one axis is a real axis that is moving the drive, a second axis is connected to the same drive, but implements an encoder axis).

Note You find a more detailed description of the concept of axes in the IndraWorks help system of the XLC/MLC product.

The m4MMotion* functions all deal with the motion of axes. The motion commands can be structured in single axis commands, where a single axis is moved, synchronous commands, where slave axes are moved in relation to a master and utility functions like power or homing of an axis.

Each motion command usually uses a set of input arguments to define the particular movement. The command will be executed in the motion-controller and returns a handle.

This handle can be used in following requests to get status information. The handle and the axis reference a particular motion command. One axis can have multiple active commands (e.g. power is switched on and a move is commanded). In contrast, an active motion command will be interrupted as soon as a new motion command is called.

More Information

For further information, refer to the mlpiCore documentation: MotionLib

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionCamIn

m4MMotionCamIn

m4MMotionCamIn

Motion-Function: Move one of multiple axes synchonized by a CAM.

Description

This function commands one or multiple axes to synchronize to one or multiple master axes by using a cam table.

Note: To use this function an IndraDrive with cam table functionality is required.

Syntax

[motionHandle]         = m4MMotionCamIn(connection, axisRefMaster,...
axisRefSlave, numerator, denominator, fineadjust, camShaftDistance,...
startMode, syncMode, camTable)
[motionHandle, result] = m4MMotionCamIn(connection, axisRefMaster,...
axisRefSlave, numerator, denominator, fineadjust, camShaftDistance,...
startMode, syncMode, camTable)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRefMaster defines a matrix with axis and control numbers for the master axes. The argument must be numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

axisRefSlave defines a matrix with axis and control numbers for the slave axes. The argument must be numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

numerator defines the numerator value(s). The argument must be of type uint32 and can be scalar or a Nx1 matrix.

denominator defines the denominator value(s). The argument must be of type uint32 an can be scalar or a Nx1 matrix.

fineadjust defines the gear fine adjust value(s) in percent. The argument must be numeric and can be scalar or a Nx1 matrix.

camShaftDistance defines the cam shaft distance value(s) in units according to the slave axis scaling. The argument must be numeric and can be scalar or a Nx1 matrix.

startMode defines how the synchronization is achived. The argument must be a MlpiStartMode enumeration and can be scalar or a Nx1 matrix.

syncMode defines the direction of synchronization. The argument must be a MlpiSyncDirection and can be scalar or a Nx1 matrix.

camTable defines the cam table to be used. The argument must be a MlpiCamTableID enumeration and can be scalar or a Nx1 matrix.

There are the following combinations possible:

  • A slave axis can be assigned to one Master axis. E.g. m4MMotionCamIn(myCon,1,2,...).
  • Multiple slave axis can be assigned to one master axis or to multiple axes. E.g. m4MMotionCamIn(myCon,1,[0,3;0,4],num1,den1,...) or m4MMotionCamIn(myCon,[0,1;0,2],[0,3;0,4],num1,den1,...).

Arguments numerator to camTable are either scalar or a column vector with the same number of rows as the axisRefSlave matrix. A scalar is applied to all slave axes, the column vector can have individual values for each slave axis.

Output Arguments

motionHandle contains the motion handle(s) of this command. The argument is of type uint32 and can be a 1x2 or a Nx2 matrix.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

Note: The sample below needs a cam table that is preconfigured in the drive.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionCamIn

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionChangeFlexProfileSet

m4MMotionChangeFlexProfileSet

m4MMotionChangeFlexProfileSet

Motion-Function: Create a flex profile.

Description

This function writes all parameters necessary to configure one flex profile. Only one flex profile set can be generated per function call.

Syntax

m4MMotionChangeFlexProfileSet(connection, axisRef, master, ...
camShaftDistance, range, motionLaw, stepType, startVel, startAcc, ...
startJrk, endVel, endAcc, endJrk, travelVel, limitAcc, limitJrk, ...
turningPointDisplacement, masterVel, setSelection)
result = m4MMotionChangeFlexProfileSet(connection, axisRef, master, ...
camShaftDistance, range, motionLaw, stepType, startVel, startAcc, ...
startJrk, endVel, endAcc, endJrk, travelVel, limitAcc, limitJrk, ...
turningPointDisplacement, masterVel, setSelection)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.

master defines the master type. The argument is a MlpiProfileMasterType enumeration.

camShaftDistance defines the the cam shaft distance (German: Hub). The argument must be a numeric value.

range defines the master range. The argument must be a numeric value.

motionLaw defines the motion law. The argument must be a MlpiLawType enumeration.

stepType defines the relation between master and slave. The argument must be a MlpiProfileStepType enumeration.

startVel defines the slave axis starting velocity. The argument must be a numeric value.

startAcc defines the slave axis starting acceleration. The argument must be a numeric value.

startJrk defines the slave axis starting jerk. The argument must be a numeric value.

endVel defines the slave axis ending velocity. The argument must be a numeric value.

endAcc defines the slave axis ending acceleration. The argument must be a numeric value.

endJrk defines the slave axis ending jerk. The argument must be a numeric value.

travelVel defines the slave axis velocity during the movement (not implemented for all motion laws). The argument must be a numeric value.

limitAcc defines the slave axis acceleration during the movement (not implemented for all motion laws). The argument mut be a numeric value.

limitJrk defines the slave axis jerk during movement (not implemented for all motion laws). The argument must be a numeric value.

turnPointDisp defines the displacement of point of inflection. The argument must be a numeric value.

masterVel defines the master axis velocity for the flex profile. The argument must be a numeric value.

setSelection defines the set number of the profile. The argument must be a MlpiProfileSetSelection enumeration.

Arguments master to turnPointDisp are either scalar or Mx1 column vectors. All arguments that are Mx1 column vectors must have the same number of rows M. M is the number of flex profile steps. If an argument is scalar the value is applied to all steps, a column vector can have individual values for each step.

Arguments masterVel and setSelection must be scalar.

Output Arguments

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionChangeFlexProfileSet

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionClearError

m4MMotionClearError

m4MMotionClearError

Motion-Function: Clear motion error of axes.

Description

This function resets pending errors of one or multiple axes. An axis must not be in state Error when trying to switch power on or to move it.

Syntax

m4MMotionClearError(connection, axisRef)
result = m4MMotionClearError(connection, axisRef)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

Output Arguments

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionClearError

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionDecodeAxisState

m4MMotionDecodeAxisState

m4MMotionDecodeAxisState

Motion-Function: Decode the state of an axis.

Description

This function returns the decoded axis state information of the input argument codedAxisState. The function accepts a scalar input value only.

Syntax

[decodedAxisState] = m4MMotionDecodeAxisState(codedAxisState)

Input Arguments

codedAxisState defines the coded axis state as returned by the function m4MMotionGetState. The argument must be scalar uint32 value.

Output Arguments

decodedAxisState contains information about the axis state. The argument is a scalar MlpiAxisStateDecoder structure.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionGetState

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionFlexProfile

m4MMotionFlexProfile

m4MMotionFlexProfile

Motion-Function: Move one of multiple axes with flex profiles.

Description

This function commands one or multiple axes to synchronize to a master by using a flex profile. The command can only be used on IndraDrives with interpolation in the motion-controller or with sercos drives.

Syntax

[motionHandle]         = m4MMotionFlexProfile(connection, ...
axisRefMaster, axisRefSlave, numerator, denominator, fineadjust, ...
setSelection, useSwitchingPos, switchingPos, profileEntry, ...
masterOffset, slaveOffset, syncType, syncVel, syncAcc, exeMode)
[motionHandle, result] = m4MMotionFlexProfile(connection, ...
axisRefMaster, axisRefSlave, numerator, denominator, fineadjust, ...
setSelection, useSwitchingPos, switchingPos, profileEntry, ...
masterOffset, slaveOffset, syncType, syncVel, syncAcc, exeMode)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRefMaster defines a matrix with axis and control numbers for the master axes. The argument must be numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

axisRefSlave defines a matrix with axis and control numbers for the slave axes. The argument must be numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

numerator defines the numerator value(s). The argument must be of type uint32 and can be scalar or a Nx1 matrix.

denominator defines the denominator value(s). The argument must be of type uint32 an can be scalar or a Nx1 matrix.

fineadjust defines the gear fine adjust value(s) in percent. The argument must be numeric and can be scalar or a Nx1 matrix.

setSelection defines the profile set(s) that will be used. The argument must be a MlpiProfileSetSelection enumeration and can be scalar or a Nx1 matrix.

useSwitchingPos defines if switching positions will be used. The argument must be of type logical and can be scalar or a Nx1 matrix.

switchingPos defines the switching position value(s). The argument must be numeric and can be scalar or a Nx1 matrix.

profileEntry defines how the profile interprets the starting point(s). The argument must be a MlpiProfileStartPoint enumeration and can be scalar or a Nx1 matrix.

masterOffset defines the master offset value(s). The argument must be numeric and can be scalar or a Nx1 matrix.

slaveOffset defines the slave offset value(s). The argument must be numeric and can be scalar or a Nx1 matrix.

syncType defines the type(s) of synchronization. The argument must be a MlpiSyncType enumeration and can be scalar or a Nx1 matrix.

syncVel defines the maximum synchronization velocity. The argument must be numeric and can be scalar or a Nx1 matrix.

syncAcc defines the maximum synchronization acceleration. The argument must be numeric and can be scalar or a Nx1 matrix.

exeMode defines the execution mode(s). The argument must be a MlpiProfileExecutionMode enumeration and can be scalar or a Nx1 matrix.

There are the following master/slave combinations possible:

  • A slave axis can be assigned to one Master axis. E.g. m4MMotionFlexProfile(myCon,1,2,...).
  • Multiple slave axis can be assigned to one master axis or to multiple master axes. E.g. m4MMotionFlexProfile(myCon,1,[0,3;0,4],num1,den1,...) or m4MMotionFlexProfile(myCon,[0,1;0,2],[0,3;0,4],num1,den1,...).

Parameters numerator to exeMode are either scalar or a column vector with the same number of rows as the axisRefSlave matrix. A scalar is applied to all slave axes, the column vector can have individual values for each slave axis.

Output Arguments

motionHandle contains the motion handle(s) of this command. The argument is of type uint32 and can be a 1x2 or a Nx2 matrix.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionFlexProfile

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionGearInPos

m4MMotionGearInPos

m4MMotionGearInPos

Motion-Function: Move one of multiple axes position synchronized by an electronic gear.

Description

This function commands position synchronization of one or multiple slave axes to one or multiple master axes. The synchronization is defined by a gear ratio. The gear ratio is calculated as i = (numerator / denominator) * (1 + fineadjust). Synchronization can be parameterized with startMode and syncMode.

Syntax

[motionHandle]         = m4MMotionGearInPos(connection,...
axisRefMaster, axisRefSlave, numerator, denominator, fineadjust,...
startMode, syncMode)
[motionHandle, result] = m4MMotionGearInPos(connection,...
axisRefMaster, axisRefSlave, numerator, denominator, fineadjust,...
startMode, syncMode)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRefMaster defines a matrix with axis and control numbers for the master axes. The argument must be numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

axisRefSlave defines a matrix with axis and control numbers for the slave axes. The argument must be numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

numerator defines the numerator value(s). The argument must be of type uint32 and can be scalar or a Nx1 matrix.

denominator defines the denominator value(s). The argument must be of type uint32 an can be scalar or a Nx1 matrix.

fineadjust defines the gear fine adjust value(s) in percent. The argument must be numeric and can be scalar or a Nx1 matrix.

startMode defines how the synchronization is achived. The argument must be a MlpiStartMode enumeration and can be scalar or a Nx1 matrix.

syncMode defines the direction of synchronization. The argument must be a MlpiSyncDirection and can be scalar or a Nx1 matrix.

There are the following combinations possible: * A slave axis can be assigned to one Master axis. E.g. m4MMotionGearInPos(myCon,1,2,num1,den1,fadj1,stMode1,syMode1).

  • Multiple slave axis can be assigned to one master axis or to multiple axes. E.g. m4MMotionGearInPos(myCon,1,[0,3;0,4],num1,den1,fadj1,stMode1,syMode1) or m4MMotionGearInPos(myCon,[0,1;0,2],[0,3;0,4],num1,den1,fadj1,stMode1,syMode1).

Arguments numerator to syncMode are either scalar or a column vector with the same number of rows as the axisRefSlave matrix. A scalar is applied to all slave axes, the column vector can have individual values for each slave axis.

Output Arguments

motionHandle contains the motion handle(s) of this command. The argument is of type uint32 and can be a 1x2 or a Nx2 matrix.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionGearInPos

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionGearIn

m4MMotionGearIn

m4MMotionGearIn

Motion-Function: Move one of multiple axes synchronized by an electronic gear.

Description

This function commands velocity synchronization of one or multiple slave axes to one or multiple master axes. The synchronization is defined by a gear ratio. The gear ratio is calculated as i = (numerator / denominator) * (1 + fineadjust).

Syntax

[motionHandle]         = m4MMotionGearIn(connection, axisRefMaster,...
axisRefSlave, numerator, denominator, fineadjust)
[motionHandle, result] = m4MMotionGearIn(connection, axisRefMaster,...
axisRefSlave, numerator, denominator, fineadjust)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRefMaster defines a matrix with axis and control numbers for the master axes. The argument must be numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

axisRefSlave defines a matrix with axis and control numbers for the slave axes. The argument must be numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

numerator defines the numerator value(s). The argument must be of type uint32 and can be scalar or a Nx1 matrix.

denominator defines the denominator value(s). The argument must be of type uint32 an can be scalar or a Nx1 matrix.

fineadjust defines the gear fine adjust value(s) in percent. The argument must be numeric and can be scalar or a Nx1 matrix.

There are the following combinations possible:

  • A slave axis can be assigned to one master axis. E.g. m4MMotionGearIn(myCon,1,2,num1,den1,fadj1).
  • Multiple slave axis can be assigned to one or multiple master axes. E.g. m4MMotionGearIn(myCon,1,[0,3;0,4],num1,den1,fadj1) or m4MMotionGearIn(myCon,[0,1;0,2],[0,3;0,4],num1,den1,fadj1).

Arguments numerator to fineadjust are either scalar or a column vector with the same number of rows as the axisRefSlave matrix. A scalar is applied to all slave axes, the column vector can have individual values for each slave axis.

Output Arguments

motionHandle contains the motion handle(s) of this command. The argument is of type uint32 and can be a 1x2 or a Nx2 matrix.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionGearIn

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionGetAccelerationScaling

m4MMotionGetAccelerationScaling

m4MMotionGetAccelerationScaling

Motion-Function: Get acceleration scaling of one or multiple axes.

Description

This function reads the coded acceleration scaling of one or multiple axes.

Syntax

[accScaling]         = m4MMotionGetAccelerationScaling(connection,...
axisRef)
[accScaling, result] = m4MMotionGetAccelerationScaling(connection,...
axisRef)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

Output Arguments

accScaling contains the coded acceleration scaling(s). The argument is of type uint16 and can be scalar or a Nx1 matrix.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionGetAccelerationScaling

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionGetActualAcceleration

m4MMotionGetActualAcceleration

m4MMotionGetActualAcceleration

Motion-Function: Get the actual acceleration of one or multiple axes.

Description

This function reads the actual acceleration of one or multiple axes on a motion-controller.

Syntax

[acceleration]         = m4MMotionGetActualAcceleration(connection,...
axisRef)
[acceleration, result] = m4MMotionGetActualAcceleration(connection,...
axisRef)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

Output Arguments

acceleration contains the actual acceleration value(s). The argument is of type double and can be scalar or a Nx1 matrix.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionGetActualAcceleration

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionGetActualPosition

m4MMotionGetActualPosition

m4MMotionGetActualPosition

Motion-Function: Get the actual position of one or multiple axes.

Description

This function reads the actual position of one or multiple axes on a motion-controller.

Syntax

[position]         = m4MMotionGetActualPosition(connection, axisRef)
[position, result] = m4MMotionGetActualPosition(connection, axisRef)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

Output Arguments

position contains the actual position value(s). The argument is of type double and can be scalar or a Nx1 matrix.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionGetActualPosition

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionGetActualTorque

m4MMotionGetActualTorque

m4MMotionGetActualTorque

Motion-Function: Get the actual torque of one or multiple axes.

Description

This function reads the actual torque of one or multiple axes on a motion-controller.

Syntax

[torque]         = m4MMotionGetActualTorque(connection, axisRef)
[torque, result] = m4MMotionGetActualTorque(connection, axisRef)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

Output Arguments

torque contains the actual torque value(s). The argument is of type double and can be scalar or a Nx1 matrix.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionGetActualTorque

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionGetActualVelocity

m4MMotionGetActualVelocity

m4MMotionGetActualVelocity

Motion-Function: Get the actual velocity of one or multiple axes.

Description

This function reads the actual velocity of one or multiple axes on a motion-controller.

Syntax

[velocity]         = m4MMotionGetActualVelocity(connection, axisRef)
[velocity, result] = m4MMotionGetActualVelocity(connection, axisRef)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

Output Arguments

velocity contains the velocity value(s). The argument is of type double and can be scalar or a Nx1 matrix.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionGetActualVelocity

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionGetAxisType

m4MMotionGetAxisType

m4MMotionGetAxisType

Motion-Function: Get type of one or multiple axes.

Description

This function reads the type of one or multiple axes.

Syntax

[axisType]         = m4MMotionGetAxisType(connection, axisRef)
[axisType, result] = m4MMotionGetAxisType(connection, axisRef)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

Output Arguments

axisType contains the encoded type information of the defined axis. The argument is of type uint16 and is scalar or a Nx1 vector. In order to decode the information use the function m4MMotionDecodeAxisType.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionGetAxisType

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionGetAxisValues

m4MMotionGetAxisValues

m4MMotionGetAxisValues

Motion-Function: Get values of one or multiple axes.

Description

This function reads structures of values of one or multiple axes. You may want to use this structure to read several sets of axis information for several axes using one single function call during operation of the axes. This gives increased performance in comparison to reading the values bit by bit and axis by axis.

Syntax

[axisValues]         = m4MMotionGetAxisValues(connection, axisRef)
[axisValues, result] = m4MMotionGetAxisValues(connection, axisRef)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

Output Arguments

axisValues is a Nx1 array of MlpiAxisValues structures with the operation information about the axes.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionGetAxisValues

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionGetConfiguredAxis

m4MMotionGetConfiguredAxis

m4MMotionGetConfiguredAxis

Motion-Function: Get list of configured axes.

Description

This function returns a list of configured axes and the number of configured axes. The maximum number of readable axis is 100.

Syntax

[configAxes, numElementsRet]         = m4MMotionGetConfiguredAxes(...
connection)
[configAxes, numElementsRet, result] = m4MMotionGetConfiguredAxes(...
connection)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

Output Arguments

configAxes contains an Mx1 matrix of MlpiAxisInformation structures.

numElementsRet contains the number M of configured axes. The argument is of type uint32.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionGetConfiguredAxis

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionGetInterpolatedPosition

m4MMotionGetInterpolatedPosition

m4MMotionGetInterpolatedPosition

Motion-Function: Get the interpolated position of one or multiple axes.

Description

This function reads the interpolated position of one or multiple axes on motion-controller.

Syntax

[position]         = m4MMotionGetInterpolatedPosition(connection,...
axisRef)
[position, result] = m4MMotionGetInterpolatedPosition(connection,...
axisRef)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

Output Arguments

position contains the interpolated position value(s). The argument is of type double and is scalar or a Nx1 matrix.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionGetInterpolatedPosition

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionGetInterpolatedTorque

m4MMotionGetInterpolatedTorque

m4MMotionGetInterpolatedTorque

Motion-Function: Get the interpolated torque of one or multiple axes.

Description

This function reads the interpolated torque of one or multiple axes on a motion-controller. The function can be used with real axes only.

Syntax

[torque]         = m4MMotionGetInterpolatedTorque(connection, axisRef)
[torque, result] = m4MMotionGetInterpolatedTorque(connection, axisRef)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

Output Arguments

torque contains the interpolated torque value(s). The argument is of type double and can be scalar or a Nx1 matrix.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionGetInterpolatedTorque

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionGetInterpolatedVelocity

m4MMotionGetInterpolatedVelocity

m4MMotionGetInterpolatedVelocity

Motion-Function: Get the interpolated velocity of one or multiple axes.

Description

This function reads the interpolated velocity of one or multiple axes on a motion-controller.

Syntax

[velocity]         = m4MMotionGetInterpolatedVelocity(connection,...
axisRef)
[velocity, result] = m4MMotionGetInterpolatedVelocity(connection,...
axisRef)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

Output Arguments

velocity contains the interpolated velocity value(s). The argument is of type double and can be scalar or a Nx1 matrix.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionGetInterpolatedVelocity

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionGetModulo

m4MMotionGetModulo

m4MMotionGetModulo

Motion-Function: Get modulo of one or multiple axes.

Description

This function reads the modulo of one or multiple axes.

Syntax

[axisModulo]         = m4MMotionGetModulo(connection, axisRef)
[axisModulo, result] = m4MMotionGetModulo(connection, axisRef)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

Output Arguments

axisModulo contains the encoded type information of the defined axis. The argument is of type uint16 and is scalar or a Nx1 vector. In order to decode the information use the function m4MMotionDecodeModulo.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionGetModulo

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionGetPositionScaling

m4MMotionGetPositionScaling

m4MMotionGetPositionScaling

Motion-Function: Get position scaling of one or multiple axes.

Description

This function reads the coded position scaling of one or multiple axes.

Syntax

[posScaling]         = m4MMotionGetPositionScaling(connection, axisRef)
[posScaling, result] = m4MMotionGetPositionScaling(connection, axisRef)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

Output Arguments

posScaling contains the coded position scaling(s). The argument is of type uint16 and can be scalar or a Nx1 matrix.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionGetPositionScaling

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionGetStateExtended

m4MMotionGetStateExtended

m4MMotionGetStateExtended

Motion-Function: Get extended state of one or multiple axes.

Description

This function reads the extended state of one or multiple axes.

The state information that is returned corresponds to the PLCopen state information. If state information according to IEC61131-3 function blocks is needed, refer to the function m4MMotionGetState.

Syntax

[axisState]         = m4MMotionGetStateExtended(connection, axisRef)
[axisState, result] = m4MMotionGetStateExtended(connection, axisRef)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

Output Arguments

axisState contains the encoded extended state information of the defined axis. The argument is of type uint32 and is scalar or a Nx1 vector. In order to decode the information use the function m4MMotionDecodeAxisStateExtended.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionGetStateExtended

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionGetState

m4MMotionGetState

m4MMotionGetState

Motion-Function: Get state of one or multiple axes.

Description

This function reads the state of one or multiple axes.

The state information that is returned corresponds to the output signals of IEC61131-3 function blocks. If PLCopen state information is needed, refer to the function m4MMotionGetStateExtended.

Syntax

[axisState]         = m4MMotionGetState(connection, axisRef)
[axisState, result] = m4MMotionGetState(connection, axisRef)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

Output Arguments

axisState contains the encoded state information of the defined axis. The argument is of type uint32 and is scalar or a Nx1 vector. In order to decode the information use the function m4MMotionDecodeAxisState.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionGetState

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionGetStatus

m4MMotionGetStatus

m4MMotionGetStatus

Motion-Function: Get the status of one or multiple movement commands.

Description

This function reads the status of one or multiple motion commands.

Syntax

[status]         = m4MMotionGetStatus(connection, axisRef, motionHandle)
[status, result] = m4MMotionGetStatus(connection, axisRef, motionHandle)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

motionHandle defined the handle(s) to the motion command(s) which were returned by the corresponding m4MMotion functions.

Output Arguments

status contains the status of the motion command(s). The argument contains a single or multiple MlpiMotionStatus structures as 1x1 or Nx1 matrix.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionGetStatus

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionGetVelocityScaling

m4MMotionGetVelocityScaling

m4MMotionGetVelocityScaling

Motion-Function: Get velocity scaling of one or multiple axes.

Description

This function reads the coded velocity scaling of one or multiple axes.

Syntax

[velScaling]         = m4MMotionGetVelocityScaling(connection, axisRef)
[velScaling, result] = m4MMotionGetVelocityScaling(connection, axisRef)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

Output Arguments

velScaling contains the coded velocity scaling(s). The argument is of type uint16 and can be scalar or a Nx1 matrix.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionGetVelocityScaling

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionHome

m4MMotionHome

m4MMotionHome

Motion-Function: Home one or multiple axes.

Description

This function commands the homing of one or multiple axes. Only axes with incremental encoders can be homed. If the axis has an absolute encoder, the command m4MMotionSetAbsoluteMeasurement must be used.

Syntax

[motionHandle]         = m4MMotionHome(connection, axisRef)
[motionHandle, result] = m4MMotionHome(connection, axisRef)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

Output Arguments

motionHandle contains the motion handle(s) of this command. The argument is of type uint32 and can be a 1x2 or a Nx2 matrix.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionHome

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionMoveAbsolute

m4MMotionMoveAbsolute

m4MMotionMoveAbsolute

Motion-Function: Move one or multiple axes to an absolute position.

Description

This function commands an absolute position movement. This means that one or multiple axes will move to defined target positions.

Syntax

[motionHandle]         = m4MMotionMoveAbsolute(connection, axisRef,...
position, velocity, acceleration, deceleration, jerk)
[motionHandle, result] = m4MMotionMoveAbsolute(connection, axisRef,...
position, velocity, acceleration, deceleration, jerk)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

position defines the absolute position value(s).

velocity defines the maximum velocity value(s).

acceleration defines the maximum acceleration value(s).

deceleration defines the maximum deceleration value(s).

jerk defines the jerk value(s).

The arguments position to jerk can either be scalar or Nx1 matrices. If the argument is scalar it is applied to all axes. If the argument is a Nx1 matrix it must contain a value for each axis.

Output Arguments

motionHandle contains the motion handle(s) of this command. The argument is of type uint32 and can be a 1x2 or a Nx2 matrix.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionMoveAbsolute

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionMoveAdditive

m4MMotionMoveAdditive

m4MMotionMoveAdditive

Motion-Function: Command additive position movement of one or multiple axes.

Description

This function commands an additive movement of one or multiple axes. The additive position is added to the target position and is used as new target. It can be used to add a relative position to the already commanded movement.

Syntax

[motionHandle]         = m4MMotionMoveAdditive(connection, axisRef,...
distance, velocity, acceleration, deceleration, jerk)
[motionHandle, result] = m4MMotionMoveAdditive(connection, axisRef,...
distance, velocity, acceleration, deceleration, jerk)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

distance defines the additive distance value(s).

velocity defines the maximum velocity value(s).

acceleration defines the maximum acceleration value(s).

deceleration defines the maximum deceleration value(s).

jerk defines the jerk value(s).

The arguments distance to jerk can either be scalar or Nx1 matrices. If the argument is scalar it is applied to all axes. If the argument is a Nx1 matrix it must contain a value for each axis.

Output Arguments

motionHandle contains the motion handle(s) of this command. The argument is of type uint32 and can be a 1x2 or a Nx2 matrix.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionMoveAdditive

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionMoveRelative

m4MMotionMoveRelative

m4MMotionMoveRelative

Motion-Function: Command relative movement of one or multiple axes.

Description

This function commands a relative movement of one or multiple axes. The relative position is added to the current position and is used as the new target. The difference between this and an additive movement is that the position offset is added to the current position, not the target position. So a movement command which is currently running will be interrupted and only the position offset is added to the current position.

Syntax

[motionHandle]         = m4MMotionMoveRelative(connection, axisRef,...
distance, velocity, acceleration, deceleration, jerk)
[motionHandle, result] = m4MMotionMoveRelative(connection, axisRef,...
distance, velocity, acceleration, deceleration, jerk)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

distance defines the relative distance value(s).

velocity defines the maximum velocity value(s).

acceleration defines the maximum acceleration value(s).

deceleration defines the maximum deceleration value(s).

jerk defines the jerk value(s).

The arguments distance to jerk can either be scalar or Nx1 matrices. If the argument is scalar it is applied to all axes. If the argument is a Nx1 matrix it must contain a value for each axis.

Output Arguments

motionHandle contains the motion handle(s) of this command. The argument is of type uint32 and can be a 1x2 or a Nx2 matrix.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionMoveRelative

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionMoveVelocity

m4MMotionMoveVelocity

m4MMotionMoveVelocity

Motion-Function: Command a velocity controlled motion of one or multiple axes.

Description

This function commands a velocity movement of one or multiple axes. Once the commanded velocity had been reached, the axis will continue to move with this velocity until another command is issued.

Syntax

[motionHandle]         = m4MMotionMoveVelocity(connection, axisRef,...
velocity, acceleration, deceleration, jerk)
[motionHandle, result] = m4MMotionMoveVelocity(connection, axisRef,...
velocity, acceleration, deceleration, jerk)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

velocity defines the setpoint velocity value(s).

acceleration defines the maximum acceleration value(s).

deceleration defines the maximum deceleration value(s).

jerk defines the jerk value(s).

The arguments velocity to jerk can either be scalar or Nx1 matrices. If the argument is scalar it is applied to all axes. If the argument is a Nx1 matrix it must contain a value for each axis.

Output Arguments

motionHandle contains the motion handle(s) of this command. The argument is of type uint32 and can be a 1x2 or a Nx2 matrix.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionMoveVelocity

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionOpenCyclicAnalogChannel

m4MMotionOpenCyclicAnalogChannel

m4MMotionOpenCyclicAnalogChannel

Motion-Function: Open a cyclic analog channel for one or multiple axes.

Description

This function opens a channel for cyclic analog commands.

The function deals with motion that is commanded by sending cyclic data. This is can be used to generate your own profiles, contrary to all other motion commands where the profiles are generated by the control. In order to be able to write cyclic data, a channel must be opened first. Once opened, cyclic data should be written each motion cycle. No explicit error will occur if no cyclic data is written. In this case, the last known cyclic value will be send again. But keep in mind, that the movement on the drive might be jittered or even result in errors in the drive. To correctly synchronize your cyclic write access to the drive refer to function m4MTaskWaitForEvent. The cyclic command mode can be exited using any other single or synchronous motion command. Prior to opening a cyclic channel, you should initialize the first channel value by using the corresponding write command m4MMotionWriteCyclicAnalog.

Syntax

[motionHandle]         = m4MMotionOpenCyclicAnalogChannel(connection,...
axisRef)
[motionHandle, result] = m4MMotionOpenCyclicAnalogChannel(connection,...
axisRef)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

Output Arguments

motionHandle contains the motion handle(s) of this command. The argument is of type uint32 and can be a 1x2 or a Nx2 matrix.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionOpenCyclicAnalogChannel

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionOpenCyclicPositionChannel

m4MMotionOpenCyclicPositionChannel

m4MMotionOpenCyclicPositionChannel

Motion-Function: Open a cyclic position channel for one or multiple axes.

Description

This function opens a channel for cyclic position commands.

The function deals with motion that is commanded by sending cyclic data. This is can be used to generate your own profiles, contrary to all other motion commands where the profiles are generated by the control. In order to be able to write cyclic data, a channel must be opened first. Once opened, cyclic data should be written each motion cycle. No explicit error will occur if no cyclic data is written. In this case, the last known cyclic value will be send again. But keep in mind, that the movement on the drive might be jittered or even result in errors in the drive. To correctly synchronize your cyclic write access to the drive refer to function m4MTaskWaitForEvent. The cyclic command mode can be exited using any other single or synchronous motion command. Prior to opening a cyclic channel, you should initialize the first channel value by using the corresponding write command m4MMotionWriteCyclicPosition.

Syntax

[motionHandle]         = m4MMotionOpenCyclicPositionChannel(...
connection, axisRef)
[motionHandle, result] = m4MMotionOpenCyclicPositionChannel(...
connection, axisRef)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

Output Arguments

motionHandle contains the motion handle(s) of this command. The argument is of type uint32 and can be a 1x2 or a Nx2 matrix.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionOpenCyclicPositionChannel

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionOpenCyclicTorqueChannel

m4MMotionOpenCyclicTorqueChannel

m4MMotionOpenCyclicTorqueChannel

Motion-Function: Open a cyclic torque channel for one or multiple axes.

Description

This function opens a channel for cyclic torque commands.

The function deals with motion that is commanded by sending cyclic data. This is can be used to generate your own profiles, contrary to all other motion commands where the profiles are generated by the control. In order to be able to write cyclic data, a channel must be opened first. Once opened, cyclic data should be written each motion cycle. No explicit error will occur if no cyclic data is written. In this case, the last known cyclic value will be send again. But keep in mind, that the movement on the drive might be jittered or even result in errors in the drive. To correctly synchronize your cyclic write access to the drive refer to function m4MTaskWaitForEvent. The cyclic command mode can be exited using any other single or synchronous motion command. Prior to opening a cyclic channel, you should initialize the first channel value by using the corresponding write command m4MMotionWriteCyclicTorque.

Syntax

[motionHandle]         = m4MMotionOpenCyclicTorqueChannel(connection,...
axisRef)
[motionHandle, result] = m4MMotionOpenCyclicTorqueChannel(connection,...
axisRef)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

Output Arguments

motionHandle contains the motion handle(s) of this command. The argument is of type uint32 and can be a 1x2 or a Nx2 matrix.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionOpenCyclicTorqueChannel

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionOpenCyclicVelocityChannel

m4MMotionOpenCyclicVelocityChannel

m4MMotionOpenCyclicVelocityChannel

Motion-Function: Open a cyclic velocity channel for one or multiple axes.

Description

This function opens a channel for cyclic velocity commands.

The function deals with motion that is commanded by sending cyclic data. This is can be used to generate your own profiles, contrary to all other motion commands where the profiles are generated by the control. In order to be able to write cyclic data, a channel must be opened first. Once opened, cyclic data should be written each motion cycle. No explicit error will occur if no cyclic data is written. In this case, the last known cyclic value will be send again. But keep in mind, that the movement on the drive might be jittered or even result in errors in the drive. To correctly synchronize your cyclic write access to the drive refer to function m4MTaskWaitForEvent. The cyclic command mode can be exited using any other single or synchronous motion command. Prior to opening a cyclic channel, you should initialize the first channel value by using the corresponding write command m4MMotionWriteCyclicVelocity.

Syntax

[motionHandle]         = m4MMotionOpenCyclicVelocityChannel(...
connection, axisRef)
[motionHandle, result] = m4MMotionOpenCyclicVelocityChannel(...
connection, axisRef)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

Output Arguments

motionHandle contains the motion handle(s) of this command. The argument is of type uint32 and can be a 1x2 or a Nx2 matrix.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionOpenCyclicVelocityChannel

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionPower

m4MMotionPower

m4MMotionPower

Motion-Function: This function commands power to the drive.

Description

This function commands power to the drive. This function commands power to one or multiple axes. This is only necessary for a real axis. Virtual axis can be moved without applying power to the axis. To disable power of an axis, the function has to be called again with false.

Syntax

[motionHandle]         = m4MMotionPower(connection, axisRef, power)
[motionHandle, result] = m4MMotionPower(connection, axisRef, power)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

power defines the state of the power stage. The argument must be of type logical and can be scalar or a Nx1 matrix. If the argument is scalar the value will be applied to all axes. Otherwise each axis needs an individual value. If the value is true the function will try to switch power on. If the value is false the function will try to switch power off.

Output Arguments

motionHandle contains the motion handle(s) of this command. The argument is of type uint32 and can be a 1x2 or a Nx2 matrix.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionPower

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionSetAbsoluteMeasurement

m4MMotionSetAbsoluteMeasurement

m4MMotionSetAbsoluteMeasurement

Motion-Function: Set absolute measurement of one or multiple axes.

Description

This function sets the absolute measurement of one or multiple axes. Only axis with absolute encoders can be used with this function.

Syntax

m4MMotionSetAbsoluteMeasurement(connection, axisRef)
result = m4MMotionSetAbsoluteMeasurement(connection, axisRef)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers of the axes. The argument must be numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

Output Arguments

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionSetAbsoluteMeasurement

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionSetModulo

m4MMotionSetModulo

m4MMotionSetModulo

Motion-Function: Set modulo of one or multiple axes.

Description

This function writes to the modulo value for one or multiple axes.

Syntax

m4MMotionSetModulo(connection, axisRef, value)
result = m4MMotionSetModulo(connection, axisRef, value)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers of the axes. The argument must be numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

modulo defines the modulo value for the axis. The argument must be a double and can have the following dimensions:

  • 1x1 matrix: A scalar defines the same modulo value for all axis.
  • Nx1 matrix: Each element defines the modulo value for the corresponding axis in axisRef.

Output Arguments

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionSetModulo

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionStop

m4MMotionStop

m4MMotionStop

Motion-Function: This function commands a stop of motion of one or multiple axes.

Description

This function commands a stop of motion to the drive.

Note: After calling this function with true you have to call it again with false to acknowledge the command and to change from PLCopen state Stopping to Standstill.

Syntax

[motionHandle]         = m4MMotionStop(connection, axisRef,...
deceleration, jerk, stop)
[motionHandle, result] = m4MMotionStop(connection, axisRef,...
deceleration, jerk, stop)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

deceleration defines the maximum deceleration value(s). The argument must be numeric.

jerk defines the jerk value(s). The argument must be numeric.

stop defines the state of the stopping movement. The argument must be of type locical. If the value is true the axis starts stopping. When the axis is stopped the function must be called with the value false to release the stopping command.

The arguments deceleration to stop can either be scalar or Nx1 matrices. If the argument is scalar it is applied to all axes. If the argument is a Nx1 matrix it must contain a value for each axis.

Output Arguments

motionHandle contains the motion handle(s) of this command. The argument is of type uint32 and can be a 1x2 or a Nx2 matrix.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionStop

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionSynchronOut

m4MMotionSynchronOut

m4MMotionSynchronOut

Motion-Function: Exit synchronization mode of one or multiple axes.

Description

This function commands one or multiple axes to exit synchonization mode. The axis will continue to run with the velocity at the time the command was issued. It can be called after m4MMotionGearIn, m4MMotionGearInPos, m4MMotionFlexProfile and m4MMotionCamIn.

Syntax

[motionHandle]         = m4MMotionSynchronOut(connection, axisRef)
[motionHandle, result] = m4MMotionSynchronOut(connection, axisRef)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

Output Arguments

motionHandle contains the motion handle(s) of this command. The argument is of type uint32 and can be a 1x2 or a Nx2 matrix.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionSynchronOut

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionTorqueControl

m4MMotionTorqueControl

m4MMotionTorqueControl

Motion-Function: Command torque control of one or multiple axes.

Description

This function controls a continuously determined torque with a defined torque ramp in a never ending motion. Depending on the scaling, the function is suited for force determination and torque determination (positive force/torque determination in the sense of positive velocity determination). To end the motion, the function has to be interrupted by another motion command.

The command can only be used with real axes.

Syntax

[motionHandle]         = m4MMotionTorqueControl(connection, axisRef,...
torque, torqueRamp)
[motionHandle, result] = m4MMotionTorqueControl(connection, axisRef,...
torque, torqueRamp)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

torque defines the torque setpoint value(s). The argument must be of type double and can be scalar or Nx1. If it is scalar the value is applied to all axes. The unit of the torque value(s) depends on the axis scaling.

torqueRamp defines the torque ramp value(s). The argument must be of type double and can be scalar or Nx1. If it is scalar the value is applied to all axes. The unit of the torque ramp value(s) depends on the axis scaling.

For a detailed description refer to IndraWorks documentation and S-0-0822 and S-0-0823.

Output Arguments

motionHandle contains the motion handle(s) of this command. The argument is of type uint32 and can be a 1x2 or a Nx2 matrix.

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. If the function call fails, other output arguments will be set to NaN. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionTorqueControl

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionWriteCyclicAnalog

m4MMotionWriteCyclicAnalog

m4MMotionWriteCyclicAnalog

Motion-Function: Write cyclic analog values to one or multiple axes.

Description

This function writes cyclic analog values to one or multiple axes.

The function deals with motion that is commanded by sending cyclic data. This can be used to generate your own profiles, contrary to all other motion commands where the profiles are generated by the control. In order to be able to write cyclic data, a channel must be opened first. Once opened, cyclic data should be written every motion cycle. No explicit error will occur if no cyclic data is written. In this case, the last known cyclic value will be send again. But keep in mind, that the movement on the drive might be jittered or even result in errors in the drive. To correctly synchronize your cyclic write access to the drive you might want to have a look at the function m4MTaskWaitForEvent. The cyclic command mode can be exited using any other single or synchronous motion command.

To open a cyclic channel refer to function m4MMotionOpenCyclicAnalogChannel.

Syntax

m4MMotionWriteCyclicAnalog(connection, axisRef, cyclicValue)
result = m4MMotionWriteCyclicAnalog(connection, axisRef, cyclicValue)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

cyclicValue defines the analog setpoint value. The argument must be of type double and can be scalar or Nx1. If it is scalar the value is applied to all axes.

Output Arguments

result contains the return value of the MLPI function. The argument is scalar and of type int32. A positive value of result indicates a successful execution and a negative value a failed execution. Refer to Fundamentals of MLPI Programming for a detailed explanation of the MLPI error handling.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionWriteCyclicAnalog

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionWriteCyclicPosition

m4MMotionWriteCyclicPosition

m4MMotionWriteCyclicPosition

Motion-Function: Write cyclic position values to one or multiple axes.

Description

This function writes cyclic position values to one or multiple axes.

The function deals with motion that is commanded by sending cyclic data. This can be used to generate your own profiles, contrary to all other motion commands where the profiles are generated by the control. In order to be able to write cyclic data, a channel must be opened first. Once opened, cyclic data should be written every motion cycle. No explicit error will occur if no cyclic data is written. In this case, the last known cyclic value will be send again. But keep in mind, that the movement on the drive might be jittered or even result in errors in the drive. To correctly synchronize your cyclic write access to the drive you might want to have a look at the function m4MTaskWaitForEvent. The cyclic command mode can be exited using any other single or synchronous motion command.

To open a cyclic channel refer to function m4MMotionOpenCyclicPositionChannel.

Syntax

m4MMotionWriteCyclicPosition(connection, axisRef, cyclicValue)
result = m4MMotionWriteCyclicPosition(connection, axisRef, cyclicValue)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

cyclicValue defines the position setpoint value. The argument must be of type double and can be scalar or Nx1. If it is scalar the value is applied to all axes.

Output Arguments

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionWriteCyclicPosition

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionWriteCyclicTorque

m4MMotionWriteCyclicTorque

m4MMotionWriteCyclicTorque

Motion-Function: Write cyclic torque values to one or multiple axes.

Description

This function writes cyclic torque values to one or multiple axes.

The function deals with motion that is commanded by sending cyclic data. This can be used to generate your own profiles, contrary to all other motion commands where the profiles are generated by the control. In order to be able to write cyclic data, a channel must be opened first. Once opened, cyclic data should be written every motion cycle. No explicit error will occur if no cyclic data is written. In this case, the last known cyclic value will be send again. But keep in mind, that the movement on the drive might be jittered or even result in errors in the drive. To correctly synchronize your cyclic write access to the drive you might want to have a look at the function m4MTaskWaitForEvent. The cyclic command mode can be exited using any other single or synchronous motion command.

To open a cyclic channel refer to function m4MMotionOpenCyclicTorqueChannel.

Syntax

m4MMotionWriteCyclicTorque(connection, axisRef, cyclicValue)
result = m4MMotionWriteCyclicTorque(connection, axisRef, cyclicValue)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

cyclicValue defines the torque setpoint value. The argument must be of type double and can be scalar or Nx1. If it is scalar the value is applied to all axes.

Output Arguments

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionWriteCyclicTorque

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0

m4MMotionWriteCyclicVelocity

m4MMotionWriteCyclicVelocity

m4MMotionWriteCyclicVelocity

Motion-Function: Write cyclic velocity values to one or multiple axes.

Description

This function writes cyclic velocity values to one or multiple axes.

The function deals with motion that is commanded by sending cyclic data. This can be used to generate your own profiles, contrary to all other motion commands where the profiles are generated by the control. In order to be able to write cyclic data, a channel must be opened first. Once opened, cyclic data should be written every motion cycle. No explicit error will occur if no cyclic data is written. In this case, the last known cyclic value will be send again. But keep in mind, that the movement on the drive might be jittered or even result in errors in the drive. To correctly synchronize your cyclic write access to the drive you might want to have a look at the function m4MTaskWaitForEvent. The cyclic command mode can be exited using any other single or synchronous motion command.

To open a cyclic channel refer to function m4MMotionOpenCyclicVelocityChannel.

Syntax

m4MMotionWriteCyclicVelocity(connection, axisRef, cyclicValue)
result = m4MMotionWriteCyclicVelocity(connection, axisRef, cyclicValue)

Input Arguments

connection defines the connection that will be used. The argument must be scalar and of type MlpiConnection.

axisRef defines a matrix with axis and control numbers. The argument must be real numeric and can have the following dimensions:

  • 1x1 matrix: A scalar defines a single axis number on the connected MLPI device.
  • 1x2 matrix: The first value defines the control number and the second value defines the axis number on that control.
  • Nx2 matrix: Each row defines a pair of control and axis number. The first column defines the control numbers and the second column defines the axis numbers.

cyclicValue defines the velocity setpoint value. The argument must be of type double and can be scalar or Nx1. If it is scalar the value is applied to all axes.

Output Arguments

result contains the return value of the MLPI function. The argument is scalar and of type int32. Negative values indicate a failed function call. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.

Example Files

Here you will find instructions to use the examples.

The following example is available in the folder ./mlpi/mlpi4MATLAB/bin:

See also

Reference to mlpiCore

This function maps to the mlpiCore function: mlpiMotionWriteCyclicVelocity

Copyright

Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0