ifm
System Manual
ecomat
mobile
PDM360NG (CR1080, CR1081, CR9042) Target V01
2011-07-28
CAN in the PDM360
CAN POUs to CANopen
267
Example: list of variables
10052
On the first receive PDO (COB ID = 512 + node ID) of the CANopen slave the data für variable
PLC_PRG.a shall be received.
Info
[Variables] and [parameters] can be selected as list type.
For the exchange of data (e.g. via PDOs or other entries in the object directory) a variable list is
created.
The parameter list should be used if you do not want to link object directory entries to application
variables. For the parameter list only the index 1006
16
/ SubIdx 0 is currently predefined. In this entry
the value for the "Com. Cycle Period" can be entered by the master. This signals the absence of the
SYNC message.
So you have to create a variable list in the object directory (parameter manager) and link an index/sub-
index to the variable
PLC_PRG.a
.
►
To do so, add a line to the variable list (a click on the right mouse button opens the context menu)
and enter a variable name (any name) as well as the index and sub-index.
►
The only allowed access right for a receive PDO is [write only].
►
Enter "
PLC_PRG.a
" in the column [variable] or press [F2] and select the variable.
NOTE
Data to be read by the CANopen master (e.g. inputs, system variables) must have the access right
[read only].
Data to be written by the CANopen master (e.g. outputs in the slave) must have the access right [write
only].
SDO parameters to be written and at the same time to be read from and written to the slave application
by the CANopen master must have the access right [read-write].