L_MC1P_IndexToParameter (function)
This function converts a CANopen index into a parameter number.
|
|
|
|
L_MC1P_IndexToParameter |
|
|
|
|
|---|---|---|---|---|---|---|---|
|
UINT |
- |
|
uiIndex |
L_MC1P_IndexToParameter |
|
- |
DINT |
|
USINT |
- |
|
usiSubindex |
|
|
|
|
|
UINT |
- |
|
uiByteLength |
|
|
|
|
|
|
|
|
|
|
|
|
|
Parameter
Return value
|
Name Data type |
Meaning |
|
|---|---|---|
|
L_MC1P_IndexToParameter DINT |
Parameter number (the value is generally a negative number)
|
|
Example
This example illustrates the conversion of the Speed controller: Reset time parameter (index = 0x2900, subindex = 2) to a parameter number. The byte length can be determined from the data type of the parameter. In the example: UNSIGNED_16 corresponds to a byte length of two.
|
Note!
If an MC_Read block is used, this function serves to read out the parameter number determined as "Signed" value. In order to read out an "Unsigned" value, the parameter number must be used by L_MC1P_CodenumberToParameter2 (function) . |