L_MC1P_CodenumberToParameter (function)
This function converts a Lenze code number into a parameter number:
|
|
|
|
L_MC1P_CodenumberToParameter |
|
|
|
|
|---|---|---|---|---|---|---|---|
|
DWORD |
- |
|
dwCodenumber |
L_MC1P_CodenumberToParameter |
|
- |
DINT |
|
USINT |
- |
|
usiSubIndex |
|
|
|
|
|
UINT |
- |
|
uiByteLength |
|
|
|
|
|
|
|
|
|
|
|
|
|
Parameter
Return value
|
Name Data type |
Meaning |
|
|---|---|---|
|
L_MC1P_Codenumber
DINT |
Parameter number (the value is generally a negative value)
|
|
Example
This example illustrates the conversion of code C00071 (index = 0x2900, subindex = 2) 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.
|
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) . |