page 59
6.9. The ecomat R 360 as CANopen master
A typical CANopen network has a network master. The
functions which will be described below provide all fundamental
services to design a master software for the plc ecomat R 360.
By using the functions the slave nodes can be integrated into
the CAN network, configured and monitored. For a simple
introduction to CANopen (especially in applications which "only"
require a decentralized extension of the input/output level) the
two functions COP_MSTR_BOOTUP and COP_MSTR_MAIN
were created in the programming language ST. They use the
functions presented below. Details will be given in section 6.10.
To ensure that the ecomat R 360 operates as CANopen
master the flag CAN_OPEN must be set to TRUE at the
program start (during the initialization) and the function
NMM_SET_NMT_MASTER must be called once.