
93
ifm
Programming Manual BasicController relay CR0431 v03.03.00
05 / 2018
ifm function elements
ifm function elements for the device CR0431
CANOPEN_SETSTATE
7858
= Set state
Unit type = function block (FB)
Unit is contained in the library
ifm_CANopen_NT_Vxxyyzz.LIB
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
(
). 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
FALSE
TRUE (edge):
execute function element once
otherwise: function element is not active
A function element already started is processed.
CHANNEL
BYTE
CAN interface (1...n) depending on the device
NODE
BYTE
Node ID = ID of the node (0...127)
Device as CANopen master:
Value = 0:
The changes only refer to the device itself.
Value not 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 device).
Device as CANopen slave:
In slave mode, the node ID of the slave can be set via this input.
Value = 0:
no action
Value not 0:
The function block adopts this value as the new node ID of the device.
GlobalStart
(optional use of the parameter)
BOOL := TRUE
Requirement: FB must be called immediately after starting the IEC
program. This setting overwrites the setting of the configuration.
TRUE:
Start all participants simultaneously
FALSE:
Start all participants one after the other
CfgTimeout
(optional use of the parameter)
TIME := T#0ms
set configuration timeout for a node:
Value = 0:
no action – retain configuration data
Value not 0:
overwrite data from the configuration with the new value
Содержание BasicController CR0431
Страница 228: ...228 10 Notizen Notes Notes...