m4SMotionGetFullState
Motion Block: Get all state information about an axis.
Description
This block reads all state information about an axis as defined in structure MlpiAxisStateDecoder.
Block Inputs
connection defines the connection that will be used. The input must be a scalar uint32 value provided by m4SApiConnect.
result defines if the block will be executed. The input must be a scalar int32 value. The block will not be executed if this value is negative. For negative values the input result is directly fed through to the output result.
Block Outputs
connection contains the connection identifier. The input port connection is fed through to this output. The default value of this port is 0.
result contains the return value of the block. The output is a scalar int32 value. If the output is negative other outputs are invalid. The default value of this output is 0. For details refer to the section Error Identification and Handling in Fundamentals of MLPI Programming.
inAb contains the value of field InAb of structure MlpiAxisStateDecoder. The output is a scalar boolean value. The default value is false.
inbb contains the value of field Inbb of structure MlpiAxisStateDecoder. The output is a scalar boolean value. The default value is false.
power contains the value of field Power of structure MlpiAxisStateDecoder. The output is a scalar boolean value. The default value is false.
standstill contains the value of field Standstill of structure MlpiAxisStateDecoder. The output is a scalar boolean value. The default value is false.
inPosition contains the value of field InPosition of structure MlpiAxisStateDecoder. The output is a scalar boolean value. The default value is false.
inVelocity contains the value of field InVelocity of structure MlpiAxisStateDecoder. The output is a scalar boolean value. The default value is false.
inSynchron contains the value of field InSynchron of structure MlpiAxisStateDecoder. The output is a scalar boolean value. The default value is false.
homed contains the value of field Homed of structure MlpiAxisStateDecoder. The output is a scalar boolean value. The default value is false.
inTorque contains the value of field InTorque of structure MlpiAxisStateDecoder. The output is a scalar boolean value. The default value is false.
operationMode contains the value of field OperationMode of structure MlpiAxisStateDecoder. The output is a scalar boolean value. The default value is false.
cmdActive contains the value of field CmdActive of structure MlpiAxisStateDecoder. The output is a scalar boolean value. The default value is false.
errInProgress contains the value of field ErrInProgress of structure MlpiAxisStateDecoder. The output is a scalar boolean value. The default value is false.
inMasterPhaseOffset contains the value of field InMasterPhaseOffset of structure MlpiAxisStateDecoder. The output is a scalar boolean value. The default value is false.
nrtActive contains the value of field NRTActive of structure MlpiAxisStateDecoder. The output is a scalar boolean value. The default value is false.
interrupted contains the value of field Interrupted of structure MlpiAxisStateDecoder. The output is a scalar boolean value. The default value is false.
modulo contains the value of field Modulo of structure MlpiAxisStateDecoder. The output is a scalar boolean value. The default value is false.
rotary contains the value of field Rotary of structure MlpiAxisStateDecoder. The output is a scalar boolean value. The default value is false.
valid contains the value of field Valid of structure MlpiAxisStateDecoder. The output is a scalar boolean value. The default value is false.
decoupled contains the value of field Decoupled of structure MlpiAxisStateDecoder. The output is a scalar boolean value. The default value is false.
Parameters and Dialog Box
Control number specifies the control number of the axis. The parameter must be a scalar numeric value.
Axis number specifies the axis number of the axis. The parameter must be a scalar numeric value.
Sample time (-1 for inherited) specifies the time interval between samples. To inherit the sample time, set this parameter to -1. This block supports discrete sample time, but not continuous sample time.
Characteristics
Direct Feedthrough | Yes |
Sample Time | Fixed Step |
Example Model
Here you will find instructions to use the examples.
The following example is available in the folder ./mlpi/mlpi4Simulink/blocks:
See also
Copyright
Legal notice and version: © 2017 Bosch Rexroth Corporation http://www.boschrexroth.com DC-AE/EAS1 (MGo) Library version: 1.26.2.0.0