Professional Documents
Culture Documents
CM CANopen Support Manual
CM CANopen Support Manual
support
MANUAL TYPE
ENGLISH
HMS Technology Center Ravensburg GmbH
Helmut-Vetter-Straße 2
88213 Ravensburg
Germany
Support
For problems or support with this product or other HMS products please
request support at www.ixxat.com/support.
Copyright
Duplication (copying, printing, microfilm or other forms) and the electronic
distribution of this document is only allowed with explicit permission of HMS
Technology Center Ravensburg GmbH. HMS Technology Center Ravensburg
GmbH reserves the right to change technical data without prior announcement.
The general business conditions and the regulations of the license agreement
do apply. All rights are reserved.
Registered trademarks
All trademarks mentioned in this document and where applicable third party
registered are absolutely subject to the conditions of each valid label right and
the rights of particular registered proprietor. The absence of identification of a
trademark does not automatically mean that it is not protected by trademark
law.
Version: 1.0
Content
1 General Information
This document shall provide a help that customers can help themselves.
It lists the known problems and their causes and shows how to fix it.
2 Restrictions
2.1 29 bit CAN identifier
The CM CANopen tolerates 29 bit CAN identifier but it does not communicate with 29
bit CAN identifier.
3 LEDs
The RUN / ERR LEDs of the CM CANopen are one of the most important diagnostic
elements.
They provide a first advice for the possible reason of the problem.
Possible reasons:
Several SDO commands that are running at the same time use the same SLOT:
see description of SDO Read / Write in the manual of the CM CANopen
parallel processed SDO commands must use different SLOT!
a new SDO command is started before the requested SDO command has been
finished:
output BUSY of ReadSDO FB / WriteSDO FB must have switched to FALSE
before a new command can be started
the BUSY output must be checked!
Solution:
correct the use of SDO commands in TIA Portal
download the new software to the PLC
power off / on the PLC
Possible reasons:
the CM CANopen does not run with the correct CAN baudrate
check / change the selected Baudrate in the device configuration of the
CM CANopen in TIA Portal
download the device configuration to the PLC
power off / on the PLC
another device is running with a wrong CAN baudrate:
check if all devices are running with the same CAN baudrate
the mounting of the CAN cable is not correct
see chapter 4.1 Mounting of the manual of the CM CANopen
the CAN bus is not terminated as specified
see chapter 4.4 Line Termination of the manual of the CM CANopen
cable break / short cut
check the cable
noise
use a standard shielded CAN cable
the shield is grounded at one side
power off / on
Possible reasons:
the CM CANopen is alone in the CAN / CANopen network
check if the other CAN / CANopen devices are connected
noise
use a standard shielded CAN cable
the shield is grounded at one side
power on
the CM CANopen was alone after power on
and has entered warning level reached
the only connected CAN / CANopen device is connected to the CAN bus
when the CM CANopen has reached the warning level
the CM CANopen will not confirm the first message of the other device
this device will also enter warning level
note:
this problem can be only analysed with a tool that can log the CAN
bus traffic in listen only mode
note: CANopen Manager: RUN LED: blinking
this is the most probable reason if the RUN LED stays blinking
the RUN LED will switch to On (operational) when there is any
CAN communication
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
wwwwww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wwwwwwwwwwwwwwwwwwwwwwwwww
wwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
wwwwwwwwwwwwwww
slave is missing / disconnected
Get Node & Network Status provides this information
see 8.1.4 Get Node & Network Status
=> CANopen Device missing
its boot slave process has failed
Get Node & Network Status provides this information
see 8.1.4 Get Node & Network Status
=> Configuration error bit
nodeguard event or a heartbeat event of a slave
Get Node & Network Status provides this information
see 8.1.4 Get Node & Network Status
=> Node State changes
b) a CANopen device is not configured
as a slave in the CM CANopen Configuration Studio
=> Bit 0 of NMT Slave is not set
device is present
Get Node & Network Status provides this information
see 8.1.4 Get Node & Network Status
=> bit 7 is set
Condition:
The CM CANopen is not configured as SYNC Producer
Communication Cycle Period (ms) is not 0
see tab: Application Objects of the CANopen Configuration Studio
possible reasons:
the sync producer is disconnected
4.1 Hints
4.1.1 Import of an EDS of a slave
The error list must be checked when the EDS file has been imported!
Each reported error except the version error must be checked and corrected
a reliable configuration cannot be generated if these errors (except the
version error) are not corrected
contact the manufacturer of the device
NMT Startup:
Bit 1 should be set
this bit has not any influence on the TIA project
but it guarantees that the CM CANopen always receives the PDO data of
the slaves
Bit 2 and 3 shall not be set
Bit 4 and 6:
these bits are only relevant if a slave is configured as mandatory
the CM CANopen does not support mandatory slaves
Exeption:
The slave device is configured by its own tool
the EDS must be adjusted to this configuration
the objects
that must not be changed by the generated
configuration of the
CANopen Configuration Studio
must be set to read only
Bit 3 of NMT Slave: (if not hidden)
must not be set
=> the CM CANopen does not support mandatory slaves
this problem can by only analysed by a trace of the CAN bus traffic
Note: "Process Image Size (OUT) (byte)", "Process Image Size (IN) (byte)"
the labels are swapped:
has changed
from not operational to operational
general note:
one PDO can transfer maximum 8 data bytes
the data of a mapped object cannot be split into several PDOs
it must be checked
how many RPDOs / TPDOs are supported by the slave device
please select the single objects and their transmission type very carefully
when there are not sufficient PDOs
Note: change of the transmission type of a PDO
the transmission type of a PDO is changed in “PDO Mapping Parameters”
Selection of the sync producer and configuration of the sync cycle time:
selection of the sync producer:
open the combo box of “Sync Producer”
select the device provided by the CAnopen node id
configuration of the sync cycle time
see chapter: Operating mode: CANopen Manager
enter the required value in “Communication Cycle period (ms)
Hint:
the following considerations does not concern PDOs that default configuration
is used
=> Application Objects:
=> right click in the device
=> Select Default Mappings of Device
A selected object is mapped in several PDOs by default in the EDS of the slave
the Configuration Studio cannot know which configuration shall be used
action:
the mapping must be changed manually
action:
the mapping must be changed manually
Possible reasons:
there is not sufficient free space in the data fields of the slave`s PDOs to map
the object
one PDO can maximum transfer 8 data bytes
the data of an object cannot be split into several PDOs
too many objects have been selected
select the objects that are really relevant
there are objects that have not been selected
the Configuration Studio tries to be as close as possible to the default
configuration of the PDOs of a slave
the configuration of the transmission type caused this error
only objects with the same transmission type can be mapped in a PDO
Action:
check the mentioned reasons
the mapping must be changed manually
4.1.5.3 an object is mapped in an enabled PDOs although it has not been selected
Reason:
the Configuration Studio tries to be as close as possible to the default
configuration of the PDOs of a slave
Action:
the mapping must be changed manually
The manual change is done in the tab: “PDO Mapping Parameters” for the selected
slave.
Hint:
manual change of the mapping is not possible for PDOs
that are activated by “Select Default Mappings of Device”
that are not enabled
Procedure:
1. PDOs of the slave device shall not be locked
2. Select the objects that shall be mapped
3. Calculate Configuration
4. Change manually the mapping according your needs
right click on the PDO that mapping shall be changed
=> PDO must be enabled!
remove / add object(s)
move up / down a mapped object (if necessary)
when the manual mapping has been finished for the PDO:
=> Lock the PDO
5. repeat the manual mapping for all PDOs that mapping shall be changed
hint:
an enabled PDO that does not transfer any data after changing
must be disabled (Enabled: not set)
before it is locked
6. Calculate Configuration
Note:
“Processing of the Process Image Output by the CM CANopen”
does not consider
Transmission Type, Inhibit Time and Event Timer
of the TPDOs of the CM CANopen
transmission type, inhibit time and event timer do not affect the below
described procedure
Hint: runtime of the one cycle of the processing of the CANopen process
image output buffer
the runtime depends of the processing of the asynchronous TPDOs
asynchronous TPDOs are entered in
the standard transmission FIFO
that is also used for
=> the heartbeat message
=> NMT commands
=> emergency messages
=> SDO commands
therefore:
the processing is described for the asynchronous TPDOs
4.1.5.5.2 CANopen devices that require a specific order of the reception of RPDO
data
Check if the order crictical RPDO data can be mapped in one RPDO of the slave:
if yes:
=> arrange the data manually
=> see chapter: Manual change of the mapping of a PDO
The order critical data are mapped in several RPDOs of the slave:
check if the order of transmission can be controlled by the PLC
if yes:
=> arrange the data manually (if necessary)
=> see chapter: Manual change of the mapping of a PDO
=> see chapter: Processing of the Process Image Output
How to find out the number of the corresponding TPDO(s) of the CM CANopen:
note the CAN-IDs of the relevant RPDOs of the slave
=> click on the slave in "Project Explorer"
=> click on the relevant RPDO of the slave in the tab: PDO Parameters...
=> note its CAN-ID
click on the Manager in "Project Explorer"
=> search for the TPDOs that use the CAN-IDs of the relevant RPDOs
=> their TPDO numbers inform about the order of transmission
e.g.:
RPDO 1 (its data is transferred by TPDO i of the CM CANopen)
contains the data that shall be processed
after the reception of RPDO 2 (its data is transferred by TPDO n)
map the data of RPDO 1 in RPDO 2 and vice versa
lock RPDO 1 and RPDO 2
it must be locked otherwise Calculate Configuration will overwrite it
calculate and check once more if the order of the TPDOs match the
required order
Values that must be set only after power on or a reset of a slave can be configured in
the tab: Device -Parameters Node-ID
their configuration is added to the configuration of the slave
the slave will be automatically configured with these values by the
CM CANopen after power on / reset of the slave
these values must not be configured by the PLC application
Procedure:
=> click on the slave in "Project Explorer"
=> click on Device -Parameters Node-ID
=> click on the index
=> click on the subindex (if the index consists of several subindex)
=> enter the value in the field: Value of the selected object
greyed objects are read only and cannot be configured
The CM CANopen is not powered on or the USB cable has not been connected
not connected:
connected:
The SDO command is still active and will block the download
download the configuration to the CM CANopen
hint:
“CANopen Manager auto configuration” shall not be activated
It has been forgotten to implement the functionality that provides
the information of the auto generated configuration to the PLC
application
the changed hardware configuration must be downloaded to the PLC
5 TIA Portal
An older project is migrated in TIA Portal V14 or later:
the compilation of the project fails
reported error:
Data type 'Word' cannot be converted implicitly into data type 'HW_IO'
solution:
change the data type from Word to HW_IO
Note:
the demo uses a revised library
the library has been revised
to improve the performance
to be more flexible
to solve bugs of the older version
the interface of the FBs of the library has been changed
the changed interface is described by the demo (see below)
this library is not available on the homepage
it is delivered with the demo (see below)
Note:
the demo uses a revised library
the library has been revised
to improve the performance
to be more flexible
to solve bugs of the older version
the interface of the FBs of the library has been changed
the changed interface is described by the demo (see below)
this library is not available on the homepage
it is delivered with the demo (see below)
Consequences:
CM CANopen Configuration Studio:
Communication Cycle Period (ms):
minimal value > transmission time that generates 55% average bus load