05/06 AWB2724-1584GB
59
13 Programming via a CANopen network (Routing)
Routing means to establish an online connection from a
programming device (PC) to any (routing-capable) PLC in a CAN
network without having to directly connect the programming
device to the target PLC. It can be connected to another PLC in the
network. The routing connection enables you to carry out all the
operations that are possible with a direct online connection
between the programming device and the controller:
• Program download
• Online modifications
•Program test (Debugging)
• Generation of boot projects
• Writing files in the PLC
• Reading files from the PLC
Routing offers an advantage which makes it is possible to access
all routing capable PLCs on the CAN bus from any PLC which is
connected with the programming device. You can determine in the
project selection which controller you wish to communicate with.
This makes it possible to operate remotely configured controllers
easily.
However, the data transfer rate with routing connections is
considerably slower than with direct connections (serial or TCP/IP).
This will result in slower refresh times for visualisation elements
(variables) or slower download speeds.
Requirements
The following requirements must be fulfilled in order to use
routing:
• Both the routing PLC and the target PLC must support routing.
• Both PLCs must be connected via the CAN bus.
• The PLCs must both have the same active CAN baud rate.
• A valid routing Node ID must be set on both PLCs.
Routing features of the controller
The controller supports routing via the CAN bus.
Routing can be carried out without the need to download a user
program beforehand (Default:125 Kbaud, Node ID 127). The
target controller does not have to be configured as a CAN master
or CAN device.
It is possible, for example, to load a program from the PC into the
EC4-200 via a controller of the XC series. In this case, you assign
the EC4-200 (target controller) with a routing Node ID.
Routing through XC200
In order to carry out a program transfer or routing on a connection
between an XC200 and a PC via TCP/IP, you have to set the block
size of the data to be transferred. The block size (4 Kbyte or 128
Kbyte) depends on the type of transfer (program transfer or
routing) and the operating system, a table 10.
Table 10: Block size for the data transfer
Routing with the XC200 is possible from OS version V1.03.03.
The setting of the block size (change of the value in the registry) is
explained as follows.
Figure 70: Program download using routing
Program/file transfer Routing
OS <
V1.03.03
OS f
V1.03.03
OS <
V1.03.03
OS f
V1.03.03
Block size
Default:
128 kByte
128 Kbyte 4/128 Kbyte Routing
not possible
4 Kbyte
h
Attention!
The program download with a block size of 4 Kbyte to a
PLC with an operating system version earlier than
V1.03.03 will cause faulty behaviour!
If a program download is performed, the progress bar on
the programming device monitor will only change
erratically (about every 10 seconds).
PC XC... EC4-
200
XC...
EC4-200
RS232 RS232 CAN CAN