9 library serversdo.lib, 1 initserversdo, Library serversdo.lib – Lenze ETC Motion Control User Manual

Page 418: Initserversdo, Plc programming

Advertising
background image

PLC programming

Library ServerSDO.lib
InitServerSdo

8

8.9
8.9.1

l

418

EDSTCXN EN 2.0

8.9

Library ServerSDO.lib

8.9.1

InitServerSdo

FUNCTION InitServerSdo: BOOL

VAR_INPUT

Max_NetVarODIdx

: UINT;

pNetVarOD

: POINTER TO NetVarOD_CAN;

END_VAR

Max_NetVarODIdx

maximum index

pNetVarOD

Pointer to the object directory

This function announces an object directory for the data transfer with a
CANopen client to the runtime system.

To enable the CoDeSys object directory the following function must be called
once in the PLC program:

InitServerSdo(MAX_NetVarOD_CAN, ADR(pNetVarOD_CAN[0]));

Declaration

Parameters

Description

Example

Advertising