Can Netzwerk0206 e
Can Netzwerk0206 e
AMKASYN
Digital drive systems
• Series KE/KW
• Series KU
• SYMAC
Important notes
Please attach option card directly from the packaging in the option slot of the KU or
AZ module without exerting force and secure with the screw on the front panel.
PRELIMINARY
Rights reserved to make technical changes
Arnold Müller, Antriebs- und Steuerungstechnik GmbH & Co. KG, D-73221 Kirchheim/Teck,
Tel.: 07021/50 05-0, Telefax: 07021/50 05-176, E-Mail: [email protected]
AMKASYN
Inhalt
PRELIMINARY.......................................................................................................................1
3 CANOPEN ...................................................................................................................... 6
3.1 Object Dictionary .........................................................................................................6
3.2 Real time communication.............................................................................................7
3.3 Communication profile .................................................................................................7
3.4 Synchronous and Asynchronous PDO transmission ....................................................7
List of Figures
Figure 3-1 CANopen communication model .........................................................................6
Figure 3-2 Process Data Object PDO ..................................................................................7
Figure 3-3: Synchronous and Asynchronous PDO transmission ............................................ 8
Figure 3-4: BUS SYNChronization and actuation ...................................................................9
Figure 3-5: Hardware synchronization ..................................................................................10
Figure 4-1 Overview of CAN network configuration ............................................................ 11
Figure 6-1: Scheme of data transfer .....................................................................................16
Figure 6-2 Arbitration principle ...........................................................................................20
Figure 7-1: Data exchange definition ....................................................................................22
The CAN-S interface consists of the CAN data channel and a synchronous clock
signal with which all bus subscribers are synchronized exactly to a master clock.
3 CANopen
The CAN communication is based on the CANopen standard CiA Draft Standard 301
Version 4.01, thus further components corresponding to the standard of external
manufacturers can be integrated into the BUS system (e.g. I/Os or gateways). The following
functionality is supported:
The object dictionary is the data and parameter interface of the node to the CAN
network. It describes the device with regard to its application and communication
properties.
Object dictionary
Data types
I/O
Communication Application
- PDOs (Process Data Object) - Application program
- SDOs (Service Data Object)
- Implementing the device profiles
- Special functions
(Standard device functionality)
- Synchronization objects
- Time stamp
- Emergency objects
NMT Objects (Network management
parameter
exchange
CAN KN
Bus
PDO
CAN BUS COB-ID 8 Byte Data
-Synchronous (CycSync n)
-Asynchronous (AMKevent, DeviceEvent)
time
Synchronous
PDOs
Asynchronous
PDOs
The jitter of this SYNC object depends on the bit rate of the bus as even the very high
priority SYNC has to wait for the current message on the bus to be transmitted before it
gains bus access.
To avoid SYNC jitter AMK CAN devices use additional hardware line named Hardware-
SYNC, which synchronizes all synchronous data in all devices linked to the CAN network.
Received synchronous messages will be actuated after the next Hardware SYNC signal.
After actuation the synchronous messages become active. The following figure shows the
prinziple of SYNC PDOs transmission.
SYNC SYNC
object object
objects mapped objects mapped objects mapped objects mapped
Receive PDO HW-
in synchronous in asynchronous HW- in synchronous in asynchronous
SYNC
RPDO TPDO SYNC RPDO TPDO
1 2 3 1 2 3
PGT PGT
250µs
Additional to the standard can cable (2 signals CAN_H and CAN_L) AMK supports a
hardware synchronous signal (CAN_S_H and CAN_S_L) for synchronization of PGT signal
in all devices in the network. Based on this all synchronous PDOs become active at the
same time in every drive. This is important e.g. for transmission of setpoint values,
commands, actual values,... .
HW-SYNC
HW-SYNC
HW-SYNC
PGT
PGT
PGT
CAN Master 1
PGT 250us t
PGT
PGT
CAN Slave 2 PGT
t
ID2 ID2
PGT
PGT
PGT
PGT
CAN Slave 3
t
PGT
PGT
PGT
PGT
CAN Slave n
t
PGT synchronized
The following questions must be clarified for the configuration of a CAN network:
• Which nodes should be subscribers in the network?
• Which data should be exchanged between the nodes?
• When and how frequently must the data be exchanged?
• Which priorities do the data to be exchanged have?
The answers to these questions result in the values for the parameters of PDOs.
Parameters for T-PDOs and R-PDOs are assigned by means of a CONCISE
CONFIGURATION FILE (*.ccf). The contents of the concise configuration file is a list of
value assignments for entries in the object dictionary of the nodes. This file can be created
with a standard Windows text editor.
The "Concise Configuration File" must be converted into a concise configuration binary file
(CCB-File), which is transmitted through the serial interface to the master AE-PLC card with
AMK tool. With these data the CAN master firstly initializes its own dictionary and then the
dictionaries of the other network nodes through SDOs (Service Data Object) after next
power on.
The following overview illustrates the procedure exemplified by KU System.
Personal Computer
RS232
CAN BUS
CAN Master
CAN Master
SDOs
transmits on switching on
(Service Data Object) for K1, K2, K3, K4 ••• KN
CAN Slaves 2 3 4 N
CAN network
5 Predefinition Files
We support 3 predefined files predef2.ccf, confCommon.ccf and predefAPI.ccf which
contain the usable definitions and processes.
Predef2.ccf contains:
• Definitions of communication indices
• Definitions of COB-IDs from the predefined connection set
• Definitions for use of PLC terms for mapping entries
• Definitions of transmission types
• Definitions of frequently used indices
• Definitions of AMK specific indices
• Definitions of complex configuration commands
This file is read at the start of a CAN configuration file with readFile command.
confCommon.ccf contains:
• Master: automatic setting of index 0x1004 "Number PDOs"
• Master: automatic generation of the necessary client SDO
• Master: setting of index 0x2102 "AMK specific data"
• All slaves: setting of index 0x100c "GuardTime" and index 0x100D "LifeTimeFaktor"
Different symbols must be assigned values for executing confCommon.ccf. This file is read
at the and of a CAN configuration file with readFile.
Additional we support a File which is called predefAPI.ccf. This File opens a very
comprehensive access to our drive functionality via API parameters which can be directly
used as mapping entries. API is the drive Application interface where the predefAPI.ccf
opens access to. PredefAPI.ccf will be read via command readFile predefAPI.ccf.
The command Alias is used to describe parameters with symbols. Use of these keywords
can highly simplify the configuration with many nodes. Special care is necessary in use to
avoid unwanted overwriting.
It is naturally possible to create own definitions and processes and to file them in own *.ccf
files.
eg.
// Life Guarding for node 2 slave
conf 2 0x100C 0 WORD 1000 //slave erwartet Abfrage alle 4000ms
conf 2 0x100D 0 BYTE 4 //eg. 2 slaves in network
1) Alias BaudrateVal
1000kb
800kb
500kb
250kb
125kb
50kb
20kb
10kb
Example:
// Master Configuration
// Transmit PDO
Example:
// Slave Configuration
// Receive PDO
The relation between PLC designators and CAN index/subindex is defined in the AMK file
“predef2.ccf” which is read in the CAN Configuration file.
Output PLC to CAN Transmit PDO Input PLC from CAN Receive PDO
QBx: BYTE IBx: BYTE
QWx WORD IWx: WORD
QDx DWORD IDx DWORD
Index Byte 8 9 10 11 12 13 14 15 60 61 62 63
Index Word 4 5 6 7 ... 30 31
Index DW 2 3 .. 15
Bytes 0...7 are reserved for AMKASYN I/O option cards
Output PLC to CAN Transmit PDO Input PLC from CAN Receive PDO
QLx: LONG WORD (8byte) Ilx: LONG WORD (8byte)
Index Byte 0 1 2 3 4 5 6 7 60 61 62 63
Index Word 0 1 2 3 ... 30 31
Index DW 0 1 .. 15
For SYMAC the SYNC AREA is up to DW 31
A A
fieldbus
B B
SYNC_Signal
cycle time ID2
API - Master
A
OUT IN
DIRECTION DIRECTION
B
API - Slave
Setpoints
4 main_set_point 0x2030 0x01 CAN to API 0.5 1)
2 additional_set_point 0x2030 0x03 CAN to API 0.5 1)
Actual values
2 actual_16bit_message 0x2040 0x01 API to CAN 0.5 2)
4 actual_32bit_message 0x2040 0x02 API to CAN 0.5 3)
4 actual_position_value 0x2040 0x03 API to CAN 0.5
Bit messages NU NU
2 device_status_bits 0x2048 0x00 API to CAN 5.0 12)
2 device_control_bits 0x2049 0x00 CAN to API 5.0 13)
2 real_time_bits 0x204A 0x00 API to CAN 5.0 14)
I/O Area
1 input_1_byte_0 0x6000 0x01 API to CAN 1.0 4)
1 input_1_byte_1 0x6000 0x02 API to CAN 1.0 4)
1 input_1_byte_2 0x6000 0x03 API to CAN 1.0 4)
1 input_1_byte_3 0x6000 0x04 API to CAN 1.0 4)
1 input_1_byte_4 0x6000 0x05 API to CAN 1.0 4)
1 input_1_byte_5 0x6000 0x06 API to CAN 1.0 4)
1 input_1_byte_6 0x6000 0x07 API to CAN 1.0 4)
1 input_1_byte_7 0x6000 0x08 API to CAN 1.0 4)
1 input_1_byte_0_WR 0x4000 0x01 CAN to API 1.0 4)
1 input_1_byte_1_WR 0x4000 0x02 CAN to API 1.0 4)
1 input_1_byte_2_WR 0x4000 0x03 CAN to API 1.0 4)
1 input_1_byte_3_WR 0x4000 0x04 CAN to API 1.0 4)
1 input_1_byte_4_WR 0x4000 0x05 CAN to API 1.0 4)
1 input_1_byte_5_WR 0x4000 0x06 CAN to API 1.0 4)
1 input_1_byte_6_WR 0x4000 0x07 CAN to API 1.0 4)
1 input_1_byte_7_WR 0x4000 0x08 CAN to API 1.0 4)
10) AFP write block only accessible through dictionary object 0x2021 sub1 to sub8.
11) AFP read block only accessible through dictionary object 0x2020 sub1 to sub8.
12) 13)
Key:
N Speed, M Torque, P Power, X Position, SA Following error
−
All this functionality is valid with PLC software AE-PLC V1.01 2002/02 and KU version KU
1.11 3900.
TransType Meaning
CycSync x Transmission rate of x means that the synchronous PDO
message is transmitted with every x-th SYNC object. The
cycle time of the sync object is ID2 SERCOS cycle time.
e.g. ID2=2ms, CycSync3 : transmitted every 6ms
(commands, setpoints, actual values,...)
AMKevent, DeviceEvent Asynchronus PDO;
PDO will be transmitted only if data changed without any
relation to the SYNC object. (AFP or I/O transmission)
If a subscriber wants to send a message (PDO), then it sends a telegram header when the
bus is free. The header contains an 11-bit communication object identifier (obj-id,COB-ID)
which is assigned specifically to this message. The lowest significant object identifier has the
highest priority, gains the arbitration and receives the bus access. Its message is sent
without loss of time.
Master 1 Master 2
Master 3 Master 4
COB-ID: 06 COB-ID: 32
COB-ID: 09 COB-ID: 64
COB-ID: 41 COB-ID: 89
LSB
MSB
Startbit
(Winner) 7 6 5 4 3 2 1 0
Tx 0 0 1 0 0 0 1 1 (bin)
Master 1
obj-id: 35
Rx 0 0 1 0 0 0 1 1 (bin)
Tx 0 0 1 0 1 0 0 1 (bin)
Master 3
obj-id: 41 Rx 0 0 1 0 0 0 1 1 (bin)
The following figure defines which data will be exchanged between the nodes.
PDO COB_ID PDO-TYPE MASTER (1) SLAVE (2) I/O Module (3)
1 182 CycSync1
2 301 AMKevent
QL16 AFP_write
2 302 AMKevent
output_1_byte_0
IL16 AFP_read
output_1_byte_1
3 401 AMKevent
QW10 input_1_byte_0
input_1_byte_1
3 402 AMKevent
IW10
output_1_byte_0
4 201 DeviceEvent
output_1_byte_1
QW4 (IW4)
4 202 DeviceEvent
input_1_byte_0
IW4 input_1_byte_1
(QW4)
LSB MSB
Symbol for PDO (contains 8 Byte Data)
The following CCF-File describes the application according to the above definitions.
Converted from *.ccf into *.ccb with the tool CANConv and the *.ccb File needs to be
downloaded into the master with the tool DVLader.
// ====================================================================
// Filename: can5.ccf
// Projekt :
// Date : 01.02,02
//
// =====================================================================
// History
// 31.01.02
=====================================================================
//------------------------
// Common parameters
//------------------------
nodelist 1 2 3
nodegroup slaves 2 3
//------------------------------------
// Master Configuration Adr. 1
//------------------------------------
alias master 1
confMasterTransmitPDO
confMasterTransmitPDO
confMasterTransmitPDO
confMasterTransmitPDO
confMasterReceivePDO
confMasterReceivePDO
confMasterReceivePDO
confMasterReceivePDO
//------------------------
// Slave 1 Adr.2
//------------------------
alias slave 2
confSlaveTransmitPDO
confSlaveTransmitPDO
confSlaveTransmitPDO
confSlaveReceivePDO
confSlaveReceivePDO
confSlaveReceivePDO
//---------------------------
// Slave 3 Configuration WAGO EA16
//---------------------------
alias slave 3
confSlaveTransmitPDOnew
confSlaveReceivePDOnew
readFile confCommon.ccf
/*================================= EOF============================*/