User Manual

12/06 AWB2724-1584GB
67
14 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 to the PLC
Reading files from the PLC
Routing offers the advantage of being able 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 prerequisites must be fulfilled 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 an XC series controller. In this case, you assign the
EC4-200 (target controller) with a routing Node ID.
Routing via 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 17.
Table 17: 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: 76: Program download using routing
Program/file transfer Routing
OS <
V1.03.03
BTS
f V1.03.03
OS <
V1.03.03
BTS
f V1.03.03
Block size
Default:
128
KByte
128 KByte 4/128 KByte Routing
not possible
4 KByte
h
Caution!
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 screen of the programming device monitor will only
change erratically (about every 10 seconds).
h
You can change this setting only if you have administrator
rights on your PC (access to registry).
PC XC...
EC4-200
XC...
EC4-200
RS232 RS232 CAN CAN