Lenze DDS Global Drive PLC Developer Studio Manual do Utilizador Página 14

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 26
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 13
3.2 L_CanDSxInitIndexCode − Configuration of index mapping
Function library LenzeCanDSxDrv.lib
Functions/function blocks
3−2
L
LenzeCanDSxDrv.lib EN 1.2
3.2 L_CanDSxInitIndexCode − Configuration of index mapping
Function
This function is used to configure the mapping table and the redirection of indeces to codes other
than the automatically assigned codes.
· With every function call one index and the corresponding Lenze code can be entered in the
mapping table.
Declaration
INT L_CanDSxInitIndexCode (byTabIndex,
wCANIndex, byCANSubIndex,
wLenzeCodeNumber, byLenzeSubCodeNumber);
Transfer parameters Data type Information/possible settings
byTabIndex Byte 0 ... 255 Number of the configuration entry in the mapping table.
Index to be redirected:
wCANIndex Word 1000
hex
...
8FFF
hex
(4096
dec
...
36863
dec
)
CAN index
byCANSubIndex Byte 0 ... 255 CAN subindex
Redirection target (Lenze code):
wLenzeCodeNumber Word 1 ... 7999 Code number
byLenzeSubCode
Number
Byte 0 ... 255 Subcode number
Return value Data type Value/meaning
Integer Status
0 Entry in the mapping table has been successful.
−20 Error: Transfer parameter wCANIndex is invalid.
−30 Error: Transfer parameter wLenzeCodeNumber is invalid.
· A maximum of 256 entries can be entered in the mapping table:
Code to be redirected Redirection target
byTabIndex wCANIndex byCANSubIndex wLenzeCodeNumber byLenzeSubCodeNumber
0
1 4104 2 3200 5
2
...
255
Note!
If the function L_CanDSxInitIndexCode is called while code read or write requests are active an
error may occur!
This is why all actions with code access should be completed before this function is called.
Vista de página 13
1 2 ... 9 10 11 12 13 14 15 16 17 18 19 ... 25 26

Comentários a estes Manuais

Sem comentários