ifm
System Manual
ecomat
mobile
PDM360NG (CR1080, CR1081, CR9042) Target V01
2011-07-28
CAN in the PDM360
CAN POUs to CANopen
292
CANOPEN_SETSTATE
7858
= Set State
Unit type = function block (FB)
Contained in the library:
ifm_CANopen_NT_Vxxyyzz.LIB
Available for the following devices:
- BasicController: CR040n
- BasicDisplay: CR0451
- PDM360NG: CR108n, CR9042
Symbol in CoDeSys:
Description
7860
Via CANOPEN_SETSTATE, parameters of the master, a slave device or a node in the network can be
set.
The treatment of the NMT state of master, node or device is carried out in the CAN stack or via the
commands of the FB CANOPEN_NMTSERVICES (
→
page
). At the same time admissibility
checks are carried out. For reasons of consistency no inputs are provided for this purpose.
Parameters of the inputs
7861
Parameter
Data type
Description
EXECUTE BOOL
FALSE
TRUE (edge):
POU is executed once
otherwise: POU not active
A POU already started is processed.
CHANNEL
BYTE
CAN interface (1...n) depending on the device
NODE
BYTE
node ID = ID of the node (0...127)
Controller as CANopen master:
value = 0:
The changes only refer to the controller itself.
value
0:
node ID of a node in the network the parameters of which are to be
changed. The established settings are only adopted for this node (not
for the controller).
Controller as CANopen slave:
In slave mode, the node ID of the slave can be set via this input.
value = 0:
no action
value
0:
The FB adopts this value as the new node ID of the controller.