Lenze PLC Designer PLC Designer (R2-x) CANopen for Runtime Systems User Manual

Page 17

Advertising
background image

L-force | PLC Designer - CANopen for Runtime Systems

CANopen-Master library

16

DMS 2.0 EN 05/2009 TD29

bDevTypeInvalid : BOOL;

(* TRUE indicates that the device type given back by the node on
the request of object 0x1000, and the device type entered in the
PLC Configuration are not identical. By setting the node status
(which should be 98 if bDevTypeInvalid is TRUE) manually (or by
the IEC program) to 4, the node nevertheless can be activated. The
application cannot write variable nStatus of a node. For this
purpose the method „NodeStart“ or SetNodeStatus(<new state>) of
the nodes must be used.*)

MsgBuffer : CAN_Message; (* Receive buffer of the node. Internally, only used for special

messages.*)

a: INT;

(* Counter, just used for indicating whether the module is called.*)

iPDO : WORD;

(* Internal variable, used for browsing all PDOs belonging to the
current slave.*)

END_VAR

2.4.3 Interpretation and reaction on the states of the library

The phase step-up of the CANopen network initiated by the master passes through the following
states:

During monitoring in »PLC Designer« these states can be seen in the global variables list „Can Open
implicit variables“.

In the following the states of the master and slave are described, so that they can be influenced from
the user program, if required.

Advertising