Plc programming – Lenze ETC Motion Control User Manual

Page 411

Advertising
background image

PLC programming

Library

CAN functions (only ETCxM)

8

8.8

8.8.6

l

411

EDSTCXN EN 2.0

8.8.6.3

DelCobIdCanMsg (only ETCxM)

FUNCTION DelCobIdCanMsg: BOOL

VAR_INPUT

handle_pr

: DINT;

(* Handle on the management structure *)

CobId_w

: WORD;

(* CobId *)

END_VAR

This function removes a CobId from the management structure (see
function DefineCanMsg()) for CAN transfers. The return value of the
function is of no consequence.

handle_pr

: DINT;

handle_pr = DefineCanMsg(1, 1014, 1114, 32);

DelCobIdCanMsg(handle_pr, 1014);

8.8.6.4

CloseCanMsg (only ETCxM)

FUNCTION CloseCanMsg: BOOL

VAR_INPUT

handle_pr

: DINT;

(* Handle on the management structure *)

END_VAR

This function deletes the administrative structure for CAN transfers (see
function Define CanMsg()= and the memory will be released again. The
return value of the function is of no consequence.

handle_pr

handle_pr = DefineCanMsg(1, 1014, 1114, 32);

CloseCanMsg(handle_pr);

Declaration

Description

Example

Declaration

Description

Example

Advertising