Professional Documents
Culture Documents
CANDPSX
User Manual
CONTENTS
1 INTRODUCTION..........................................................................................................................6
1.1 PRODUCT OVERVIEW.........................................................................................................................6
1.2 Profibus..................................................................................................................................................6
1.3 CAN........................................................................................................................................................6
1.4 RS232....................................................................................................................................................7
2 QUICK GUIDE TO INSTALLATION............................................................................................8
2.1 INTRODUCTION....................................................................................................................................8
2.2 INSTALLATION......................................................................................................................................8
3 SYSTEM SETTINGS....................................................................................................................9
3.1 introductory remarks...............................................................................................................................9
3.2 OPERATING MODE..............................................................................................................................9
3.2.1 Operating mode selection................................................................................................................9
3.3 CAN COMMUNICATION........................................................................................................................9
3.4 Profibus DP COMMUNICATION..........................................................................................................10
3.4.1 Setting the station address............................................................................................................10
3.4.2 Setting packet consistency............................................................................................................10
3.4.3 Memory swap function for profibus DP dual port memory.............................................................10
3.4.4 Profibus-DP Watch-dog indication disable......................................................................................11
3.4.5 Baud rate autodetection..................................................................................................................11
3.4.6 Status of the Profibus-DP dual port...............................................................................................11
3.4.7 Profibus-DP driver errors...............................................................................................................12
4 OPERATING MODES................................................................................................................13
4.1 Profibus DP slave / CAN......................................................................................................................13
4.1.1 CAN messages..............................................................................................................................13
4.2 Profibus DP / CANopen master............................................................................................................13
4.2.1 CANopen master state diagram.....................................................................................................13
4.2.2 Auto Mode.....................................................................................................................................15
4.2.3 Configuring the network.................................................................................................................16
4.2.4 SDO Service..................................................................................................................................16
4.2.5 The Node guarding service............................................................................................................19
4.2.6 Handling node alarms....................................................................................................................20
4.2.7 Programming PDOs.......................................................................................................................20
4.3 Profibus DP / CANopen slave..............................................................................................................21
4.3.1 CANopen object dictionary for communication objects..................................................................21
4.3.2 Programming PDOs.......................................................................................................................22
5 DATA EXCHANGE BETWEEN Profibus-DP AND CAN...........................................................23
5.1 INTRODUCTION..................................................................................................................................23
5.2 ACTIVATING A CAN MESSAGE.........................................................................................................23
5.2.1 Setting the type of message..........................................................................................................23
5.2.2 Setting the message ID.................................................................................................................24
5.2.3 Mapping data of the Profibus dual port to CAN messages............................................................24
5.2.4 CAN massage triggers...................................................................................................................25
5.2.5 Checking the size of a CAN message...........................................................................................26
5.2.6 Example: configuration of an inbound CAN message....................................................................26
5.2.7 Example: configuration of an outbound CAN message.................................................................27
6 DATA EXCHANGE BETWEEN Profibus-DP AND THE SYSTEM............................................28
6.1 INTRODUCTION..................................................................................................................................28
6.2 MAPPING SYSTEM PARAMETERS TO Profibus-DP.........................................................................28
6.3 MAPPING SYSTEM PARAMETERS FROM Profibus-DP....................................................................29
6.4 LIST OF THE SYSTEM PARAMETERS THAT CAN BE MAPPED TO Profibus-DP...........................29
7 SAVING AND VALIDATING A CONFIGURATION....................................................................30
CANDPSX user manual rev 2 Page 4 of 41
____________________ _
7.1 INTRODUCTION..................................................................................................................................30
7.2 SAVING THE SETTINGS.....................................................................................................................30
7.3 CHECKING THE RESULT OF A CONFIGURATION...........................................................................31
8 DATA REPRESENTATION in Profibus DP..............................................................................32
8.1 INTRODUCTION..................................................................................................................................32
8.2 THE Configuration telegram.................................................................................................................32
8.2.1 Structure of the configuration telegram..........................................................................................32
8.2.2 Checking the octets of configuration telegram..............................................................................33
9 SYSTEM ALARMS....................................................................................................................34
9.1 INTRODUCTION..................................................................................................................................34
9.2 TESTING SYSTEM ALARMS..............................................................................................................34
9.3 PROBLEM SOLVING...........................................................................................................................34
10 PC Tools..................................................................................................................................35
10.1 GENERAL DESCRIPTION.................................................................................................................35
10.2 THE configuraTion TOOL...................................................................................................................35
10.2.1 Overview......................................................................................................................................35
10.2.2 Program layout............................................................................................................................36
10.2.3 Main functions..............................................................................................................................36
10.2.4 Communication settings.............................................................................................................36
10.3 Firmware upgrade..............................................................................................................................37
11 hardware data.........................................................................................................................38
11.1 general description.............................................................................................................................38
11.2 BOARD Layout...................................................................................................................................38
11.3 VOLTAGE SUPPLY...........................................................................................................................38
11.4 ConneCTORS....................................................................................................................................39
11.4.1 Supply connector M3...................................................................................................................39
11.4.2 Profibus connector DP J3............................................................................................................39
11.4.3 CAN connector M1......................................................................................................................39
11.4.4 RS232 connector J1....................................................................................................................39
11.5 JUMPERs...........................................................................................................................................40
11.6 LEDs..................................................................................................................................................40
11.7 GUIDE TO HARDWARE INSTALLATION..........................................................................................40
11.8 MECHANICAL DATA.........................................................................................................................40
12 INTERNAL DATABASE..........................................................................................................41
12.1 GENERAL DESCRIPTION..................................................................................................................41
13 VERSION HISTORY................................................................................................................41
CANDPSX user manual rev 2 Page 5 of 41
____________________ _
Reference
/ 1: CiA DS301 V4.01
Figures
Fig. .1: State diagram of the CANopen master...........................................................................14
Fig. .3: How to code the information about a parameter being mapped..................................28
Tables
Tab. .1: CANopen Object dictionary...........................................................................................21
Tab. .2: Table of the system parameters that can be mapped to PDP.....................................29
1 INTRODUCTION
The CANDPSX module is a gateway serving as a coupler between a CAN bus system and a
Profibus-DP network. It supports three operating modes for data exchange between the two
networks:
1. Profibus-DP slave / CAN (see § 4.1).
2. Profibus-DP slave / CANopen Master (see § 4.2).
3. Profibus-DP slave / CANopen Slave (see § 4.3).
CAN message programming and mapping are the principles underlaying the function of the
module. For each byte making up a CAN message, they allow to define the offset of the
corresponding byte in the Profibus dual port (see § 5).
The CANDPSX module is endowed with a standard 9-pole connector for the Profibus network and
a standard 5-pole open-style connector for the CAN bus network (see § 11.4). There is also a
RS232 port supporting the Modbus protocol for module configuration (from PC running LogicView,
from PC running a Modbus configurator, from PLC, etc.)
CANDPSX is also endowed with 9 LEDs for immediate diagnostics.
All the functions of the module can be configured and the configuration can be saved to non-
volatile memory. It is also possible to save the settings to file. The board is supplied together with a
setup program containing a configuration tool and a firmware upgrade tool.
The configuration software, named LogicView, has an HTML interface supporting the
implementation of configuration pages to ease the interaction with operators.
The module is designed for installation on standard omega support.
1.2 PROFIBUS
A processor implementing the full PROFIBUS-DP slave protocol manages the interface with the
Profibus system. The module can be configured in a Profibus network by means of the GSD file,
which contains all the information on characteristics of communication and on data configuration. A
word (16 bits) is the minimum unit of data that can be exchanged (see § 8).
Profibus communication
Data configuration according to file CanDps.gsd, up to 104 words IO
Baud rate autodetected, max 12Mbit/s
Sync mode supported
Freeze mode supported
Station address programmable
Ident. Nr. programmable
Consistency programmable
1.3 CAN
CAN is a fieldbus initially developed by Robert Bosh for the automotive sector and now extended
to industrial applications. Thanks to its reliability, robustness, expandibility and flexibility, it has
CANDPSX user manual rev 2 Page 7 of 41
____________________ _
become a standard, specified in ISO 11898 (Controller Area Network CAN for high-speed
communication). The maximum baud rate of CAN bus is 1Mbit/s.
The CAN interface is managed by a microprocessor integrating a CAN controller. The Layer-1/2
(Physical layer e Data Link layer) protocol implemented in all CAN modules provides, among other
things, the requirements for data encoding. Data transportation or data requests are executed by
means of a Data Frame containing up to 8 bytes of user data. An identifier, which also determined
the priority level, characterizes each COB (Communication OBject).
CAN communication
Baud rate programmable
1.4 RS232
RS232 communication
Start bit 1
Data bits 8
Stop bits 1
Parity No
Baud rate 38400 bits/s
Protocol Modbus
CANDPSX user manual rev 2 Page 8 of 41
____________________ _
2.1 INTRODUCTION
This quick guide refers to the LogicView configuration tool (see § 10.2).
What you need to install the CANDPSX module is:
• a PC
• the setup CD
• a crossover RS232 serial cable (Rx and Tx must be crossed over)
2.2 INSTALLATION
Here below you find the steps for installing the CANDPSX module:
3 SYSTEM SETTINGS
All the functions of CANDPSX can be configured, therefore this module implements an internal
database with a set of parameters for setting the operating characteristics.
Any changes to configuration parameters are actually applied only when the module is switched on
again or reset after the settings have been saved to non-volatile memory (see § 7).
CANDPSX supports three operating modes for real-time data exchange between a Profibus-DP
and a CAN bus network.
Property Value
Parameter 2011h
Logic View menu All parameters/System
Data type 8 bit unsigned int
Measurement unit --
0 = Profibus-DP slave / CAN
Value 1 = Profibus-DP slave / CANopen Master
2 = Profibus-DP slave / CANopen Slave
Default value 0
Access Read/Write
To specify the baud rate of the CAN line, set the parameter 2040h:
Property Value
Parameter 2040h
Logic View menu All parameters/System/CAN
Data type 8 bit unsigned int
Measurement unit --
0 = 1000 Kbits/s;
2 = 500 Kbits/s;
3 = 250 Kbits/s;
Value
4 = 125 Kbits/s;
5 = 100 Kbits/s;
8 = 50 Kbits/s;
Default value 4
Access Read/Write
CANDPSX user manual rev 2 Page 10 of 41
____________________ _
3.4 PROFIBUS DP COMMUNICATION
It is the Profibus master which establishes directly the communication settings of the Profibus-DP
network, thus the only specific settings needed by the module are the station address and packet
consistency.
To specify the address of the Profibus-DP station, set the parameter 2020h:
Property Value
Parameter 2020h
Logic View menu All parameters/System/Profibus-DP
Data type 8 bit unsigned int
Value 1 to 125
Default value 1
Access Read/Write
Property Value
Parameter 2022h
Logic View menu All parameters/System/Profibus-DP
Data type 8 bit unsigned int
0 = consistency across word
Value
1 = consistency across the entire packet
Default value 0
Access Read/Write
Property Value
Parameter 2023h
Logic View menu All parameters/System/Profibus-DP
Data type 8 bit unsigned int
0 = memory swap disable
Value
1 = memory swap enable
Default value 0
Access Read/Write
CANDPSX user manual rev 2 Page 11 of 41
____________________ _
3.4.4 Profibus-DP Watch-dog indication disable
To disable the Profibus-DP watch-dog indication, in CANopen Master and CANopen Slave
modality, set the parameter 2024h:
Property Value
Parameter 2024h
Logic View menu All parameters/System/Profibus-DP
Data type 8 bit unsigned int
0 = enable wath-dog Profibus-DP indication
Value
1 = disable wath-dog Profibus-DP indication
Default value 0
Access Read/Write
The baud rate is set by the Profibus-DP Master and can be monitored by reading the parameter
2030h:
Property Value
Parameter 2030h
Logic View menu All parameters/System/Profibus-DP
Data type 32 bit int
Measurement unit bit/s
3FFFFFFFh = autodetection running
Value 12000000, 6000000, 3000000, 1500000, 500000,
187500, 93750, 19200, 9600
Access Read-only
To monitor the status of the Profibus-DP dual port, read the parameter 2031h:
Property Value
Parameter 2031h
Menu selection Logic View All parameters/System/Profibus-DP
Data type 32 bit int
Measurement unit --
0 = awaiting parameters assignment
1 = awaiting configuration
Value
2 = data exchange
3 = error
Access Read-only
The data-exchange status is also reported by the DEA-PB yellow led (see § 11.6).
CANDPSX user manual rev 2 Page 12 of 41
____________________ _
3.4.7 Profibus-DP driver errors
An active error of the Profibus-DP driver is signalled by the ERR-PB red led. To know the error
code, read the parameter 2032h:
Property Value
Parameter 2032h
Logic View menu All parameters/System/Profibus-DP
Data type 16 bit int
Measurement unit --
0 = no errors
1 = VPC3 failure
2 = VPC3 initialization error
4 = VPC3 system error
5 = VPC3 system error
6 = VPC3 system error
7 = VPC3 system error
9 = VPC3 system error
Value
10 = VPC3 system error
11 = VPC3 system error
15 = parameter setup request error
16 = invalid length of configuration telegram
17 = bad configuration
19 = watch dog
20 = size of data to be exchanged too large
21 = invalid station address
Access Read-only
CANDPSX user manual rev 2 Page 13 of 41
____________________ _
4 OPERATING MODES
In this operating mode, CANDPSX serves as a gateway which, on the CAN side, can automatically
perform some CANopen master functions of node supervision.
The module can control up to 24 nodes on the basis of the programmed presences. Up to 24 CAN
messages are available for real-time data exchange (asynchronous PDOs of type 254), which can
be programmed as inbound or outbound messages.
The CANopen master functions supported are:
• NMT protocol
• Node Guarding protocol
• SDO protocol
• Emergency object management
• 24 asynchronous PDOs that can be programmed in transmission or
reception
• Automatic detection of CANopen nodes for validation of a programmed
configuration
• Automatic configuration of node guarding control
• Automatic supervision of CANopen nodes with NMT commands
The system checks the slave nodes by applying the algorithm represented by the state diagram
below. This process may be executed either automatically (auto mode enabled, see § 4.2.2) or
through commands from the Profibus dual port (auto mode disabled, see § 4.2.2).
CANDPSX user manual rev 2 Page 14 of 41
____________________ _
Property Value
Parameter 2092h
Logic View menu All parameters/System/CANopen Master
Data type 8 bit unsigned int
Measurement unit --
0 = initializing
1 = awaiting Profibus-DP
2 = scan of the configured nodes
Value 3 = node guarding configuration
4 = running
5 = fault reaction
6 = awaiting recovery from fault
Access Read-only
Property Value
Parameter 2097h
Logic View menu All parameters/System/CANopen Master
Data type 8 bit unsigned int
Measurement unit --
0 = control from Profibus-DP
Value
1 = automatic control
Default value 1
Access Read/Write
If the auto mode function is disabled, it is the Profibus Master which checks the change of NMT
status of the nodes (see Fig. .1). To make this possible you will have to map the command word of
the CANopen Master (parameter 2090h) and the status word (parameter 2091h) in the Profibus
dual port (see § 6).
Control word codes (parameter 2090h):
Property Value
Parameter 2090h
Logic View menu All parameters/System/CANopen Master
Data type 16 bit unsigned int
Measurement unit --
bit 0 = operational request to nodes, if set to 1
Value bit 1 = request of alarm reset (see § 4.2.6)
bit 2 = request of restart system and alarms recovery.
Default value 0
Access Read-only
CANDPSX user manual rev 2 Page 16 of 41
____________________ _
Property Value
Parameter 2091h
Logic View menu All parameters/System/CANopen Master
Data type 16 bit unsigned int
Measurement unit --
bit 0 = running status of the driver
Value bit 1 = data exchange status of the driver
bit 2 = fault status of the driver (see § 9.2)
Default value 0
Access Read-only
In this operating mode, the module can control up to 24 CANopen slave nodes. Each node under
supervision must be assigned the address of the corresponding, complying with what stated in the
CiA DS301 standard.
To configure the network under control, set the parameters 2070h - 2087h:
Property Value
Parameters 2070h - 2087h
Logic View menu All parameters/System/CANopen Master/Nodes configuration
Data type 8 bit unsigned int
Measurement unit --
0 = not present
Value
1 to 127 = node ID
Default value 0
Access Read/Write
The CANopen master scans the programmed nodes and publishes the presence status in the
parameter 2093h. Each bit of the parameter set to 1 means that the associated node has been
detected. Namely, bit 0 shows the presence status of the node programmed with the parameter
2070h, bit 1 shows the presence status of the node programmed with the parameter 2071h, etc. It
is possible to map the configuration control parameter in the Profibus dual port (see § 6).
The CANDPSX module enables a Profibus master to exchange parameters with the slave nodes
connected via the SDO protocol. To activate this function, you will have to enable the SDO protocol
and to map the SDO control structures (parameters 20A3h and 20A4h) and the data transportation
buffers (parameters 20A5h and 20A6h) in the Profibus dual port (see § 6).
CANDPSX user manual rev 2 Page 17 of 41
____________________ _
To enable the SDO service, set the parameter 20A0h:
Property Value
Parameter 20A0h
Logic View menu All parameters/System/CANopen Master/SDO services
Data type 8 bit unsigned int
Measurement unit --
0 = service disabled
Value
1 = service enabled
Default value 0
Access Read/Write
To specify the maximum time SDO requests must be fulfilled within, set the parameter 20A1h:
Property Value
Parameter 20A1h
Logic View menu All parameters/System/CANopen Master/SDO services
Data type 16 bit unsigned int
Measurement unit ms
Default value 500
Access Read/Write
Format and elements of the request control structure mapped in the Profibus dual port (parameter
20A3h):
Note: if the memory swap function is active, the elements of the control structure will be swapped.
The field “len” will be in “byte 0” and “cmd” will be in “byte 5”.
CANDPSX user manual rev 2 Page 18 of 41
____________________ _
Format and elements of the result control structure mapped in the Profibus dual port (parameter
20A4h):
Note: if the memory swap function is active, the elements of the control structure will be swapped.
The field “len” will be in “byte 1” and “ack” will be in “byte 3”. .Profibus-DP master’s algorithm to
exchange objects with slave nodes:
The CANDPSX module can perform node guarding, complying with what stated in the CiA DS301
standard.
To activate this service, set the parameter 20B0h:
Property Value
Parameter 20B0h
Logic View manu All parameters/System/CANopen Master/Node guarding services
Data type 8 bit unsigned int
Measurement unit --
0 = control disabled
Value
1 = control enabled
Default value 0
Access Read/Write
If the service is enabled, after scanning the network the CANopen master sends the nodes the
Guard time and Life time factor values as programmed in the parameters 20B2h and 20B1h
respectively, in order to activate Node guarding of the nodes themselves. Once the nodes have
entered the running state, the CANopen master begins to poll them with the Node guarding
protocol. Guard time is the polling period of each node. In order to disable Node guarding, just set
the Guard time or the Life time factor to zero. The master executes anyway Node guarding with a
polling period of 100 ms.
Like what mentioned in § 4.2.3 concerning validation of a configuration, the CANopen master
publishes the Node guarding status of nodes in the parameter 20B3h, which can also be mapped
in the Profibus dual port (see § 6).
Property Value
Parameter 20B2h
Logic View menu All parameters/System/CANopen Master/Node guarding services
Data type 16 bit unsigned int
Measurement unit ms
Default value 0
Access Read/Write
Property Value
Parameter 20B1h
Logic View menu All parameters/System/CANopen Master/Node guarding services
Data type 8 bit unsigned int
Measurement unit --
Default value 0
Access Read/Write
CANDPSX user manual rev 2 Page 20 of 41
____________________ _
The CANopen master knows the NMT status of the connected slave nodes by means of the Node
guarding protocol and publishes it in the parameters 20C0h - 20D7h, that can also be mapped in
the Profibus dual port:
Property Valye
Parameters 20C0h - 20D7h
Logic View menu All parameters/System/CANopen Master/Node status
Data type 8 bit unsigned int
Measurement unit --
0 = not present
1 = node guarding
2 = toggle error in the node guarding protocol
Value
4 = stopped
5 = operating
127 = pre-operating
Access Read-only
The NMT status of the connected nodes is also published in the parameters 20B8h – 20BDh and
can also be mapped in the Profibus dual port. These are 32 bit parameters and each byte
represents the status of one node:
Property Valye
Parameters 20B8h - 20BDh
Logic View menu All parameters/System/CANopen Master/Node status
Data type 32 bit unsigned int
Measurement unit --
Each byte represents the NMT status of a node. The
Value value of each byte is the same of parameters 20C0h -
20D7h
Access Read-only
The CANDPSX module handles the emergency messages sent by nodes and saves each node’s
error code – defined according to the CANopen standard – to the parameters 20E0h - 20F7h, that
can also be mapped in the Profibus dual port (see § 6).
Like what mentioned in § 4.2.3 concerning validation of a configuration, the CANopen master
publishes the past alarms mask and the active alarms in the parameters 2094h and 2095h
respectively. It is also possible to map these parameters in the Profibus dual port.
The past alarms mask can be reset by setting up a bit mask (parameter 2096h) and by sending a
reset alarms command (see § 4.2.2). The reset alarms mask can also be mapped in the Profibus
dual port.
Up to 24 CAN messages, which can be programmed in transmission or reception, are available for
real-time data exchange as defined in the standard (asynchronous PDOs of type 254). Data
transmission is evaluated at each data exchange request from Profibus. The data of any CAN
message received are immediately moved to the Profibus dual port and are available for any data
exchange request.
CANDPSX user manual rev 2 Page 21 of 41
____________________ _
Type-5 and type-6 CAN messages are active. To know how to program PDOs, see § 5.
In this operating mode, the CANDPSX module serves as a gateway, seen from the CAN side as a
CANopen slave that can be controlled by a standard CANopen Master.
The communication protocol complies with the CANopen standard as specified in the CiA Draft
Standard 301 (version 4.01 of 06/01/2000).
The available CANopen slave services are:
• NMT protocol
• Node Guarding protocol
• SDO protocol
• Emergency protocol
• 24 asynchronous PDOs of type 254 to be programmed in trasmission or
reception
• Characteristics of communication according to the file CanDpsx.eds
The NMT status of the CANopen slave driver is published in the parameter 20B5h, which can be
mapped in the Profibus dual port (see § 6):
Property Value
Parameter 20B5h
Logic View menu All parameters/System/CANopen Slave
Data type 8 bit unsigned int
Measurement unit --
0 = boot up
1 = reset application
2 = reset communication
Value 3 = initialising
4 = stopped
5 = operating
127 = pre-operating
Access Read-only
Index Description
1000h Device type
1001h Error register
1002h Manufacturer status register
1008h Manufacturer device name
1009h Manufacturer hardware version
100Ah Manufacturer software version
100Ch Guard time
100Dh Life time factor
1018h Identity object
Tab. .1: CANopen Object dictionary
Up to 24 CAN messages, which can be programmed in transmission or reception, are available for
real-time data exchange as defined in the standard (asynchronous PDOs of type 254). Data
transmission is evaluated at each data exchange request from Profibus. The data of any CAN
message received are immediately moved to the Profibus dual port and are available for any data
exchange request.
Type-5 and type-6 CAN messages are active. To know how to program PDOs, see § 5.
CANDPSX user manual rev 2 Page 23 of 41
____________________ _
5.1 INTRODUCTION
Data exchange between Profibus and CAN is carried out by means of standard CAN messages
with 11-bit identifier. The maximum length of messages is 8 bytes. For each byte making up the
message it is possible to specify the corresponding source offset (if the message is outbound) or
destination offset (if the message is inbound) in the Profibus dual port.
The procedure to set up CAN messages and to map the data is the same for all the operating
modes. Up to 32 CAN messages are available which can be programmed for transmission or
reception, but each operating mode defines the maximum number of messages it can handle and
the methods to drive data transmission.
Data exchange between the Profibus dual port and CAN messages is performed synchronously
every time a data exchange request arrives from the Profibus-DP Master.
To select the type of CAN message, set the parameters 2140h - 215Fh:
Property Value
Parameters 2140h to 215Fh
Logic View menu All parameters/Messages/Message n
Data type 8 bit unsigned int
Measurement unit --
0 = inactive message
1 = generic inbound message
Value 2 = generic outbound message
5 = asynchronous inbound PDO of type 254
6 = asynchronous outbound PDO of type 254
Default value 0
Access Read/Write
CANDPSX user manual rev 2 Page 24 of 41
____________________ _
Property Value
Parameters 2100h to 211Fh
Logic View menu All parameters/Messages/Message n
Data type 32 bit unsigned int
Measurement unit --
Value 000h to 7FFh
Default value 000h
Access Read/Write
The maximum length of user data in a CAN message is 8 bytes. Each byte can be assigned
independently the offset of the associated byte in the Profibus dual port. Therefore, let us assume
that up to 8 objects can be mapped to a CAN message. The corresponding offset in the Profibus
dual port and and the size must be specified for each object. The total size of the mapped objects
must be included between 0 and 8 bytes. If this condition is not satisfied, the module will display a
configuration error the next time the settings are saved and the board is switched on or reset. The
first null-size object determines the end of the map.
In order to assign the corresponding offset in the Profibus dual port to CAN message objects, set
the parameters 2300h - 23FFh. The parameters are aggregated into groups of 8 elements (e.g.
parameters 2300h - 2307h mapped to message 1, 2308h - 230Fh mapped to message 2, etc.):
Property Value
Parameters 2300h to 23FFh
Logic View manu All parameters/Messages/Message n/Mapping object n
Data type 8 bit unsigned int
Measurement unit --
Value 0 to 208
Default value 0
Access Read/Write
To configure the size of the mapped objects, set the parameters 2500h - 25FFh. The parameters
are aggregated into groups of 8 elements (e.g. parameters 2500h - 2507h mapped to message 1,
2508h - 250Fh mapped to message 2, etc.):
Property Value
Parameters 2500h to 25FFh
Logic View menu All parameters/Messages/Message n/Mapping object n
Data type 8 bit unsigned int
Measurement unit byte
Value 0 to 8
Default value 0
Access Read/Write
Property Value
Parameters 2180h to 219Fh
Logic View menu All parameters/Messages/Message n
Data type 8 bit unsigned int
Measurement unit --
Value da 0 a 208
Default value 0
Access Read/Write
CANDPSX user manual rev 2 Page 26 of 41
____________________ _
To specify the size of the trigger objects of a CAN message, set the parameters 21C0h - 21DFh:
Property Value
Parameters 21C0h to 21DFh
Logic View menu All parameters/Messages/Message n
Data type 8 bit unsigned int
Measurement unit byte
Value 1 to 8
Default value 1
Access Read/Write
To check the actual size of a CAN message, read the parameters 2200h - 221Fh (but only after
having saved the settings and having reset the module):
Property Value
Parameters 2200h to 221Fh
Logic View menu All parameters/Messages/Message n
Data type 8 bit unsigned int
Measurement unit byte
Value 0 to 8
Access Read-only
6.1 INTRODUCTION
CANDPSX makes it possible to map system data in the Profibus dual port in order to enable the
Profibus Master to interact with the system. The objects are published in the internal database and
thus they are seen as parameters. It is possible to map up to 16 parameters from the system to
Profibus-DP and up to 16 parameters from Profibus-DP to the system. The parameters are
mapped consecutively in the Profibus dual port, starting from offset 0. The first null parameter
determines the end of the map.
The system also includes a set of parameters for building the system data map from and to the
Profibus dual port. The procedure to set up these parameters complies with the CiA DS301
document about PDO dynamic mapping, which states that the information about any parameter
being mapped must be encoded in a 32-bit double word.
Fig. .3: How to code the information about a parameter being mapped
To map parameters to the Profibus-PD system in the dual port, set the parameters 2060h - 2067h:
Property Value
Parameters 2060h to 206Fh
Logic View menu All parameters/PDP objects mapping/PDP input objects mapping
Data type 32 bit unsigned int
Measurement unit --
Value 0 = end of map, see § 6.4.
Default value 0
Access Read/Write
CANDPSX user manual rev 2 Page 29 of 41
____________________ _
To map the parameters from the Profibus-DP system in the dual port, set the parameters 2050h -
2057h:
Property Value
Parameters 2050h to 205Fh
Logic View menu All parameters/PDP objects mapping/PDP output objects mapping
Data type 32 bit unsigned int
Measurement unit --
0 = end of map
Value
other values = see § 6.4.
Default value 0
Access Read/Write
The next table contains the list of the system parameters that can be exchanged with the Profibus-
DP. For each system parameter, the size of memory occupied in PDP and the mapping value are
also indicated:
7.1 INTRODUCTION
To apply any changes to configuration parameters of the CANDPSX module, you will have to give
a save-parameters command followed by a power-on or a software reset command.
Property Value
Parameter 2000h
To give a software reset command (instead of a power-on), set the parameter 2002h:
Property Value
Parameters 2002h
When power is switched on or the module is reset, CANDPSX initializes with the last configuration
saved. To check the result of a configuration, read the parameter 2012h:
Property Value
Parameter 2012h
Logic View manu All parameters/System
Data type 16 bit unsigned int
Measurement unit --
0 = configuration OK
1 = invalid operating mode
2 = invalid CAN baud rate
3 = Profibus-DP configuration error
Value 4 = invalid type of CAN message with the current operating mode
5 = invalid length of CAN message
6 = invalid length of trigger message
7 = bad mapping of system data in PDP
8 = bad mapping of system data in PDP
Access Read-only
CANDPSX user manual rev 2 Page 32 of 41
____________________ _
8.1 INTRODUCTION
Any standard Profibus-DP Master can exchange data with the CANDPSX module.
At startup, the Profibus-DP Master configures the communication settings of the Profibus-DP slave
nodes and then it sends them a configuration telegram. If a slave node accepts the configuration
sent by the Profibus Master, the latter shifts the slave node to the data exchange status and begins
to exchange data.
With Profibus, data exhange is carried out through a dual port consisting of two separate areas:
the input area (to Profibus-DP) and the output area (to Profibus-DP).
The configuration telegram provides the slave with information about the length of the Input/Output
data to be exchanged.
In general, programs for designing the Profibus-DP network also include a tool for composing the
configuration telegram, which consists of octets allowing the definition of up to 16 bytes / words of
user data to be exchanged (see § 8.2.1). Input/Output data having the same format can be
combined in a single octet. If the module detects any inconsistency between the configuration
octets and its internal configuration (determined by the programming of exchange data between
Profibus-DP and CAN) during the validation process started by the Master, a configuration error is
sent to the Master and the module is not ready to exchange data.
The CANDPSX adjust at word element the number of data in Profibus-DP.
CANDPSX can accept configuration telegrams consisting of up to 8 generic-format octets with the
following characteristics:
For verify the configuration telegram read the parameters from 2038h to 203Fh:
Elemento Valore
Parameter 2038h a 203Fh
All parameters/System/Profibus-DP/Configuration
Logic View menu
telegram
Data type 8 bit unsigned int
Measurement unit --
Value see § .8.2.1
Access Read-only
CANDPSX user manual rev 2 Page 34 of 41
____________________ _
9 SYSTEM ALARMS
9.1 INTRODUCTION
CANDPSX system alarms are coded bitwise and are handled by the operating modes (see § 4).
Property Value
Parameter 2010h
Logic View menu All parameters/System
10 PC TOOLS
The setup program installs the PC tools for configuring the module (Logic View) and upgrading the
firmware version (CANDPSX Firmware Upgrade). Both software tools use the COM port.
LogicView supports the Modbus protocol, whereas CANDPSX Firmware Upgrade implements a
dedicated protocol.
10.2.1 Overview
The configuration tool is composed of the following main elements (see § 10.2.1):
2. Push the button Port settings to open the dialog window that lets you modify the
communication settings: select the COM port and press OK.
3. Synchronize CANDPSX by pushing the button Syncronize and follow the instructions in the
synchronization window. When the synchronization process is completed, the Status box will
display the module identification data.
4. Press the button Browse to select a firmware file (extension .sre), then push the button
Load firmware and wait until a message appears informing that the process has been
completed. Press Ok to restart CANDPSX.
CANDPSX user manual rev 2 Page 38 of 41
____________________ _
11 HARDWARE DATA
The module must be supplied with 18 - 36 V DC through the supply cable (see § 11.4.1).
CANDPSX user manual rev 2 Page 39 of 41
____________________ _
11.4 CONNECTORS
Spring terminal (see § 11.2) for 0,2 - 2,5 mm² rigid cable or 0,2 a 1,5 mm² flexible cable.
11.6 LEDS
1. Close the jumper TM-C1 if the board is the last element of a CAN bus network
2. Connect the signal SHIELD of the connector M1 to the nearest earth point
3. Connect the signals CAN_L and CAN_H of the connector M1
4. Connect the braiding of the CAN bus cable to earth
5. Connect the signal CAN_GND of the connector M1 of all the CAN modules, as the
CAN interface is not isolated. This guarantees that the voltage between tranceivers
never reaches the maximum level
6. Install the board in an omega guide
7. Supply the module with 18V – 36V DC through the connector M3
Mechanical characteristics
Length 120 mm
Width 85 mm
Depth 60 mm
12 INTERNAL DATABASE
The CANDPSX module enables the user to configure all its functions and therefore it integrates an
internal database to store the settings. The parameters database compiles with the CANopen CiA
Draft Standard 301 specification of object dictionary implementation. The parameters database is
accessible through the RS232 port via Modbus protocol.
13 VERSION HISTORY