Switching slave node to PreOp from the PLC

The ADSWRTCTL block can be used to set individual CANopen nodes to pre-operational or operational state. A fixed baud rate is required for this purpose.

Input parameters

Description

NETID

NetId of the CAN interface

Port number

0x1000hex + NodeId (slave number)

ADSSTATE

ADSSTATE_RUN

DEVSTATE

0 - Pre / 1 - Operational

LEN

0

SRCADDR

0