Plc programming – Lenze ETC Motion Control User Manual
Page 407

PLC programming
Library
CANopen functions
8.8
8.8.5
l
407
EDSTCXN EN 2.0
8.8.5.10
CopXEnableSync (only ETCxM)
FUNCTION CopXEnableSync: DINT
(* Releasing the Sync message *)
VAR_INPUT
CanNum_uc
: BYTE;
END_VAR
CanNum_uc
Number of the CAN Bus (1 or 2)
Calling this function enables the sending of the CANopen Sync message by
the PLC. The Sync messages will be sent with the cycle time of the PLC task
calling the function.
The function returns the following values:
Return value
Meaning
0
Function completed successfully
−1
CAN task is not ready
−3
Wrong CAN number
−4
The function has already been released
−5
The send buffer of the CAN Controller is already assigned
8.8.5.11
CopXDisableSync (only ETCxM)
FUNCTION CopXDisableSync : DINT
(* Blocking the sending of Sync messages *)
VAR_INPUT
CanNum_uc
: BYTE;
END_VAR
CanNum_uc
Number of the CAN Bus (1 or 2)
Calling this function disables the sending of the CANopen Sync message by
the PLC. The blocking of the Sync messages can only take place before the PLC
task which enabled the sending.
The function returns the following values:
Return value
Meaning
0
Function completed successfully
−1
CAN task is not ready
−3
Wrong CAN number
−4
The function is not enabled
−5
The sending of Sync messages was released by a different task.
−6
The send buffer of the CAN controller has been assigned a different COB ID.
Declaration
Parameters
Description
Declaration
Parameters
Description