14-3 CNLM Web
14-3 CNLM Web
14-3 CNLM Web
CAN Newsletter
Hardware + Software + Tools + Engineering
Stability of mobile
construction machines
www.can-newsletter.org
Mechanical assistants with
embedded CAN networks
For farmers the day usually starts at 3 or 4 o’clock in the morning. They have to look after their
cattle, feeding and milking them. Until now: Thanks to a milking robot, the cows milk and feed
themselves.
tilize, and feed animals with teat cups and to reattach makes the process easier cow moves, the robotic arm
increasing autonomy. Neth- them if required, to detach for the cow, which shortens moves with her.
erlands-based company after milking, and to carry the learning curve, increas- The MQC (Milk Qual-
Lely, a leading manufactur- out post-treatment. Due to es the throughput, and as ity Control) is a tool for
er of robot milking systems, the robotic milking system, a result the capacity of the measuring milk quality. It is
offers an entire line of prod- many factors can be mon- robot. Lyndon Williams, a located inside the arm of the
ucts, from stall cleaning itored for each individual farmer from Wales UK, said: robot just beside the udder.
systems to automatic feed- cow, factors that cannot be “There was one cow we al- During milking, the milk is
ing systems, amongst them provided in a convention- ways needed to bring to the continuously monitored per
the CAN-featuring Lely As- ally milked herd. With ro- robot. But now – with the quarter. This provides the
tronaut A4 milking robot for bot milking decisions are more open entrance of the user with vital information
about $250 000 including a transferred from the fam- Astronaut A4 robot – even on mastitis, fat and protein,
mechanical arm and teat- er to the cow. It is all about this cow regularly visits and lactose for managing
Figure 1: A farm may be the last place someone would expect to find a robot but actually,
they have long been used to milk cows
Additional information ex-factory but also installed air), and the MQC (via the
health. Mastitis is the in- on an existing Astronaut A3 CAN connector). The pro-
Dr. Makota Mizukawa, flammation of breast tissue. milking robot. Depending cessor sends output to the
Shibaura Institute of To prevent it, the optional on the production date, it is sampler and the MQC. The
Technology, “RTC-CANopen”, MQC-C somatic cell count possible some other modifi- wall socket is installed be-
CAN Newsletter Print, June measurement system moni- cations must be done to in- hind the intermediate pan-
2010 tors the SCC per milking per stall the MQC-C on existing el on the right side of the
cow. Alarming deviations milking robots. It has three machine room above the
Holger Zeltwanger, CAN in are noticed and reported. primary parts: the sampler, pumps. The wall socket
Automation, “Service robots The Milk Quality Control the processor and the wall joins the input of the water,
need smart grippers”, CAN - Somatic Cell Count Indi- socket. Astri-Cell, and compressed
Newsletter Print, September cator (MQC-C) is an option- The sampler is in- air supply with the tube
2011 al part of the milking robot stalled on the support be- bundle that leads to the pro-
and is used to measure the tween the MQC and the cessor. It is provided with
CAN in Automation e. V., CiA class of the somatic cell milk jar. The function of pressure reducers for the
318 Draft Standard Proposal, count per cow per quarter. the sampler is to separate water and the air supply.
“CANopen – Integration to This is done in an automat- a small quantity of the milk The CAN network of
RTC environments”, February ed process and can be set for the test when a test must the milking robot supplies
2012 - be done. The sampler gets the electrical power to the
tem called T4C (time for input from the processor MQC-C. According to Mr.
CAN in Automation e. V., CiA cows) to carry out the test and sends output to it. The Peter Meyer, Product Man-
460 Draft Standard Proposal, per cow, group of cows, or processor is a box (a base ager Dairy at Lely, they use
“CANopen – Service robot the whole herd. The test is and a cover) with pumps, standard CAN network com-
controller profile”, February based on the drain time of valves, chambers and elec- ponents with a CANopen
2012 a mixture of the milk and tronics. It is installed on the protocol, the international-
Astri-Cell (a fluid needed milking robot frame behind ly standardized (EN 50325-
for measuring the somatic the intermediate panel and 4) CAN-based higher-layer
cell count in the milk). The is attached to the proces- protocol for embedded con-
test also indicates the udder sor installation bracket. The trol system. The CAN com-
health. The MQC-C gets its processor has three main ponents of the robot are
We use standard input (when to test) from functions: to transport, mix, well supplied with 27,2 VDC
the MQC and sends its out- test, and drain the mixture. / 4 mA to 20 mA. The CAN
CAN components put (test results, number of The processor pumps the network works via a two-
with a CANopen visitations) to the MQC. Re- milk from the sampler to the wire connection (CAN high
sults and class attentions of processor and adds Astri- / CAN low).
protocol. the test can be found in the Cell to the milk. When the
Peter Meyer T4C software. Hardware-re- test is done, the processor Service robots on
lated alarm messages can pumps the mixture to the the rise
be found on the X-Link. The sewer. The processor gets
visitation lists generated by its input from the sampler Service robots are extreme-
T4C can be found on the X- (electronic and milk sam- ly gifted, they can detect and
Link. The MQC-C can be ples), the wall socket (Astri- interpret their surroundings,
built into the Astronaut A3 Cell, water and compressed have the ability to learn, and
A^Qdbc4_TR2^]ca^[BhbcT\?a^SdRcb
U^a<^QX[T<PRWX]Tah
T_TR"%%R^]ca^[d]Xc
T_TR#%!R^]ca^[d]Xc QPbTS^] %"!QXc_a^RTbb^a T_TR% &SXb_[Ph
QPbTS^] %"!QXc_a^RTbb^a \T\^ah) QPbTS^]0A<R^acTgP(_a^RTbb^a
\T\^ah) ~U[PbW %<QhcT \T\^ah)
~U[PbW %<QhcT ~aP\ !ZQhcT ~U[PbW#6QhcT
~aP\ !ZQhcT ~_[R^_T]P__[XRPcX^]\PgbXiT&%'ZQhcT
~aP\!$%<QhcT
~]^]e^[PcX[T)'ZQhcT ~]^]e^[PcX[T)!ZQhcT ~]^]e^[PcX[T)$ !ZQhcT
~_[R^_T]P__[XRPcX^]\PgbXiT&%'ZQhcT ~cT\_TaPcdaTaP]VTd_c^'$R ~cT\_TaPcdaTaP]VTd_c^&R
~cT\_TaPcdaTaP]VTd_c^'$R ~aTbXbcXeTc^dRWbRaTT]
~fXSTeXTfX]VP]V[TbP]SWXVW
QaXVWc]Tbb^UUTabP]TgRT[[T]c
bd][XVWcaTPSPQX[Xch
bPTY ("( 417
T_TR^h|
Mechanical assistants with
Table of contents
Applications
Loop detectors for traffic light systems 16
Lock and load: LEVs for public infrastructures 28
Stability of mobile construction machines 34
Imprint
Publisher
CAN in Automation GmbH
Kontumazgarten 3 System design
DE-90429 Nuremberg
CANopen in the frontline of openness 44
[email protected]
www.can-cia.org
www.can-newsletter.org
Tel.: +49-911-928819-0
Tools
Fax: +49-911-928819-79
CEO Holger Zeltwanger
AG Nürnberg 24338 Tips and tricks for the use of CAPL (part 2) 10
Printed in Germany Decoding data from a vehicle's CAN network 12
Hard copies: 3000
Soft copies: 3000 CAN as trace source 40
Editors CAN FD: Measuring and reprogramming 48
([email protected])
Annegret Emerich
Cindy Weissmueller
Holger Zeltwanger Devices
(responsible according
to the press law) Implementing CANopen Safety I/O modules 20
Layout Combining Ethernet and CANopen 24
Nickel Plankermann
Advertising manager
Gisela Scheib
(responsible according
to the press law)
Distribution manager
Business
Julia Adolf CiA in Poland: only a few members 18
© Copyright
CAN in Automation GmbH
We are always looking for CAN-related applications; the more unusual, the better. So if
you read our articles and think: “My application is at least that remarkable,” please let us
know. You can share your idea with over 6000 Newsletter readers, and our next issue will
also be distributed at the SPS IPC Drives this November.
Authors
T he second part also of-
fers tips for all types of
users so that they can work
in CANoe and CANalyzer
as well as signal values
that represent a data in-
within the current procedure
always returns the old value
even if the variable appears
more effectively with CAPL terpretation of the bus to be set to a new value
in the areas of "generic pro- communication. Special within the same procedure.
gramming" and "conditional databases perform the The advantage is that only
compiling." interpretation. Part 3 of one value change occurs at
this series will address a single point in time.
Execution model this concept. The execution model is
Event procedures are situation dependent: There
Marc Lobmeyer A key difference between atomic: The simulation mod- are many ways to use CAPL
CAPL and C or C++ relates el of CANoe is event ori- in CANoe and CANalyzer,
to when and how program ented. In event procedures, and so the execution model
elements are called. In C, CANoe executes all actions varies somewhat, too: The
for example, all process- simultane ously from the simulation nodes of a CA-
ing sequences begin with model perspective, namely Noe simulation are in paral-
the central start function at the point of in time of the lel on the bus. Hence, they
main(). In CAPL, on the oth- triggering event. The actual are completely indepen-
er hand, a program contains computation time on a real dent from each other. Trig-
an entire assortment of pro- PC is ignored. gered events are always
Roman Marktl cedures of equal standing, Simulation time and dispatched to all programs.
each of which reacts to ex- time stamp: However, a In contrast, nodes in the
Vector Informatik GmbH ternal events: real event generated by measurement setup and in
Ingersheimer Str. 24 Triggered by the system: the PC, such as a bus out- CANalyzer are processed in
DE-70499 Stuttgart These events include put by output(), gets a time sequential order: Each node
Tel.: +49-711-80670-0 those that are useful for stamp of the real-time clock. passes its output to the
Fax: +49-711-80670-111 initializing and post-pro- The sequence and time next. Incoming events must
cessing the measure- points of these events can be passed to the next node
Link ment run: on preStart, be influenced by bus proto- explicitly for further pro-
www.vector.com on start, on preStop and cols, driver, and hardware cessing. The procedures on *
on stopMeasurement, as properties. and on [*] are provided for
well as the time control On a simulated bus, this purpose.
and keyboard events on some of the mentioned in- Another type of pro-
timer and on key. fluencing parameters are gram is a test program
Triggered by bus com- eliminated. In this case, bus whose test procedures can
munication: There are events are initiated simulta- wait for external events.
many different types of neously; in the case of CAN, CAPL resumes execution
event procedures that for example, this leads to a with the simulation time of
react to bus events such dependable arbitration of such events. In contrast,
as those related to com- multiple messages that are waiting in normal event pro-
munication or error han- output by output(). cedures stalls the entire
dling, and they are very Updating system vari- simulation system. This is
dependent on the bus ables: Users can also use a frequent source of er-
type. Examples of these CAPL to modify environ- rors when CAPL is used. It
CAN Newsletter (print) are on message and on ment or system variables is therefore inadvisable to
Tips and tricks for the use busOff in CAN and on fr- that are visible outside of use a busy-wait or wait com-
of CAPL (part 1) Frame and on frStartCy- the program. CAPL does mand in an external DLL.
cle in FlexRay. not propagate value chang-
Triggered by access to a es to a variable until after Efficient programming
Value Object: Such ob- the current event process- in CAPL
jects include system and ing is finished, but with the
environment variables same time of the just han- The preprocessor is a pow-
that are globally available dled event. A read access erful tool in the C language,
No longer miss a
bus with our Safety
Gateways Safety Basic Monitor with switchable
AS-i Master - the new cost brake for
Safe Link over Ethernet
3 safe signals or more
All
ducts already
p ro
me
+ et
the
IP20 or IP67, Speed Monitors for up to 40 axis, Safety Relay Output Modules
n ew s t a n d a r d
Author
T o the novice user, it is dif-
ficult to know what data is
easily accessible. Even en-
the vehicle manufacturer
for those proprietary defini-
tions.” Manufacturers create
because there is a message
framework, referred to as
a service, defined for non-
gineers that work on target- their own definitions for data legislated messages within
ed areas of vehicles, such as in these messages and do ISO 14229 Road Vehicles –
calibration, are unsure as to not publish the database. Unified diagnostics services
what data is available on the For users with a higher level (UDS) and ISO 15765 Road
CAN network or how to de- Vehicle – Diagnostic com-
code it. There is a series of - munication over Controller
questions to determine if a neering or searching the In- Area Network (DoCAN) stan-
Cyrilla Jane Menon solution is possible for their ternet for a database solution dards. But the data is main-
Accurate Technologies Inc. needs. might be appropriate. But in ly proprietary definitions from
47199 Cartier Drive Do you want to decode most cases, CAN tool sup- automotive companies. As
US-Wixom, MI 48393 normal messages or diag- pliers sign Non-Disclosure an example, a service tool
Tel.: +1-248-848-9200 nostic messages? There are Agreements (NDAs) and can- will use a specific service
Fax: +1-248-848-9216 two major functions of net- not provide the database of to request information from
cmenon@accuratetechnologies. working in cars: system and definitions. an ECU, like Service 0x23 -
com diagnostic. The original us- Is the diagnostic data ReadMemoryByAddress. It
age for networks on vehi- non-emissions-related (non- is easy to construct the CAN
Link cles was for diagnostics, but legislated) or emission- message requesting the data
www.accuratetechnologies.com the majority of messages related (legislated)? The of any memory address, but
seen today on a vehicle net- non-legislated (or enhanced) the definition of the data at
work are for systems usage diagnostic data supports ser- that address is unknown –
– information sharing and vice repair applications, while and varies from vehicle-to-
control. As an example, the legislated (OBDII, E-OBDII) vehicle. For these messages,
engine broadcasts its speed diagnostics contain the emis- once again, the answer is:
message for display on the sion-related information driv- “Please contact the vehicle
instrument cluster or to trig- en mandated by individual manufacturer for those pro-
ger the door locks to engage. governments for cars sold in prietary definitions.”
If the desired informa- their countries. Do you only need data
tion is embedded in the sys- It is easier to work with readily available on the net-
tem messages, then the easy non-legislated diagnostics work? The legislated OBDII
answer is: “Please contact rather than system data, data called PIDs (parame-
ter IDs), while limited, is the
easiest to obtain. The re-
quirement of OBD (On-Board
Diagnostic) systems is to
give the vehicle owner or re-
pair technician access to the
status of the various vehicle
sub-systems. OBDII uses
master-slave communication,
with the off-board tool acting
as the master, or requestor.
It is important to know that
-
pear on the network; it has
to be requested every time
readily available on the mar- and viewing OBDII data the preferred database. CANLab Trace window to de-
ket. Some are cheap and relatively easy. The user then has to add termine the response time,
inexpensive, such as the One example CANLab the identified database to the request rate can be ad-
Torque Android App using an script that ships with CAN- the CANLab project. The justed to smooth out the data
ELM327 hardware interface. Lab allows users to emu- PID list also needs to be request.
This easy-to-setup interface late an OBDII tool easily. But configured in the script. Vehicle networking so-
displays live OBD engine again, OBDII has some vari- Alt+P starts/stops lutions continue to evolve.
data on a phone or tablet. It is ances that need to be under- requesting the PIDs While some networks were
highly graphical and requires stood by any tool, such as, discovered. adopted from other indus-
no low-level bit-byte knowl- setting up the PIDs, adjusting The default (and most tries, CAN was specifically
edge at all. the CAN ID, and choosing the commonly used) CAN IDs designed for automotive and
More advanced us- proper message send rate. used in the CANLab script has had staying power. The
ers would be interested in a It is important to know are 0x7DF for the request most notable recent change
CAN analyzer tool to gath- that not all vehicles support and 0x7E8 for the response, is the latest addition of the
er PID data, perform analy- all PIDs, so discovering what but it may be necessary to Ethernet physical layer; in-
sis, and port it into different is supported is the first prior- adjust these CAN IDs as well. cluded in ISO 14229-2 as the
applications. For example, ity. The decoding of the data The request CAN ID can be diagnostic communication
Accurate Technologies Inc. is also variable, so this CAN- changed in the script, while over Internet Protocol (DoIP).
(ATI) also offers a CAN de- Lab example is supplied with the response CAN ID is not- Another on-going de-
velopment software solu- six database options. Once ed in the database. ` velopment is WWH-OBD, or
tion, the CANLab Network the script is running there are The other adjustable pa- the World-Wide Harmonized
Analysis Software. Work- two commands required for rameter is the message send On-Board Diagnostics, be-
ing with the ATI CANary viewing data: rate (defaulted to 50 ms in the ing specified in ISO 27145-2
hardware, Kvaser CAN In- Alt+S sends a Mode $01 program). Different vehicles and ISO 27145-3. Prompted
terfaces, or other CAN hard- PID 00 message request respond to OBDII requests at
ware to physically interface to determine which PIDS different rates. Typically, if the Technical Regulation (GTR),
with the CAN network, are available. The CAN- rate is too fast, many vehicles this specification is a fur-
CANLab comes with a Lab script displays the re- will not respond to a new PID ther merging of the legally
scripting application that sponse with the PIDs in its received while processing required and OEM-specific
can make requesting output window along with a previous one. Using the diagnostic contents – to be-
come the single communi-
cation standard for access
to OBD-related information.
This could significantly sim-
plify the viewing and under-
standing of ODBII data for
everyone.
Figure 3: Location of the Message request Rate, Request ID and Response ID in the
CANLab script
Ethernet/CAN
NEW
Gateway
EtherCAN CI-ARM9/RMD
CAN/Ethernet Gateway
embedded Linux Kernel 3.5.0
ARM9 CPU / 454MHz
2GByte EMMC Flash
Optical Physical 128 MByte RAM
Fibre Transceiver Layer Analyser
IXXAT
“green light” signals for Expanding business
blind pedestrians can be in-
tegrated. The unit provides The Austrian enterprise re-
CM CANopen
24 outputs, which can be cently acquired Technical Communication module for connecting CAN-based
toggled and monitored in- Traffic Solutions (TTS), a
dependently of each other. Danish 35-employees com- field devices with the SIMATIC® S7-1200 world
Information can be import- pany. The activities of TTS
ed and requests can be tog- will be integrated with Swar-
gled via 12 inputs and four
Comprehensive CANopen functionality for
outputs. The control panel Hans Petter Ødegaard, Os- master or slave mode
is directly integrated into the lo-headquartered Swarco
front panel (as a default set-
Transparent CAN 2.0A mode for the support
up) where program and er- regards the acquisition as of alternative protocols
ror information is displayed. an important step to consol-
Operation via durable touch idating and expanding the
Easy PLC programming within the TIA Portal
sensors enables switching position in Denmark and be- using pre-programmed function blocks
on/off and the changeover yond: ”With the acquisition
of programs and control of TTS we have reinforced
Intuitive Microsoft Windows application for the
levels. Traffic engineer- our presence and prepared CANopen network configuration included
ing is generated via Lisa+, for further long-term growth
- in the Danish market. We
ming language, or via Java have achieved a constant
With CM CANopen HMS offers under the brand IXXAT a module for the
programming. annual growth in the Nor-
easy integration of CANopen and CAN-based I/O modules, drives or
Other products using dic ITS market over the past
sensors into SIMATIC S7-1200 controllers as well as in PROFIBUS and
CAN connectivity includes 10 years and are convinced
PROFINET networks.
the “Life” LED tunnel signs. that the acquisition of TTS
Another CAN-connectable will further contribute to this
device is the SCC-Air pro- development”. Swarco has
cessing unit. The ARM- also acquired the British
based controller runs Linux Also available: 1 SI CANopen
APT group based in Harrow
CANopen module with CAN 2.0A support for
and can be combined with (Middlesex). The 170-staff
SIMATIC ET200S decentralized peripheral systems
the Swarco Motorway Con- company is focused on
troller software. The KSR parking access control SIMATIC, STEP 7, TIA Portal and images of the S7-1200 and ET200S are intellectual property of
Siemens AG Germany and copyright protected.
public transport priority sys- and payment systems,
tem is also equipped with an electric vehicle charging,
embedded CAN network. etc. Holger Zeltwanger
HMS Industrial Networks GmbH
Emmy-Noether-Str. 17 · 76131 Karlsruhe
+49 721 989777-000 · [email protected]
www.anybus.com · www.ixxat.com · www.netbiter.com
CiA in Poland: only
Business
a few members
Currently, CAN in Automation (CiA) has three members with headquarters in
Poland: Diga, Obrum Gliwice, and Polchip. For several years CiA has supported
Obrum in organizing the biannual Polish CAN conference.
Links
www.diga.biz.pl
www.obrum.gliwice.pl
T his year the “Konfer-
enzja CAN” happens
for the 6th time on Septem-
www.polchip.pl ber 18th and 19th. For the
first time the event will not
take place in the health re-
sort town of Ustrón close to
the Czech and Slovakian
boarder but at the Arsenal
Palace Hotel in Chorzów,
which is a city in Silesia in
southern Poland, near Ka-
towice. Chorzów is one of
the central districts of the
Upper Silesian Metropol-
itan Union – a metropolis
Polish universities with a population of 2 mil- Figure 1: The CANstudio 3 is suitable for configuration,
lion. At the conference, diagnostic, and service purposes; it can interpret
have used CAN in CAN experts and newcom- CANopen protocols (Photo: Diga)
many academic ers gather to exchange
knowledge and experienc- up to date on what is new also offers CAN training
research projects. es. One of the main objec- about CAN and CANopen and R&D and is a distribu-
tives is to bring researchers all the time and also to get a tor of controllers from In-
and industries together. Ob- CANopen vendor-ID “free- tercontrol for mobile use
rum, member of CiA since of-charge”. This vendor-ID and CANopen products
2006, once again organizes is part of the object 1018 h from Microcontrol in Po-
the conference "Application and identifies the manufac- land. The application fields
of the CAN bus in military turer of a device uniquely. It are transportation (off-high-
and civilian technology" must be implemented in all way vehicles), manufactur-
providing a platform for ex- CANopen devices. Jacek ing (embedded machine
changing information be- Barcik also said another control), construction (road
tween representatives of reason to became a mem- construction machines,
three complementary ar- ber was to get access to all building construction ma-
eas of activity: industry, re- CiA specifications. Diga is a chines), agriculture, and
search and development manufacturer of CAN tools forestry (tractor, forest
centers, as well as scientif- and customized CAN inter- harvester). One of the
ic centers, and last but not face boards. The company
least producers/distributors
of devices and equipment
Polish CAN
applications Also in combination
Poland, a member of the with the new
European Union since
2004, has some industries USB-to-CAN V2
using CAN networks. Pol-
ish universities have also For mobile analysis and configuration of CAN systems as
used CAN in many aca- well as for sophisticated simulation and control applications
demic research projects. Up to two CAN interfaces (optional low-speed CAN and LIN)
Two important markets are
military and civil service USB 2.0 Hi-Speed: Minimal latency and high data throughput
robots, which were present-
ed several times at CAN
conferences organized by
Obrum.
HMS Industrial Networks GmbH
Emmy-Noether-Str. 17 · 76131 Karlsruhe
+49 721 989777-000 · [email protected]
www.anybus.com · www.ixxat.com · www.netbiter.com
Implementing CANopen
Devices
Author
Marc Weissengruber
Martin Lampacher
C ANopen I/O modules
can reduce the wiring
effort for sensors and ac-
TTControl - HYDAC International tuators, which are located
Schoenbrunner Strasse 7 far from the processing de-
AT -1040 Vienna vice. By using an I/O mod-
Tel.: +43-1585-3434-0 ule the wiring between log-
Fax: +43-1585-3434-90 ic and sensors/actuators
[email protected] is reduced to the CAN net-
work and the power sup-
ply. Aside from CANopen
Link functionalities, the logic
www.ttcontrol.com and control functions imple-
mented on the I/O module
are reduced to a minimum,
e.g. a PID controller for cur-
rent-controlled PWM out-
puts. Thus, the actual logic
(e. g. safety functions) is ex-
ecuted by the participants Figure 1: The CANopen Safety I/O modules are intended
of the CANopen network, for outdoor use in mobile machinery; they are certified for
which process the I/O data PL-d safety-applications (Photo: TTControl)
of the CANopen NMT slave
device, e.g. the CANopen configuration stored in the plication of the CANopen
host controller with NMT object dictionary. The CAN master, e.g. via Codesys.
master functionality. communication is handled The EDS file contains the
via a separated CANopen definition of the CANopen
CANopen I/O modules are stack, which also uses the object dictionary of the de-
implemented on the basis CAN driver of the platform vice and thus the descrip-
of their general-purpose drivers. tion of all available features
control units. The HY-TTC and configuration options of
30 family, for instance, is Integration and the I/O module.
the basis of the HY-TTC operation Once the EDS file is
30X family of CANopen I/O loaded by the CANopen
modules. Their general- The CANopen I/O modules host controller, the develop-
purpose control units are are delivered with ready- er simply chooses the de-
delivered with a C-driver li- to-run software and an sired I/O setup and fixes the
brary, which can be used by electronic datasheet (EDS data exchange between the
a custom application to con- file), which makes integra- master and I/O module by
trol the I/Os of the device. tion into a CANopen net- configuring the correspond-
The CANopen I/O work without any additional ing CANopen communica-
module implementation is development effort for the tion object. The inputs and
actually an application pro- I/O module possible. The outputs of the I/O mod-
grammed in C, which uses CANopen application of the ule can then be used as if
the existing drivers of the I/O module is essentially they were I/Os of the host
underlying platform. Figure an interface to the underly- controller.
1 depicts this concept: The ing general-purpose control
CANopen application (out- unit which implements error Configuration and
lined in blue) controls the detection and safety mech- operation
underlying hardware exclu- anisms. The I/O module is
sively via the existing driv- typically integrated into the The host controller can
ers of the platform (outlined system by loading the EDS configure the I/Os of
in green) basing upon the file of the device into the ap- the CANopen module by
www.gemac-chemnitz.de
Implementing a watchdog). The current- Requirements for the Instead, the safety
Devices
CANopen Safety ly available CANopen I/O system designer manual specifies a certain
modules feature a micro- sequence, which has to be
The HY-TTC 48X and HY- controller of the Infineon A safety manual is provided followed for the configura-
TTC 36X families are the XC2000 series. The HY- to the system integrator, in tion if the device is used in
TTC 48XS, for instance, order to ensure the correct safety-related systems:
Safety devices. The HY- uses the XC2287M micro- integration of the CANopen By default, all
TTC 48XS module meets controller, which features safety I/O module into the configurable pins of
the necessary safety re- an integrated ECC test to overall functional safety con- the CANopen devices
quirements of ISO 13849- protect the RAM and there- cept of the safety system. are disabled (set to
1. It has been certified for fore allows to assume that These requirements have to “not configured”). Thus
PL-d (performance level) all data in the RAM is pro- be fulfilled to reach the spec- the device has to be
according to ISO 13849-1 tected against bit-flips (the ified level of safety integrity. configured before use by
by TÜV North (Germany). device activates the safe- The safety manual writing the corresponding
The HY-TTC 30XSH and state in case such a bit-flip also includes requirements entries in the object
HY-TTC 30XSI safety vari- is detected). for the safe configuration dictionary.
ants are subject to certifi- Thus the main respon- of manufacturer-specific The device is configured
cation according to PL c of by using the general
ISO 13849-1. The CANopen Sensors / Actuators CANopen configuration
Safety I/O modules are (Safety) Platform sequence (such as for
based on single-channel PDOs), i.e. by using SDO
software architecture and services to write the
support safe communica- required settings to the
tion via CANopen accord- Diagnostic I/O object dictionary.
ing to EN 50325-5 via a sin- Modules Drivers In order to ensure that
gle CAN channel. the device has not
A fundamental part of CANopen received wrong values,
the safety concept of the Application e.g. due to bit-flips in the
CANopen I/O modules is CAN frames containing
the fact that they are de- the configuration data, all
veloped as pure software settings have to be read
applications on top of the I/O Module back and compared to
matching, certified gen- Application the desired settings. The
eral-purpose ECUs. The configuration has to be
majority of the safety re- repeated if there are any
quirements are implement- CANopen errors.
SDO/PDO
ed by this safety platform Safety Stack EMCY Once configured,
or SRDO
whose safety concept and the device has to be
parameters (e.g. assumed instructed to store the
safety function, perfor- configuration in its
mance level and diagnos- non-volatile memory
tics as well as safety critical CAN by writing the proper
system components) match Driver values to the CANopen
the ones of the CANopen parameter (1010h as
safety I/O module. specified in CiA 301).
The underlying cer- The device stores the
tified safety platform configuration redundantly
executes all diagnostic mea- CAN[open] traffic (e.g. configuration- or process data) and with CRC protection to
sures such as the required provide the proper error de-
fault-detection mechanisms Figure 2: Basic outline of the concept used for the tection. Upon start-up the
to achieve the required di- TTControl CANopen I/O modules (Source: TTControl) device checks the consis-
agnostic coverage as well tency of the configuration;
as internal checks of the sibility of the CANopen device parameters such during run-time the config-
CPU – independent of the application software is es- as pin-configurations and uration data is inherently
actual application. The safe sentially only to safe the modes, which are not cov- protected by the underlying
execution of the actual ap- CAN communication chan- ered by EN 50325-5. For safety platform (amongst
plication is also ensured by nel as specified in EN compatibility reasons be- others by periodic tests of
the safety platform by exe- 50325-5, e.g. by activat- tween safe and non-safe the RAM).
cuting internal tests of the ing the safe-state in case CANopen I/O modules as Specifying such a con-
CPU (such as periodic tests of a loss of communication well as third-party CANopen figuration sequence allows a
of the CPU registers, stack caused by a cable break on configuration tools the certain degree of flexibility:
checks, RAM tests and a the CAN-lines. The applica- CANopen I/O modules do In the prototyping phase of
CRC check of the flash) and tion uses single-channel ar- not require specific con- a system it is still easily pos-
by the ECU architecture chitecture, i.e. no software figuration mechanisms sible to even manually con-
itself (e.g. 1oo1D architec- parts are executed redun- (such as the calculation of figure the device. This would
ture with the correspond- dantly (neither in time nor CRC values) for the safe not be trivial if, for exam-
ing test equipment such as by software diversity). configuration. ple, it was required to write
and CANopen
Whenever data needs to be communicated between a serial bus system and
Ethernet, gateways provide the bridge. This solution is controlled via TCP/IP
and supports CANopen PC cards as DIN-rail mountable devices.
CANopen
Ethernet
Author
N ethost, the latest gate-
way from Hilscher, of-
fers a totally different
replacement for conven-
tional integrated serial bus
system solutions.
er level of performance not
often needed.
Protecting
investments in serial
bus system devices
When looking at its sales
history, Hilscher observes
a clear trend towards Eth-
ernet. Demand has ris-
en considerably especially
during the past two years.
Yet, with a market share of embedded systems connectivity to and control of serial bus systems over Ethernet
over 70 %, serial bus sys- (Photo: Hilscher)
tem technology still holds
a strong position and will one by one, enabling its re- Supported are SDO com- example CiA 309 does not
continue to exist for many mote control over Ethernet. munications and NMT cover, bringing the underly-
years. This also means that Nethost, however is differ- master operations. Nodes ing CANopen system into a
machine manufacturers will ent and not just a simple emergency messages are safe state when the Ether-
need to support both sys- server. It includes a fully collected node wise in diag- net application dies.
tems for quite some time, featured CANopen master nostic buffers requestable The coding logic is
which the company took as that runs autonomously by the Ethernet applica- provided by Hilscher as
and takes care of all config- tion as well. If necessary part of a C source code.
discussing the concept for ured transmit- and receive- is it also possible to trans- It is projected to a socket
the new product, protect- PDOs of its nodes by itself. mit and receive pure CAN interface and is therefore
ing investments was of pri- All these PDOs then are of- telegrams to the network at compatible with any TCP/
mary importance to us,“ fered in a compressed pro- any time by using COB-ID IP stack. On the side of the
cess data output and input filtering. application, it is abstracted
was therefore not our goal image, a single Ethernet to a simple procedural se-
to simply replace the seri- service grants access to. Short time-to-market rial bus system indepen-
al bus system with indus- With the simplicity of this dent API interface. Simple
trial Ethernet. Instead, we interface a Nethost user TCP/IP as such takes care functions, such as open,
wanted to combine both of safe transmission from close, reset, send, receive
technologies in a simple CANopen services, the pro- and to the Nethost. The or I/O-exchange guaran-
way to address a wider tocol handling and the con- transparently transmitted tee a fast learning curve
market and allow custom- figuration. This enables the telegrams are coded and to allow shortest-possible
ers to continue using prov- effortless integration into classified depending on integration times. Based
en field devices.“ The ide- conventional PLC systems their purpose, adding only upon the RPC principle,
al of a gateway based upon used to operate with cyclic a few bytes to the header functions are decoded in-
TCP/IP was born. IO images anyway. Nethost of the telegram. The cod- side the device and pro-
The CiA organization furthermore maintains no ing is Hilscher specific. Us- cessed remotely. In order
as well took account of the CANopen object diction- ing the standard proposals to make it easy for embed-
Ethernet trend and devel- ary to be configured over CiA 309-2 or CiA 309-3 for ded programmers as well,
oped the standard CiA 309 CiA 309 services. Much encoding the services over a DLL allows immediate
dealing with the subject of simpler: the configuration Modbus TCP or ASCII does use of the Nethost under
“Interfacing CANopen with is done as a whole and in not go far enough. Nethost Windows, while a C toolkit
TCP/IP”. As an immedi- one step with a graphical is pursuing a global and se- shows a sample implemen-
ate result, a few Ethernet configuration tool. rial bus system indepen- tation under Linux.
to CANopen gateway serv- Apart from the PDO dent approach over all its -
ers emerged on the market transmissions the CANopen supported serial bus sys- cess functions confirm to
redirecting and forwarding Nethost supports various tems such as Profibus, De- the Hilscher platform strat-
TCP/IP coded CANopen CANopen specific servic- vicenet and CANopen. A egy and follow the basic
commands to the under- es as well that can be in- Nethost supports a watch-
lying CANopen system structed over Ethernet. dog function, which for everything works“ just like
public infrastructures
Pedelecs, e-bikes, and other LEVs (light electric vehicles) are gaining
acceptance: China is the biggest market with 28 millions sold in 2013.
In Western Europe only 500 000 pedelecs will find a buyer this year.
Links
www.bosch-ebike.de Figure 1: One-stop-shopping – Bosch is
www.brose-ebike.com the market-leading supplier for electric
www.conti-ebike-system.com and electronic pedelec and e-bike
www.emtas.de components, most of which provide CAN
www.pironex.com connectivity (Photo: Bosch)
www.ridebionx.com
www.shimano.com
www.stromerbike.com
www.transxpst.com
Bosch's success
has made other
M ost of the pedelecs
(pedal electric cycle)
developed and produced in
a technical specification of
the CAN communication
between charger and bat-
enterprise: the company pro-
duces 32 millions of elec-
tric tools and 80 millions of
automotive suppliers Western countries use CAN tery. CiA has submitted the small motors for use in pas-
communication to integrate related parts of its CiA 454 senger cars. Nevertheless,
interested in the LEV motor, battery, charger, HMI, CANopen application pro- the German company is in-
market. and other electronic units. file for energy management vesting into the pedelec fu-
Most of the Chinese ones systems. This includes the ture. Recently, the Active
battery, the AC/DC convert- line and the Performance
offer no safety at all: Some er, and the DC/DC converter line of drives for pedelecs
batteries blow-up and burn- with all the necessary pre- (up to 25 km/h) respective-
down cottages and houses. defined PDOs. The CiA 454 ly for e-bikes (up to 45 km/h)
This would be a “no-go” in profile also intends to spec- have been launched. Avail-
Western countries. ify the CANopen communi- able next year, they substi-
Today most pedelecs cation of embedded pedelec tute the Classic line drives,
are charged at home us- units such as motor, lock, which are no longer compet-
ing the charger coming with HMI, and gateways to other itive. The production facility
the battery. But the future communication systems. is in Miskolc (Hungary).
may look different: Several The success of Bosch
tourist regions are prototyp- Bosch: dominant in the pedelec business has
ing pedelec rental systems supplier in Europe made other automotive sup-
including public charging pliers interested in the LEV
stations (e.g. Tegernsee in markets. Continental, an-
Bavaria). The same is hap- drive about 300 000 LEVs other German car supplier,
pening in some cities (e.g. in Europe. This is a market will start mass production of
Rostock, Barcelona, and share of about 25 percent. electronic units for battery-
Related article Copenhagen). For such The market-leading automo- powered two-wheelers soon.
Energybus: an open public charging infrastruc- tive supplier started in 2009 The company offers a com-
specification for LEVs tures, standardized solu- with the pedelec business. plete drive system consist-
tions need to be developed. Engineers from the electric ing of motor, display, control
The IEC has already start- tools business and the au- unit and battery. This mod-
ed a standardization activ- tomotive departments joined ular system is positioned in
ity: Under the IEC 61851 forces. In global terms, the the premium segment and is
series the IEC technical pedelec business is still a smaller, more powerful, and
committee 69 will publish very small part of the Bosch lighter than other concepts
2 w2ewiteeitreere ene: n:
g g
VeV nslttaultnun
raenrasta
r zeruzeguege
E/EE/ENuNtzutz h
fa hfa
MoMboilbeile enen
E/EE/E
msamscahsin
ArbAerbitesit
chin JETZT
JETZT
ANMELDEN!
ANMELDEN!
www.elektronik-im-fahrzeug.de
www.elektronik-im-fahrzeug.de
6.6.
VDI-Tagung
VDI-Tagung
mit
mit
Fachausstellung
Fachausstellung
++Spezialtage
Spezialtage
IHR
IHRMARKTPLATZ
MARKTPLATZFÜR
FÜRELEKTRONIK
ELEKTRONIK
BADEN-BADEN
BADEN-BADENSPEZIAL
SPEZIAL2014
2014
23.23.
undund
24.24.
September
September
2014
2014
imim
Kongresshaus
Kongresshaus
Baden-Baden
Baden-Baden
TOP
TOPTHEMEN
THEMEN IHR
IHRTAGUNGSLEITER
TAGUNGSLEITER
Anforderungen
Anforderungen ananHMIHMI
durch
durchkünftige
künftige
Innovationen
Innovationen Multicore
Multicore– Ziele
– Ziele
und
und
Herausforderungen
Herausforderungen
in in
Rechtliche
Rechtliche Rahmenbedingungen:
Rahmenbedingungen: Mensch
Mensch und
und
Maschine
Maschine imim
Straßenverkehr
Straßenverkehr Fährt
Fährt
dasdas
automatisierte
automatisierte
Automobil
Automobil sicher
sicher
mitmit
HMI
HMIfürfür
hochautomatisierte
hochautomatisierte Fahrzeuge
Fahrzeuge– von
– von
derder „Consumer“-Halbleitern?
„Consumer“-Halbleitern?
ersten
ersten
Idee
Ideebisbis
zurzur
Erprobung
Erprobung imim
Fahrzeug
Fahrzeug Perspektiven
Perspektivenund
und
Lösungen
Lösungen fürfür
denden
Einsatz
Einsatz
hoch-
hoch-
Ergonomische
Ergonomische Aspekte
Aspektederder
zukünftigen
zukünftigenFahrer-
Fahrer- integrierter
integrierter
System-on-Chip-Bauelemente
System-on-Chip-Bauelemente in in
sicherheitsrelevanten
sicherheitsrelevanten
Fahrzeug-Steuergeräten
Fahrzeug-Steuergeräten Dr.-Ing.
Dr.-Ing.
Wolfgang
WolfgangRunge
Runge
Fahrzeug-Interaktion
Fahrzeug-Interaktion
Runge-Consult,
Runge-Consult,
Ravensburg,
Ravensburg,
ehem.
ehem.ZFZF
Lenksysteme
Lenksysteme
GmbH
GmbH
prozessen
prozessen
ausaus
derder
Unterhaltungselektronik
Unterhaltungselektronik
imim
Automobilbereich
Automobilbereich
Veranstaltung
Veranstaltung
derder
VDIVDI
Wissensforum
Wissensforum
GmbH
GmbH
| www.elektronik-im-fahrzeug.de
| www.elektronik-im-fahrzeug.de| Telefon
| Telefon
+49
+49
211211
6214-201
6214-201
| Fax
| Fax
+49+49
211211
6214-154
6214-154
Similar to the devel- they also want to protect their
Applications
CAN
750-337 750-338 750-347 750-348 750-837 767-2501 750-658
www.wago.com
Applications
Figure 4: Stromer's ST2 provides 500 W of power and 35 Nm torque with a range of up to 150 km (Photo: Stromer)
CAN. This data interchange settings is available as an combined with a cassette developed this CANopen
enables coordinated and option. (with up to ten sprockets) profile. Energybus is also a
optimized gear shifting and The Shimano built- and shifts gear automatical- nonprofit association. The
shows the gear or cadence in gear system is suitable ly in three stages, subject official release of the new
that is currently in use on the for users who shift gears a to speed. Users can there- version took place in the
lot and enjoy shifting gears fore enjoy the ride, includ- Emtas facilities in Merse-
operating computer that can and like or prefer shifting ing the acceleration, leaving burg (Germany). Emtas is
be attached to the handle- gears fast. The system is the system to handle every- one of the active parties who
bar. It has a separate control based on manually operat- thing else. Even when start- developed the specification.
unit, which is also attached ed electronic gears in com- ing, the right gear is always The company also provides
to the handlebar and can bination with the Japanese in place. This version does a CiA 454 starter-kit and de-
be used without taking the not require extra control, the signs a CiA 454 test-tool
hands of. Alfine-11 or Nexus-8 inter- system functions on its own. on demand of the Energy-
The integrated Nu- nal hub gears, all of which Fewer components on the bus association. CANopen
Vinci technology is based can be controlled electroni- handlebars ensure an im- hardware for CiA 454 devic-
on a predefined pedaling cally via a Di2 adapter and proved overview and a lean- es is available from Piron-
cadence preference. The CAN. While shifting gear, er appearance. ex. The hardware is used in
H|-Sync gear system, con- the motor is throttled brief- public charging stations in
nected to the e-bike system ly, which makes the pro- Operating pedelec several German cities (Bre-
via the Bosch interface, ad- cess gentler and smoother. fleets men, Chemnitz, Hanover,
justs the transmission au- and Rostock). The compa-
tomatically to the preferred CAN-based solution. The Operators of pedelec fleets ny also offers an Energybus
cadence, both uphill and on above-mentioned adapter are also in favor of open in- CAN-logger device and oth-
the level. Even when cycling is a bridge/gateway device. terfaces. In particular, they er products supporting the
uphill, the system adjusts are interested in a generic CiA 454 specification.
the gearing automatically. CAN communication were charging infrastructure. The Hannes Neupert from
Thanks to H|-Sync the ped- standardized. German post administra- Energybus said: “The idea
aling cadence can be ad- The Shimano controls tion runs a fleet of more than
justed to between 30 and 80 have a sporting feel to them. 6000 pedelecs, which will
revolutions per minute via Paddles enable the user to be increased in the near fu-
the display and the Bosch shift gear up or down swift- ture. The German DB Bahn
Remote. The cyclist speci- ly. The gear that is in use is railway administration buys
fies gradually how intensive- shown on the display. For the pedelecs that their custom-
ly he or she wants to pedal. first time the system incorpo- ers can rent. Same situation:
The seamless N360 hub en- rates the Bosch gear recom- two-wheelers from different
sures smooth gear shifting. mendation, which helps to brands need to be charged
H|-Sync dispenses with the make better use of the bat- at the very same station. In
Nu-Vinci display. The advan- order to overcome this, a
tage is that the user has all arrow on the on-board com- standardized interface is re-
of the important information puter display. quired. Figure 5: The future is open –
available at a glance on the The Sram Dual Drive Recently, CiA has pub- the PiCAN charger complies
display (gear and cadence 3 Pulse is also automatic, lished the second version of with the CiA 454 and the
screen). Alternatively, manu- but based in this case on CiA 454. CiA and Energy- Energybus specifications
al gear shifting with defined speed. The DD3 hub can be bus members have jointly (Photo: Pironex)
construction machines
The higher construction machines are, the further they can fall. Controlling their
stability is not easy, but necessary to ensure their safety. Inclinometers can give
early indications of instabilities.
Author
M any workers have ex-
perienced the follow-
ing changes throughout
axes, and even several
axes simultaneously. Radii,
arcs, and collision-free move-
Controlling stability is
probably the most impor-
tant topic when it comes to
their career: At the start of ments are possible with the mobile working machines.
a working life, during train- milling cutter. The taller a system, the
ing, work was undertaken Mobile equipment such more important and difficult
with conventional machine as excavators, cranes, guaranteeing its stability
tools – drilling, lathing, mill- mobile drills, and lifting becomes. There are var-
ing, welding. Convention- platforms are still facing ied approaches to solving
al in this case means "con- this transformation. Lead- this, for example measuring
Thomas Strauchmann trolled by hand". Further ing manufacturers have the forces that occur and
TWK Elektronik development of these work- increasingly begun to auto- shifting weight to the con-
P.O. Box 105063 ing technologies led to NC- mate their machines. This struction machine's sup-
Heinrichstr. 85 controlled machines. These enables working machines port. These displacements
DE-40239 Duesseldorf were able to indepen- to attain increased efficien- and forces can be placed
Tel.: +49-211-96-1170 dently and autonomous- cy. In addition, a new and into relation to the counter-
Fax: +49-211-63-77-05 ly repeat certain operation very important industrial weights, if available. Moni-
[email protected] steps "semi-automatically". standard has been enforced toring the inclination angles
The milling cutter could - ISO 13849. This standard of booms and lifting equip-
Link be taught to move around specifies how risks posed ment can be used as an
www.twk.de edges instead of straight by machines are to be eval- early indicator of impend-
through the work piece. uated. Risks that endanger ing instabilities. The ex-
Today's crowning glo- man and the environment tension angle of cables of
ry of this technology is ful- have to be avoided or ex- lifting facilities can be moni-
ly automatic CNC tech- tensively reduced by means tored. Accidents often hap-
nology, which is able to of sensible and above all pen when loads are pulled
operate more than three safe measures. at an angular angle, using
CANopen compliant
Safety
Robustness
www.ttcontrol.com/HY-TTC-30XSH
Erhalten Sie Wissen aus erster Hand und kommen Sie mit unseren
Entwicklern und Produktmanagern ins Gespräch – direkt vor Ort im
einzigartigen Ambiente aus atemberaubender Architektur und legen-
dären Fahrzeugen.
s:
Interessiert? – Dann melden Sie sich gleich an. i n g event
m ts
upco /even
Die Teilnahme ist für Sie kostenfrei.
Find or. c o m
.vect
Weitere Informationen und Anmeldung: www
www.vector.com/canopen14
www.canopen-solutions.com
Vector CANopen Engineering Days 2014
16.10.2014 in Böblingen (Motorworld)
23.10.2014 in München (Deutsches Museum Verkehrszentrum)
28.10.2014 in Düsseldorf (Classic Remise)
12:00 Mittagspause
www.canopen-solutions.com
the cable may be separated If a position value change
due to external mechanical has not been registered by
influences. TWK is in dia- the encoder after a maxi-
log with the Technical In- mum of 100 ms, the sys-
spection Association (TÜV) tem shuts off or the encoder
to implement precisely transmits an alarm mes-
such a complete measur- sage (EMC message) via SENSORS FOR MOBILE MACHINES
ing system in at least a SIL- CANopen. The temporal
2 version and also obtain behavior of the sensor sys-
a yellow SIL badge for the tem is dependent on the in-
measuring system. In previ- ertia of the application and
ous applications, it was only must be determined by the
possible to have the rotary manufacturer.
encoder with cable certified
along with the customer's The future belongs
application. In each case, to automation
the customers implemented
special measures to moni- Self-adjusting level control
tor the mechanical prob- systems are already avail-
lems specified above. able in isolated cases. The
TWK is able to sup- support facility aligns the
ply SIL-2-certified rotary upper structure at the push
encoders for mounting on of a button. Crane and re-
cables; when a specific ro- covery vehicles are also
tational speed is exceeded equipped with automatic
at the encoder shaft, these systems that are able to au-
send an alarm message to tomatically move machine
the control system. This en- sections, such as e.g. the
ables for example the de- crane jib on the vehicle's up-
tection of cable tearing. If per structure, to the trans-
the measuring cable tears, portation position and then
the cable drum rewinds the activate the safety locking
remaining cable so quickly system with the aid of po-
that the rotational speed at sition values from various
the shaft is far higher than sensors. The vehicle can
Absolute Rotary Encoders
during normal operation. then only be moved once
If the cable jams and the the fail-safe limit switch on and Inclinometers
machine sections move to- the locking bolt has been
wards each other, the cable pushed and the release sig-
Reliable Measurement under
sags. However, the user or nal has been transmitted
the machine control system to the CANopen control Harsh Conditions
is unaware of this. They are system.
merely provided with a sta- For crane systems and
tionary rotary encoder posi- lifting platforms, automatic High Protection Class: IP69K
tion value as if everything travel in three dimensions
was working correctly. The – including around obsta- Fieldbus and Analog Interfaces
only possibility for detect- cles – is still a pipe dream.
ing this error is to supply If corresponding sensor
the encoder with informa- systems and collision con- Safety and ATEX – Ex-Proof
tion concerning the drive trols become available how-
Versions Available
unit. Information on wheth- ever, new technologies are
er the drive is moving or sta- entirely conceivable. This
tionary would be sufficient. challenge will have to be Successfully Integrated in
Electric motors or hydraulic met by sensor system and
Concrete Pumps, Drilling Machines,
cylinders are usually used crane system manufactur-
to execute the machine's ers in the future. Working Platforms, Cranes, Wheel Loaders,
movements. If electric mo- Leader Masts and More
tors are used, the rotary
encoder can monitor the
status of the relay or the
contactor; in the case of
hydraulic components the
valve signal is used. www.posital.com
Therefore if the ac-
tuator is activated, the ro-
tary encoder on the cable
also receives this signal.
POSITAL
Germany, Singapore and USA
www.posital.com, [email protected]
CAN as trace source
Tools
Code and data trace allow a limited view of real-time behavior of embedded
systems. Complex systems with more than one core as well as powerful
peripherals only become controllable with new trace technologies.
Peripheral trace of
Author
O n-chip trace has been
established as the
state-of-the-art technology
However with up to a few
hundred single-bit signals
which want to be part of the
for debugging and compre- With the Aurix family, Infine- trace output, the trace hard-
hensive system analysis. It on has introduced powerful ware put on the die and not
is commonly used for test- automotive microcontrollers least the trace port come to
ing and performance mea- onto the market during the their limits very quickly. The
surements. Apart from a last year. The combination only way out is to limit the
few exceptions, most mi- of three TriCore 1.6 CPUs, a amount of signals coming
crocontroller architectures lockstep mechanism and an out of the peripherals ac-
Jens Braunes are available with on-chip access permission system cording to the actual debug
PLS Programmierbare trace and all major debug makes Aurix suitable for use-case.
Logik & Systeme GmbH tool vendors promote their powertrain applications de- For that purpose In-
Technologiepark support. In general the manding high performance fineon has extended the
DE-02991 Lauta and sophisticated security On-Chip Debug System
Tel.: +49-35722-384-0 the recording of instruction features. A range of periph- (OCDS) of the Aurix MCUs
Fax: +49-35722-384-69 executions – known as erals matches present car with a trigger switch (Fig.
[email protected] instruction trace – and drives including hybrid and 1). It allows transfering se-
the recording of data trans- electrical vehicles. lected bunches of signals
Link fers between cores and Debugging and system from peripherals to differ-
www.pls-mc.com memories and on the analysis of such microcon- ent sinks of the debug sys-
system networks – known trollers requires sophisticat- tem. One of those sinks is
Reference as data trace. To meet ed on-chip debug support the Multi-Core Debug Solu-
[1] The Nexus 5001 Forum - and trace. Henceforth for tion (MCDS) – the trace sys-
Standard for a Global Embedded ments for global system run-time analysis not only tem of the present Infineon
Processor Debug Interface observability, major silicon program and data trace microcontrollers. The vast
Version 2.0; vendors have extended from cores and busses are number of accrued data is
http://www.nexus5001.org their trace solutions and needed, but also a bunch of preselected by means of
added signal trace for pe- single-bit and multi-bit sig- multiplexer cascades. Typi-
ripherals like CAN con- nals from peripherals have cally sets of 16 or 32 bit sig-
trollers, which are impor- to be taken into account. nals form so called trigger
tant for debugging, testing, The challenge was to ex- sets. While the containing
and comprehensive system tend the trace solution to signals are fixed for each
analysis. meet these requirements. trigger set, selected trigger
ENOVATION CONTROLS CORPORATE HEADQUARTERS DOMESTIC SALES & SUPPORT INTERNATIONAL SALES & SUPPORT
5311 S 122ND EAST AVENUE ECONTROLS PRODUCTS UNITED KINGDOM
TULSA, OK 74146 PHONE: 210 495 9772 PHONE: +44 1722 410055
FAX: 210 495 9791 FAX: +44 1722 410088
ENOVATION CONTROLS – SAN ANTONIO OFFICE EMAIL: [email protected] EMAIL: [email protected]
5757 FARINON DRIVE WWW.ECONTROLS.COM WWW.FWMURPHY.EU
SAN ANTONIO, TX 78249 CHINA
MURPHY PRODUCTS
PHONE: 918 317 4100 PHONE: +86 21 6237 5885
ENOVATION CONTROLS – HOUSTON OFFICE FAX: +86 21 6237 5887
FAX: 918 317 4266
105 RANDON DYER RD EMAIL: [email protected] EMAIL: [email protected]
ROSENBERG, TX 77471 WWW.FWMURPHY.COM LATIN AMERICA & CARIBBEAN
MURPHY CONTROL SYSTEMS & SERVICES PHONE: 918 317 2500
ENOVATION CONTROLS LTD. – UNITED KINGDOM EMAIL: [email protected]
CHURCH ROAD LAVERSTOCK PHONE: 281 633 4500
SALISBURY SP1 1QZ UK FAX: 281 633 4588 SOUTH KOREA
EMAIL: [email protected] PHONE: +82 70 7951 4100
MURPHY ECONTROLS TECHNOLOGIES (HANGZHOU) CO, LTD. MURPHY INDUSTRIAL PANEL DIVISION
EMAIL: [email protected]
77 23RD STREET PHONE: 918 317 4100 INDIA
HANGZHOU ECONOMIC & TECHNOLOGICAL DEVELOPMENT AREA FAX: 918 317 4124 PHONE: +91 91581 37633
HANGZHOU, ZHEJIANG 310018 CHINA EMAIL: [email protected] EMAIL: [email protected]
#1411527 7/14
sets are then transferred by
Tools
Managing data
floods
We have seen that with the
new trace sources – the pe-
ripherals – a lot of addition-
al trace data becomes avail-
able. However this data
flood is hardly controllable.
The on-chip debug hard- Figure 2: Graphical configuration of a mixed program and signal trace
performance to capture all with comprehensive trigger can easily be measured. Will signal trace
the data and put them off- and filter mechanisms for The on-chip trace recog- become mainstream?
chip to the debug tool. On years. The flexible concept nizes a particular message
chip data are already fil- behind UECs allows a com- on the CAN network – it is That is an interesting ques-
tered to keep the required - even possible to filter for the tion. For industrial and auto-
bandwidth for the trace to gram and data trace with origin and message type – motive applications, signal
be reasonable. Of course the new signal trace. That and starts the trace record- trace is for sure an impor-
this is also a matter of anal- way a trace task can be cre- ing. The write access to tant extension to the con-
ysis efforts. The bigger the ated completely with one the port pin is visible to the -
information flood the more single tool without the need trace unit as well and can ity. However you only get
difficult it is for the tool and to separate between on- be used as an event to stop these things with some in-
in the end for the develop- chip trigger switches and the trace. Figure 2 shows vestments in hardware and
er to identify possible func- MCDS. the trace task configured tools. To keep the hard-
tional errors or performance Of course, the combi- with the graphical editor ware costs within limits Infi-
bugs. nation of program or data of the Universal Emulation neon pursues their concept
A comparatively easy trace and signal trace from Configurator (UEC). Apart of two different controller
method to configure the peripherals provides bene- from the time measurement types: an emulation device
multiplexers and filter mech- fits if a certain event or in- the configuration contains with all the additional hard-
anisms of the Aurix on-chip teraction between different the setup for a complete ware for high level debug-
trigger switch and MCDS is parts of the controller is of program and data trace ging and trace and a pro-
to use the Universal Emu- interest. As an example, as well. For trace analysis duction device to be built in
lation Configurator (UEC). with trace the time an inter- all captured trace data the products only with basic
UEC is part of the Universal rupt service requires from from different trace sourc- debug support.
Debug Engine (UDE) from an incoming CAN mes- es are merged and dis- Apart from Infineon
PLS and has been in use for sage to respond with a sig- played in a combined view with its MCDS, another im-
powerful on-chip trace units nal on an external port pin (Fig. 3). portant player in the area of
trace support for industrial system is an important step cores. Now the mission for
and automotive controllers network as well as oth- forward to fully testable em- tool vendors like PLS is to
is the Nexus forum [1]. They er peripherals are still not bedded applications. With provide software tools like
recognized the need for sig- attached to the trace sys- that, trace becomes more the Universal Emulation
nal trace too and extend- tem of current Nexus imple- and more an instrument for Configurator, which allow to
ed the revision of the Nexus mentations. system analysis of complex fully utilize trace features and
standard 2012 with a new For sure the coverage and complete systems-on- to unrestrictedly define tailor-
of peripherals by the trace a-chip and not only for the made measurement tasks.
CANopen in the frontline
System design
of openness
"Open knowledge is any content, information or data that people are free
to use, re-use and redistribute – without any legal, social or technological
restriction." [8]
Author
O pen data or open knowl-
edge is one of the most
recent IT megatrends [8].
frequently copied manually
and during the design pro-
cess, which led to a heavy
constrained and simple, but
is continuously updated.
Thus, standardized informa-
All around the world, data maintenance workload, the tion, storage format, and au-
collected by public funding use of outdated data, and se- tomatic updates can improve
has already been opened to rious inconsistencies, even the maintainability of control
free use and more data is between products from the applications, assembly lines,
made public all the time. The same company. The main and service tools.
main problem has been that reason for this is the fact that
charging for the use of in- data contents are related to Open documents
Dr. Heikki Saha formation collected or pro- service and maintenance
Scientific coordinator duced by public funding has and not directly related to CANopen has always been
CANopen Competence Center reduced the use of data and the main functions of sys- open by nature. All release
Finland related business potential. tems. There are also indirect status standard documents
University of Vaasa All such public data is effects, causing additional are freely available for all in-
Wolffintie 34 typically stored in a poor- delays and workloads with terested parties, including all
FI-65200 Vaasa ly structured and inaccessi- troubleshooting and spare draft standard documents,
Tel.: +358-29-449-8000 ble format, often as printable part changes. except those which are inter-
documents, understandable A lot of public data is national or European stan-
Link only for human. Opening used in CANopen-based dards and thus distributed
www.uva.fi data means publishing open distributed control systems. by standardization organiza-
data in a format that under- Typically small subsets of tions. Draft standard propos-
standable for machines, not data were manually inserted al documents are primarily
changing the status of the into tools and control appli- available for members only,
data. Quite often usable data cations, which are updated but published for all interest-
is presented in a format that only after serious problems. ed parties as excerpts, in-
makes data access imprac- Another problem is that such stead of full documents. Open
tical. Furthermore, individu- data is often hardcoded into standards make CANopen
al use of such data may not applications, so that each attractive and have in-
make sense or provide any update leads to re-testing creased the size of the whole
big benefits, but combin- and re-certification. Updates ecosystem, when com-
ing open data from different are in many cases essential, pared with competing inte-
sources may provide unex- because e.g. new device pro- gration frameworks which
pected benefits. files and SDO abort codes are not open and free. Open
Control systems are are introduced during devel- and free availability guaran-
not an exception. There is opment of various standards. tees that even small enter-
lots of data freely available New device vendors emerge prises can bring innovative
and commonly used for var- onto the market, too. Infor- products into the market with
ious purposes. Data was mation content often looks lower costs, unlike by using
e.g. J1939, Devicenet, and
Table 1: Generic layout of currently available datasets Profibus.
Common terms and ac-
Dataset Column 0 Column 1 Column 2 Column 3
ronyms with their official ex-
CANopen planations are available as
CiA
device and Profile a freely available document,
profile - -
application title the CANdictionary. It pro-
number
profiles vides a good starting point
CANopen Company for newcomers to learn the
Vendor-ID Department -
Vendor-IDs name basics and practical cross
SDO abort Abort Description Description Description references for experienced
codes code [1] [2] en-us fi sv-se people. The original one was
SI-unit Unit Unit Unit Specification written in English but Chi-
definitions name abbreviation code [3] number nese, Finnish and Russian
Figure 1: Example code for getting a dataset from given URL and storing it into a local file a table, because prefix factor
values are defined as 10[pre-
increasing the overall effi- significant increase in quality ed by EDS and DCF files, but fix value] and literal prefixes
ciency significantly. and performance. in case of many device pro- are the same, independent of
There are EDS file edi- In addition to tool inde- files, unit information may be the language.
tors freely available from dif- pendence, EDS and DCF combined from values of oth-
ferent vendors to help create files provide an integrated er objects [10]. Getting open
the correct EDS files. EDS mechanism for integration of Traditionally constant constant data
file checker is available for various design tools [6]. Such data is manually inserted
free to enable device suppli- a mechanism enables the separately in each project, Currently supported datas-
ers to create error free EDS flexible utilization of gener- which results in inconsistent ets and locations are listed
files for their devices. Thanks ic and target device specific information contents and an in Table 1. Vendor-IDs and
to those tools, inconsistent tools without increasing the extensive decrease in both supported profiles have been
EDS files have not been a required workload during the quality and efficiency. While provided by CAN in Automa-
noticeable problem in re- design process. adding the information seems tion (CiA) since 2008. SDO
cent years. An official con- to be simple, one should re- abort codes and SI-unit de-
formance test program also Open constant data member that all information scriptions have been collect-
verifies the completeness is continuously updated and ed and provided with Finnish
and correctness of EDS files. Certain constant data is updates should be available and Swedish translations by
Information transfer needed for various purposes for each purpose with a mini- the CANopen Competence
from design into assembly during system development. mum effort. Center Finland. Further infor-
and service is important. Any Device profiles, vendor-IDs CANopen data is avail- mation was published to en-
erroneous or outdated doc- and SDO abort codes are able in a comma-separated able application developers
ument may introduce signifi- needed in design, assembly values (CSV) format, where to keep the generic constant
cant failure costs in the as- and service tools as well as in a semicolon is used as a col- data up-to-date, without suf-
sembly line and service. In the control system GUI devic- umn separator. The use of fering from repetitive manu-
addition to delayed opera- es. SI-units are mostly need- columns is included in Ta- al work.
tion, documentation failures ed for signal scaling in the ble 1. Another format may Two generic sample
may introduce additional application development and not provide significant ben- code examples are provided
component consumption and for signal scaling and visual- efits, because the data cur- to give everybody an easy
additional time needed for ization in GUI devices. Anal- rently describes certain start for getting the data. Py-
disassembling assembled ysis tools get unit information enumerations only. The first thon was selected as an ex-
faulty components. There- from communication data- row always contains the col- ample language, because it
fore, the use of standard bases, where the unit infor- umn titles and further rows is a productive language and
DCF files as a transfer for- mation currently needs to be contain the actual data. Ad- available for free. For more
mat from design to assem- added manually. Unit infor- ditional translations may details, readers are advised
bly and service [4] provides a mation is not directly support- be provided for SDO abort to refer to the Python docu-
mentation. The first example
is the function saveUrl in Fig-
ure 1, which takes an URL of
a dataset as an argument,
loads the given URL into a
local file and returns the full
path of the file. By default, in
lines 4 to 7, the target path is
determined to have the orig-
inal filename from the given
URL and same folder with the
loading code module. Lines 9
to 12 load the given URL and
store the contents into a file
with a previously generated
path.
After getting the local
copies of the data, it should
be translated into an usable
Figure 2: Example code to read a CSV-format dataset into a dictionary format. The example function
www. sensor-technik.de
CAN FD: Measuring and
Tools
reprogramming
The complexity of the CAN FD technology is equivalent to the regular CAN
network but it offers a significantly increased bandwidth. It is therefore an
alternative to Flexray or Ethernet networks.
Author
Armin Happel
Erik Sparrer
Innovation partner
Ethernet with Diagnos- With the transport
Tools
tics over IP (DoIP) per ISO layer that is used, the the-
13400-2 is also well-suited oretically attainable trans-
for fast reprogramming of mission rate in flashing
ECUs. In testing 100 Mbit over CAN FD is 270 kB/s to
Ethernet and a typical mi- 370 kB/s at 4 Mbit/s in the
crocontroller with a pure CAN FD data phase. How-
flash write rate of 180 kB/s, ever, real measured values
results were largely a func- lie well below this (Figure
tion of the buffer size of the 4). Surprisingly, the com-
Transfer-Data service. A 16 pression and pipelining op-
KiB buffer enables through- timization strategies were
put of around 150 kB/s, counterproductive for CAN
which is already near the FD in the test environment
limit of the flash memory that was used. The reason
used in the test. is that, in the laboratory set-
up used, the programming
Figure 2: Measured and calculated CAN FD data Reprogramming via time for the internal flash
throughput in ECU measurement CAN FD memory became the lim-
iting factor in the flashing
fast network protocols. In pipelined programming. Al- Since semiconductor man- process. So this made op-
the three flash phases “de- though compression by an ufacturers do not offer any timizations to the download
lete”, “download/program” LZSS (Lempel-Ziv-Storer- microcontrollers that pro- phase ineffective. Howev-
and “verify”, the download Szymanski) algorithm re- vide CAN FD support yet, er, further tests with more
time is a key factor in con- duces the volume of data network specialists at Vec- powerful CPUs are need-
ventional CAN systems, to be transmitted, its effi- tor used a microcontroller ed to arrive at more gener-
that can be accelerated by ciency is highly dependent in which the CAN FD con- al conclusions about data
faster bus systems such as on the data structure, and troller was implemented in throughput and the effec-
Flexray, Ethernet and CAN data extraction in the ECU an FPGA for their CAN FD tiveness of optimizations. A
FD. generates additional CPU measurements. The soft- key finding of the measure-
Regardless of the load that need to be tak- ware stack on the board ments is that CAN FD de-
transmission protocol, it en into account. Pipelined consists of a standard Vec- livers a significantly higher
makes sense to use addi- programming, on the other tor UDS bootloader. The data throughput than CAN
tional optimization strate- hand, represents a type of ISO 15765-2 transport lay- (Figure 4), and the effort
gies for downloading, such parallelization: while a data er and CAN driver were ex- required for migration is
as data compression and segment is still being writ- tended for support of CAN negligible.
ten in the ECU, transmis- FD. To permit a quick test
Table 3: Calculated data sion of the next segment is setup process for download Summary and
throughputs of data already started. Therefore, testing, the CANoe simu- outlook
measurement with XCP on the potential performance lation and testing tool was
CAN FD (fA=500 kbit/s) gain from this method is used, because the tool al- Overall, it is still difficult to
the greatest when program- ready offers CAN FD sup- arrive at an objective com-
ming times are shorter than port. This software uses parison of the serial bus
data transmission times. an external DLL which pro- systems CAN FD, Flexray
Flexray offers a trans- vides the flash program- and Ethernet due to their
mission rate of 10 Mbit/s, ming procedure and trans- different microcontrollers
but it is not fully available port layer functions. In the and constraints, but certain
for (re-) programming. In future, the Vector vFlash tendencies can be clear-
Table 4: Comparison of the periodic communica- flash tool will become avail- ly discerned. In the case
measured data throughputs tion sequence of the time- able for CAN FD. of Flexray, high download
of data measurement with triggered protocol, all PDUs
XCP on CAN and CAN FD (Protocol Data Unit) are
predefined in fixed slots. If
many slots are reserved for
diagnostic service requests
such as for download, this
reduces bandwidth for the
useful data. Realistic con-
Table 5: Measured data figurations provide for
throughputs of a data 4 PDUs to 8 PDUs with
measurement with XCP on 42 bytes to 255 bytes each
CAN FD (fA=500 kbit/s). per cycle for diagnose ser-
vices. Vector engineers
have measured download
rates of 40 to 60 kB/s when
pipelined programming is Figure 3: Faster data transmission by multiple XCP
used. packets combined in one CAN FD frame
0. Other business
1. Semiconductor manufacturer Address
2. Device manufacturer
3. Software house
4. System integration
5. Service provider City, ZIP
6. End-user
7. Research
D. Company size
1. 1 - 9 employees Business (see B) Size (see D)
2. 10 - 49 employees
3. 50 - 99 employees
4. 100 - 499 employees
5. 500 - 999 employees Please send your subscription form to CAN in Auto-
6. 1 000 - 4 999 employees mation (CiA) GmbH, Kontumazgarten 3, DE-90429
7. 5 000 - 9 999 employees Nuremberg, Germany, or fax it to +49-911-928819-79
8. 10 000 - 99 999 employees or e-mail it to [email protected]. You may
9. more than 100 000 employees also subscribe online at www.can-cia.org.
CAN FD interface drivers for Windows 8.1, 7, Vista and LIN operation properties ...
Linux
PCAN-View: Software for monitoring CAN and CAN FD Both LIN channels (common ground) are optodecoupled
against USB and CAN FD
PCAN-Basic: API for developing applications with CAN and Can be used as a LIN master or slave
(1 ms master task resolution)