Quick Introduction
Operating Manual XCx 300 / 500 / 540 Version 09/08
53
5.6.3
Settings on the RIO 8 I/O CANopen module
On the RIO 8 I/O CANopen compact module set the node number to 2
and the data transmission rate to 125 kbaud.
Set the DIP switches on top of the module as follows:
Node number
Data transmission
rate
Switch
1
2
3
4
5
6
7
8
9
10
Position
OFF
ON
OFF OFF OFF OFF OFF
ON
ON
OFF
5.6.4
Declaring the I/O driver for CANopen
The I/O driver for the CANopen network is declared at the same place
and in the same way as the XRIO driver.
The IO_Configuration container is at the end of the project tree.
I/O configurations CAN_1_In and CAN_1_Out are already in place
there. For this example you have to enter the following parameters:
As
Start address
enter the logical addresses IB1000 for
CAN_1_In and QB1000 for CAN_1_Out.
The
Task
(with which the I/O address space will be synchronized)
must be
CanTsk
.
In the
Length
parameter, declare the number of I/O bytes to be
exchanged in the CANopen network (here 4, because minimal
double word spacing is being used).