Lenze DDS Function library Drive Manual do Utilizador Página 65

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 103
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 64
Function library LenzeDrive.lib
Communication
2.6.4 Read codes (L_ParRead)
2−55
L
LenzeDrive.lib EN 1.7
2.6.4 Read codes (L_ParRead)
This FB is used to read parameters, with Lenze so−called codes. The FB can read both the PLC codes
and codes of other devices via the system bus (CAN).
L_ParRead
bExecute
wIndex
bySubIndex
byFraction
byComChannel
wTargetAddress
wFailNumber
abyData
bFail
bBusy
bDone
VariableName DataType VariableType Note
wTimeOut Word VAR CONSTANT
RETAIN
1 ... 65335 Time−out time in ms is the time for processing the order.
Initialized with 1000 ms.
This variable can be parameterized by means of a user
code.
bExecute Bool VAR_INPUT FALSE/TRUE transition activates a read request.
wIndex Word VAR_INPUT 0 ... 65535 Code index
Conversion formula: Index = 24575 − code number
bySubIndex Byte VAR_INPUT 0 ... 255 Subindex (subcode number) of the code
byFraction Byte VAR_INPUT 0 ... 254 Number of decimal places of the code to be read
255 Code without decimal places
(e.g. hexadecimal code).
byComChannel Byte VAR_INPUT 0
Constant:
Reading a PLC code.
C_PLC
10
Constant:
Reading a code from a device connected via the system bus
(CAN).
C_SYSTEMBUS_CAN
wTargetAddress Word VAR_INPUT Selecting the parameter data channel of the target device
(only with byComChannel = 10)
1 ... 64 Data transfer via SDO1 of the target device:
wTargetAddress = CAN device address of the target device
65 ... 127 Data transfer via SDO2 of the target device:
wTargetAddress = CAN device address of the target device +
64
bDone Bool VAR_OUTPUT TRUE Order has been processed (observe bFail).
bBusy Bool VAR_OUTPUT TRUE Order is being processed.
bFail Bool VAR_OUTPUT TRUE Error occurred.
wFailNumber Word VAR_OUTPUT 0 OK − read request was executed without error.
1 Error during data transfer via system bus (CAN).
2 External device did not respond within the set time−out time.
4 Subindex does not exist.
5 Index does not exist.
13 Parameter value to be read is not within the valid range.
117 Invalid communication channel (byComChannel).
118 There are not enough free CAN objects available.
119 The Send Order memory is full.
abyData Byte [0 ... 3] VAR_OUTPUT The four data bytes with the read code value.
Vista de página 64
1 2 ... 60 61 62 63 64 65 66 67 68 69 70 ... 102 103

Comentários a estes Manuais

Sem comentários