m4SParameterReadDataArray
Parameter Block: Read values of a list parameter.
Description
This block reads the actual values of the defined parameter. The block can read the value of a scalar parameter or a list parameter.
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.
data contains the actual data of the parameter. The type of the output is according to dialog box parameter Data type. The output is a 1xN vector. String parameter are not supported by this block. The default value of the elements is 0.
numElementsRet contains the number of elements read from the parameter. If the number N of elements specified in dialog box parameter Number of elements does not match the parameter definition, the block execution will fail. If you do not have the definition right at hand, enter a reasonably high number for N. If the number N is larger than 1 and higher than the parameter definition, the block will fail but this output indicates the correct number of list elements in the parameter definition. If N is smaller than the parameter definition the block execution will fail and this output is 0. The default value of the elements is 0.
Parameters and Dialog Box
Address mode specifies the mode the parameter is addressed. For details refer to the enumeration MlpiAddressMode32.
Master address specifies the address of the sercos master. The parameter must be a scalar semi-positive integer. Internally the numeric value will be casted to uint64.
Slave address specifies the address of the sercos slave. The parameter must be a scalar positive integer. Internally the numeric value will be casted to uint64.
Parameter IDN specifies the sercos parameter IDN. The parameter must be a 1xL char array. To simplify text input the parameter string can be entered in the following formats:
- 'C-0-0209.0.0': Full IDN string.
- 'C-0-0206': Reduced IDN notation without structure element and structure instance.
- 'M-206': Short IDN notation with parameter class and parameter number.
Data type specifies the data type of the output data. The data type must match the data type of the parameter.
Number of elements specifies the number N of elements that shall be read from the parameter. For scalar parameter values use 1. For list parameter N must be equal to the list elements of a list parameter.
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