Module 2 - Remote Connectivity
Module 2 - Remote Connectivity
12150 Nicollet Avenue South / Burnsville, MN 55337 / 877 TWIN-CAT (877 894-6228)
12150 Nicollet Avenue South / Burnsville, MN 55337 / 877 TWIN-CAT (877 894-6228)
12150 Nicollet Avenue South / Burnsville, MN 55337 / 877 TWIN-CAT (877 894-6228)
Table of Contents
Introduction ......................................................................................................... 5
Beckhoff Embedded PC ..................................................................................... 6
Embedded PC Bus Coupler Nomenclature ................................................................................ 6
Bus Terminals ............................................................................................................................. 7
Documentation .................................................................................................. 26
Beckhoff Information System .................................................................................................... 26
Glossary ............................................................................................................ 30
12150 Nicollet Avenue South / Burnsville, MN 55337 / 877 TWIN-CAT (877 894-6228)
12150 Nicollet Avenue South / Burnsville, MN 55337 / 877 TWIN-CAT (877 894-6228)
Introduction
Remote connectivity is achieved with PCs and embedded processors. These systems generally
run a version of Windows CE or an NT based Windows OS (NT, 2000, XP, XPe or Vista).
The main element in play is a sub-system called a router. As the name implies, the router, routes
messages to and from all the remote devices to a single controller and manages them all.
Remote connectivity involves ADS or Automation Device Specification. This is an interface that
enables communication between ADS compliant devices and systems over TCP/IP.
The following diagram seems complicated and will be discussed in later modules but just realize
that the TwinCAT system is your computer. Message router talks to and through the TCP/IP
port to the remote system (ADS interface):
GUI
Router
Realtime
Server
NOTE: This manual assumes complete understanding of all the functionality discussed in Module
1: Introduction to TwinCAT; please refer to Module 1 for specific instruction. Call 877 TWIN-CAT
to obtain a copy of Module 1 or for further assistance.
12150 Nicollet Avenue South / Burnsville, MN 55337 / 877 TWIN-CAT (877 894-6228)
Beckhoff Embedded PC
For embedded systems, if the task requires a complex program and/or has extensive
visualization then XPe would be the right choice. On the other hand, if the program is simple
and/or has simple visualization or no visualization at all, then the lower-cost CE might be
sufficient.
CX900x Ethernet controller with Intel IXP420 XScale technology, 266 MHz processor.
CX9010 Ethernet controller with Intel IXP420 XScale technology, 533 MHz processor.
CX1000 Basic controller with Pentium MMX-compatible CPU, 266 MHz processor.
CX1010 Basic controller with Pentium MMX-compatible CPU, 500 MHz processor.
CX1020 High-performance controller with Intel Celeron M ULV CPU, 1 GHz processor.
p (port options):
0 = without DVI/USB
1 = with DVI/USB
t (TwinCAT options):
0 = without TwinCAT
1 = with TwinCAT
PLC run-time
2 = with TwinCAT
PLC/NC run-time
12150 Nicollet Avenue South / Burnsville, MN 55337 / 877 TWIN-CAT (877 894-6228)
Bus Terminals
Terminals come in a number of varieties as well depending on the needs of the
system. Refer to Module 1: Introduction to TwinCAT for descriptions of Bus Terminals
12150 Nicollet Avenue South / Burnsville, MN 55337 / 877 TWIN-CAT (877 894-6228)
Networking Troubleshooting
The majority of issues with remote connectivity manifest in the connection itself and not with the
Beckhoff remote connectivity configuration tools. Though you are welcome to skip this section for
now, stepping through it will help guarantee that the following sections will go smoother.
In any case, refer to this section if problems arise in later sections. Furthermore, this information
is relevant for everyday networking issues and can be of use whether Beckhoff software and
hardware are involved or not.
There are a number of things that can affect remote connectivity. Everything from physical
connections to the handling of network traffic must be analyzed in the course of troubleshooting.
Physical Connections
80% of connectivity issues are related to the physical connections. It is the easiest to diagnose,
easy as well to correct but usually the last to be investigated.
Get in the habit of following these steps early in the troubleshooting and you are sure to save time
in the long run:
1. Look for link and activity lights on both the controller (computer) and the Bus Coupler (CXxxxx
unit). Even laptops and Ethernet adapters have link and activity lights these days.
2. If either device does not have a steady link light AND a blinking activity light, cycle power on
that device.
3. If the computer is directly connected to the Coupler (no hub,
switch, router or wall jacks are used) than a crossover cable
must be used. Hold the ends of the cable up together. If the
wire colors are the same in every position from left to right,
than it is a standard straight-through cable. If the sequence is
different, than it is more likely that it is a crossover cable (see
image)
4. If a hub, switch, router or wall jacks are used to connect the
computer to the device, than standard straight-through cables
are required.
5. Keep in mind that although the 1020 and 1030 have a built-in switch, they also have cable
sensing so either a crossover or straight-through cable can be used.
Note: DO NOT rely on the color of the entire cable itself. Some companies use consistently
colored cables for different purposes, but that doesnt mean that the colors are standard,
universal or even without exception in your company.
1. If a hub, switch or router is used, make sure that connection and activity lights on it are also on.
2. Cycle power on any networking device that is not responding correctly. Please consider who
and what else might be connected to the device before cycling power.
3. If using wall jacks, ask your network administrator to verify that the jacks are hot. Be sure that
the jack your computer is connected to and the jack the remote system is on are both checked.
12150 Nicollet Avenue South / Burnsville, MN 55337 / 877 TWIN-CAT (877 894-6228)
TCP/IP Connections
After ensuring the physical path is sound, the next step is to see if the devices can communicate
on that path. Communication is achieved via the TCP/IP protocol.
Follow these steps to troubleshoot the communication:
1. Ping the device from the computer used as a controller. Do not assume that connecting
from one computer is the same as connecting with any computer.
2. Determine the network name of the Bus Coupler:
Look at the label on the left side of the coupler and find the MAC-ID. The network name of
the coupler is cx_ followed by the last six characters of the MAC-ID (minus the hyphens).
If the MAC-ID is 00-01-05-00-27-7B than the last six characters are 00277B and the network
name of the coupler is cx_00277b.
3. Bring up the Command Prompt. Click the
Start button and select Run. Type cmd in the
Open field and hit Enter. (Use command for
older OSes.)
Once cmd.exe launches, type:
ping cx_00277b (use the actual name of
your device) and hit the Enter key.
Record the IP number (in this case: 10.12.2.57) as you may need it later.
12150 Nicollet Avenue South / Burnsville, MN 55337 / 877 TWIN-CAT (877 894-6228)
10
12150 Nicollet Avenue South / Burnsville, MN 55337 / 877 TWIN-CAT (877 894-6228)
11
8. Also verify that Automatic private IP address is set on both your PC and the CX coupler.
8.a. Click the Start
button and select
Control Panel.
8.b. Click on Network
and Internet
Connections
12150 Nicollet Avenue South / Burnsville, MN 55337 / 877 TWIN-CAT (877 894-6228)
12
12150 Nicollet Avenue South / Burnsville, MN 55337 / 877 TWIN-CAT (877 894-6228)
13
Establishing a Route
The connection between a computer and a remote system which is running Windows or Windows
embedded OS is called a Route. To achieve a communication link between the systems, a route
must be established.
With the different varieties of OSes only step 5 below depends on knowing which OS is being
accessed. On a CX coupler, the OS may be listed on the label on the side, but as different OSes
can be installed, it is best to refer to the Purchase Order or contact your Beckhoff representative if
you have any questions.
1. Launch System
Manager
1a. Enter Config mode
2. Select SYSTEM Configuration
2a. Click on the Choose
Target button
12150 Nicollet Avenue South / Burnsville, MN 55337 / 877 TWIN-CAT (877 894-6228)
14
12150 Nicollet Avenue South / Burnsville, MN 55337 / 877 TWIN-CAT (877 894-6228)
15
12150 Nicollet Avenue South / Burnsville, MN 55337 / 877 TWIN-CAT (877 894-6228)
16
If there is a communication
problem, the lower right corner
will report a time out.
9.a. Enter Config mode by clicking the Set/Reset TwinCAT to Config Mode button (Shift+F4).
12150 Nicollet Avenue South / Burnsville, MN 55337 / 877 TWIN-CAT (877 894-6228)
17
12150 Nicollet Avenue South / Burnsville, MN 55337 / 877 TWIN-CAT (877 894-6228)
18
At this point you are ready to switch to Module 1: Introduction to TwinCAT to learn how to
configure, test and program the bus.
12150 Nicollet Avenue South / Burnsville, MN 55337 / 877 TWIN-CAT (877 894-6228)
19
2. Click the
12150 Nicollet Avenue South / Burnsville, MN 55337 / 877 TWIN-CAT (877 894-6228)
20
12150 Nicollet Avenue South / Burnsville, MN 55337 / 877 TWIN-CAT (877 894-6228)
21
4. The desktop will appear. Notice that the bar at the top lists the name of the remote system.
5. Transferring files to the remote system is the same as moving files between two PCs, even
when connected to a CX coupler. One method is to mount the remote system:
5.a. Click the Minimize button on the top bar.
5.b. Click on the Start button of your PC and select Run.
5.c. Enter \\<remote system name>\c$
(e.g.\\cx_016520\c$).
12150 Nicollet Avenue South / Burnsville, MN 55337 / 877 TWIN-CAT (877 894-6228)
22
7. To properly disconnect from the remote system, click the Start button on the remote systems
desktop and select Disconnect.
12150 Nicollet Avenue South / Burnsville, MN 55337 / 877 TWIN-CAT (877 894-6228)
23
2. Enter the name of the coupler in the Hostname field (review the
TCP/IP Connections section earlier in this manual to determine the
name of the coupler).
Chances are the Password should be left blank.
2.a. Click the OK button.
12150 Nicollet Avenue South / Burnsville, MN 55337 / 877 TWIN-CAT (877 894-6228)
24
12150 Nicollet Avenue South / Burnsville, MN 55337 / 877 TWIN-CAT (877 894-6228)
25
12150 Nicollet Avenue South / Burnsville, MN 55337 / 877 TWIN-CAT (877 894-6228)
26
Documentation
A number of sources of information are available when learning about, using specific Beckhoff
tools, Beckhoff products and services and company information. As a customer of Beckhoff, all of
this information will be at your disposal.
12150 Nicollet Avenue South / Burnsville, MN 55337 / 877 TWIN-CAT (877 894-6228)
27
There are three main ways to find information in the Information System:
Contents shows a tree of topics that can be browsed.
Index takes a keyword and shows items specified as being related to that keyword.
12150 Nicollet Avenue South / Burnsville, MN 55337 / 877 TWIN-CAT (877 894-6228)
28
Search returns every page that contains the entered search term.
If you find something close to what you are looking for in a search, try clicking on the Contents
tab to see where the selected page falls in the tree. You can then browse from there to pinpoint
the information you require.
12150 Nicollet Avenue South / Burnsville, MN 55337 / 877 TWIN-CAT (877 894-6228)
29
Other resources
www.beckhoff.com
This is the official website of Beckhoff Automation. At this site you will have access to company
information, including news, training locations, contact information, products and services.
PC Control
This printed, monthly magazine, published by Beckhoff offers stories about companies that are
benefiting from the incorporation of Beckhoff products plus tips, new product announcements and
general news. It can also be read online at www.pc-control.net.
Main Catalog
This printed document contains all of Beckhoffs products and services and also includes some
company information. See the I/O section in this manual for a description of model numbering
and color scheme.
12150 Nicollet Avenue South / Burnsville, MN 55337 / 877 TWIN-CAT (877 894-6228)
30
Glossary
ADS (Automation Device Specification), an
interface that utilizes a Message Router to
communicate between ADS devices over
TCP/IP.
AMS (Automation Message Specification)
Bus Terminal (aka slice), the part of the box
that handles I/O and sometimes added
communication and specific electrical
requirements.
Crossover Cable (Ethernet), a cable used
to connect two computer systems where no
Hub, Switch or Router is used.
DVI (Digital Visual Interface), the external
monitor connector on some CX couplers.
Ethernet, a networking hardware protocol
identified with an eight contact (RJ-45)
cable.
Fieldbus, an industrial network system for
real-time distributed control.
GUI (Graphic User Interface), the visual part
of a program or system.
Hub, an Ethernet hub is a low-cost device
for connecting multiple systems via
Ethernet. Unlike a Switch, it is unmanaged
(all messages are sent to all ports at once);
collisions can slow or stop communication.
I/O (Input/Output), communication between
a computer and its users, its storage
devices, other computers (via a network) or
attached hardware.
LAN (Local Area Network), a network
connecting systems in a small geographical
area (e.g. one or more buildings in a
campus).