page 81
Function
COP_MSTR_MAIN
Library NMT_MSTR.LIB
Function symbol
Purpose
Cyclically generates the SYNC object and monitors the
connected nodes
Parameters
Function inputs
Function outputs
Description
COP_MSTR_MAIN must be cyclically executed in the program.
This generates the SYNC object for the connected slave
modules. The network is monitored at the same time. If a slave
fails, the number of the node is entered in the array RESULT.
Thus max. 8 errors can be stored. They are entered in the order
of their occurrence. The error memory can be deleted again via
the function input RESET_GUARDING.
Name Data type Description
ENABLE BOOL TRUE: The function is processed.
FALSE: The function is not processed.
NO_NODE BYTE Number of the connected nodes without
NMT master
SYNC_TIME TIME Time between two SYNC objects for the
synchronous scanning of data
AUTO_
OPERA-
TIONAL
BOOL TRUE: The monitored node is automa-
tically set to "operational" after
a guarding error.
FALSE: The node remains in the "pre-
operational" state.
RESET_
GUARDING
BOOL TRUE: Delete the guarding error register
Name Data type Description
RESULT ARRAY The error register can store max. 8
undetected nodes.