CANopen en
CANopen en
CANopen en
training
Section 6 : Diagnostics
Industrial Automation - Customer
View - Training Slide 2
PhW - CANopen_en 02/ 2002
CANopen
Section 1: Basic knowledge
Part 1: History
1991: CAN Low Speed (125 kbps/Identifiers coded on 11 bits) becomes standard
ISO 11519-2.
1992: MERCEDES uses a 500 kbps CAN bus to link 5 electronic subassemblies
on an S class.
1998: New set of ISO standards for diagnostics and compliance testing.
Reference specifications
• CANopen (CiA):
Defines which CAL tools to use and how.
Ensures interoperability of products by profile descriptions.
Physical Layer
Link layer
Link layer
Security of transmission:
Among the best on industrial local area networks.
Numerous signalling and error detection devices ensure excellent security of
transmission.
6 PRESENTATION EMPTY
5 SESSION EMPTY
4 TRANSPORT EMPTY
3 NETWORK EMPTY
CAL provides developers with numerous tools without giving any instructions for use.
Structure of CAL
Priority
0881 – 1100 CMS objects priority 4
1101 – 1320 CMS objects priority 5
1321 – 1540 CMS objects priority 6
1541 – 1760 CMS objects priority 7
1761 – 2015 NMT Node guarding
2016 – 2031 NMT, LMT, DBT
2032 – 2047 Reserved Low
Industrial Automation - Customer
View - Training Slide 16
PhW - CANopen_en 02/ 2002
Section 2: Application layer - Part 1: CANopen basic concepts
This dictionary contains all the elements which describe the node and its
behaviour on the network.
CANopen profiles
These messages are used to manage the various protocol layers, supervise
the complete network and distribute identifiers.
They are based on the CAL LMT, NMT and DBT services and protocols.
The data can exceed 8 bytes, but in this case a data segmentation system is
activated.
These services are used to transmit small amounts of process data (<= 8
bytes) in real time.
Description of PDOs
Asynchronous:
- transmission is triggered by a "Remote
Transmission request"
- transmission is pre-triggered by the occurrence of a
"Specific event" object in the device profile
These objects are used to synchronize the acquisition of inputs or updating of outputs
(axis control for example).
EMCY Object:
EMCY objects are triggered when an internal fault occurs in the device (current,
voltage, temperature, communication, etc).
The NMT master monitors the status of slaves connected to the network by periodically sending a Node
guard object remote frame to each slave.
Each slave answers immediately on reception.
Slaves have the option of monitoring the NMT master: Life guarding.
Life Time = Guard Time x Life Time Factor
If a slave receives no polling for a period equal to the Life Time, it generates a "Life guarding" event, goes
into communication fault mode and sends an EMCY object.
This allocation occurs in the "Pre operational" state just after the initialization
phase.
10 9 8 7 6 5 4 3 2 1 0
Function code is used to code 2 PDOs in reception mode, 2 PDOs in transmission mode, 1
SDO, 1 EMCY object, 1 Node Guarding Identifier, 1 SYNC object, 1 Time Stamp object and
1 node guarding.
Node ID corresponds to the product address coded by DIP switches, for example.
The CAN V2.0 specification consists of 2 parts: CAN 2.0.A and CAN
2.0.B.
Arbitration
field Frame size without bit stuffing: 47 to 111 bits
1 11 1 6 0 to 64 15 111 7
1 11 11 18 1 6 0 to 64 15 111 7
Passive CAN 2.0.B: these products ignore CAN 2.0.B frames without
destroying them. They allow both exchange formats but only process
frames in CAN 2.0.A format.
Error Frame: these frames are transmitted when a station detects the
presence of errors on the bus.
Overload Frame: these frames are sent to ask for an additional time
lapse between successive frames (data or request).
Error Frame
Error detected
Overload Frame
EOF or ERROR DELIMITER
Protection mechanisms
ACK slot: this window enables the sender to know that his message has
been received correctly by at least one station (dominant bit).
Error counters
Depending on the value of these counters, the node will be in one of the
following 3 states:
Active errors
Passive errors
Bus OFF (sending driver disconnected from the bus).
Active
errors
128 occurrences of
Passive 11 consecutive
errors recessive bits (end
of frames without
errors)
TEC > 255
Bus OFF
Bus OFF status: The node is disconnected and monitors the bus.
6 PRESENTATION EMPTY
5 SESSION EMPTY
4 TRANSPORT EMPTY
3 NETWORK EMPTY
Electrical levels
Voltage (V)
5
CAN_H
3.5
2.5
CAN_L
1.5
Recommended connections
General use
9-pin SUB D connector DIN 41652, multi-pole connector (ribbon cable to 9-pin SUB-D),
RJ10 and RJ45
Industrial use
5-pin Mini Style, 5-pin Micro Style, Open Style
Special use
7-pin round connector, 8-pin round connector, 9-pin round connector, 12-pin round
connector, Hand Brid Harting.
RJ45 connector
Recommended suppliers
Cables
- U.I.LAPP GmbH
Schultze-Delitsch-Str. 25
D-70565 Stuttgart Germany
http://www.lappcable.com
Connectors
- ERNI Elektroapparate GmbH
Seestrasse 9 D-73099 Adelberg Germany
- ERNI Connectique S.a.r.l, France
27 bis, avenue des Sources/CP 638 F-69258 LYON Cedex 09,
http://connect.erni.com/
Products
Accessories
Junction box for connecting the CANopen master card to 1 or 2 CANopen buses:
TSXCPPACC1
Schneider does not provide cables or connectors for CANopen, but recommends
suppliers.
Recommended suppliers
Cables
- U.I.LAPP GmbH
Schultze-Delitsch-Str. 25
D-70565 Stuttgart Germany
http://www.lappcable.com
Connectors
- ERNI Elektroapparate GmbH
Seestrasse 9 D-73099 Adelberg Germany
- ERNI Connectique S.a.r.l, France
27 bis, avenue des Sources / CP 638 F-69258 LYON Cedex 09,
http://connect.erni.com/
Type III PCMCIA card inserted in the processor module communication port slot
(only 1 CANopen master per PLC).
2 indicator lights
Compatibility:
Functions supported:
Bus management
Indicator
lights
End of line
switch
Supplied with floppy disk containing the .eds description file for the device.
Compatible with all ATV58 and ATV58F control cards.
Industrial Automation - Customer
View - Training Slide 66
PhW - CANopen_en 02/ 2002
Section 5: Schneider offer overview - Part 2: Product characteristics
Main characteristics:
Communication speed (125, 250, 500 Kbps or 1 Mbps) and address
configured by switches
Conforms to DS402 V1.1 CANopen profile: "Device profile for drives and
motion control - Velocity Mode"
* PDOs are sent by the drive at intervals of 50 ms minimum and one second maximum.
Indicator lights
Main characteristics:
LEDs Meaning
ERR COM
Off Off No power supply to card or configuration transfer in progress
Flashing No configuration in the card
(Irregular)
Flashing Card configured and ready, bus not activated or no CANopen firmware
(Regular)
On Bus configured and active, no error
On Off Error detected, bus controller stopped
steady Flashing Card faulty, configuration error or synchronization error between the
card and the PLC (for more information, refer to the module status
diagnostic data)
On Bus configured and active, at least one bus subscriber cannot be
reached or is signalling an error
Green LED = OK
Red LED = COM
CANopen
CAN-ERR
RUN
The first 4 LEDs relate to CANopen
TX communication
Overflow
RW
1 1/0 0 0 The data monitoring system has sent a message, the RUN LED flashes until a
response has been received.
1 1/0 0 0 A synchronization error has occurred during the monitored message. The module
has not received a synchronization "telegram".
1 0 1 0 A message has appeared which is too long to be sent. The module must be reset
in order to return to normal.
1 0 0 1 A message has appeared which is too long to be received. The module must be
reset in order to return to normal.
Green LED Lights up if there is no communication error on CAN-Open and no errors during the I/O cycle
Red LED Lights up if there is an error on the module or the I/O
1 on steady: Module fault
2 continuous flashing: Error during the I/O cycle
3 intermittent flashing: Rapid flashing: start of error message
: 1st sequence of slow flashing: Error code
: 2nd sequence of slow flashing: type of error (argument)
Error table
1st sequence 2nd sequence Description of the error
error code Type (argument)
1 pulse 0 pulse - EEPROM memory error
1 pulse - RAM memory error
4 pulses 0 pulse - I/O error
2 bits:
%Iy.MOD.ERR = module fault
%Iy.1.ERR = channel fault
24 words:
Word %Iwy.1.0 is a general status word which, depending on the type of fault, is used
to perform more detailed diagnostics.
Word %Iwy.1.0 is a general status word which, depending on the type of fault, is
used to perform more detailed diagnostics.