L_MC1P_CodenumberToParameter2 (function)
This function converts a Lenze code number into a parameter number.
|
|
|
|
L_MC1P_CodenumberToParameter2 |
|
|
|
|
|---|---|---|---|---|---|---|---|
|
DWORD |
- |
|
dwCodenumber |
L_MC1P_CodenumberToParameter2 |
|
- |
DINT |
|
USINT |
- |
|
usiSubIndex |
|
|
|
|
|
UINT |
- |
|
uiByteLength |
|
|
|
|
|
BOOL |
- |
|
xUnsigned |
|
|
|
|
|
|
|
|
|
|
|
|
|
Parameter
Return value
|
Name Data type |
Meaning |
|
|---|---|---|
|
L_MC1P_Codenumber
DINT |
Parameter number (the value is generally a negative number)
|
|
Example
This example illustrates the conversion of the "Speed controller reset time" code (index = C00071, subindex = 0) into a parameter number. The byte length can be determined from the data type of the parameter. In the example: UNSIGNED_32 corresponds to a byte length of four.
For parameters with the "Signed" data type, the xUnsigned parameter can be set to False, or L_MC1P_CodenumberToParameter2 (function) can be used.