CANopen Module DVPCOPM-SL Manual
CANopen Module DVPCOPM-SL Manual
Warning
Please read this instruction carefully before use and follow this instruction to operate the device in order to prevent
damages on the device or injuries to staff.
DVPCOPM-SL is an OPEN TYPE device and therefore should be installed in an enclosure free of airborne dust,
humidity, electric shock and vibration. The enclosure should prevent non-maintenance staff from operating the
device (e.g. key or specific tools are required for operating the enclosure) in case danger and damage on the
device may occur.
DVPCOPM-SL is to be used for controlling the operating machine and equipment. In order not to damage it, only
qualified professional staff familiar with the structure and operation of DVPCOPM-SL can install, operate, wire
and maintain it.
DO NOT connect input AC power supply to any of the I/O terminals; otherwise serious damage may occur. Check
all the wirings again before switching on the power and DO NOT touch any terminal when the power is switched
on. Make sure the ground terminal is correctly grounded in order to prevent electromagnetic interference.
Table of Contents
1 INTRODUCTION...................................................................................................................................3
1.1 Features ....................................................................................................................................3
1.2 Functions...................................................................................................................................4
2 PRODUCT PROFILE & OUTLINE .......................................................................................................5
2.1 Dimension .................................................................................................................................5
2.2 Product Profiles .........................................................................................................................5
2.3 CANopen Connection Port ........................................................................................................6
2.4 Address Switch..........................................................................................................................6
2.5 Function Switch .........................................................................................................................6
2.6 Digital Indicator..........................................................................................................................7
3 BASIC OPERATION.............................................................................................................................7
3.1 Connecting DVPCOPM-SL to DVP-SV MPU ............................................................................7
3.2 Installing DVPCOPM-SL and DVP-SV MPU on DIN Rail..........................................................7
3.3 Connecting to CANopen Connection Port.................................................................................8
4 CONSTRUCTING CANOPEN NETWORK...........................................................................................8
4.1 How to Construct a CANopen Network .....................................................................................8
4.2 Data Mapping in CANopen Network .......................................................................................10
4.3 How to Configure Network by Delta CANopenBuilder Software ............................................. 11
4.4 Saving the Configuration Data ................................................................................................19
4.5 CANopen Network Control ......................................................................................................19
1 Introduction
1. To ensure correct installation and operation of DVPCOPM-SL, please read this chapter carefully before
using your DVPCOPM-SL.
2. This chapter only provides introductory information on DVPCOPM-SL. For more detailed information on
CANopen protocol, please refer to relevant references or literatures.
3. DVPCOPM-SL is a CANopen module operating on the left side of DVP-SV series PLC MPU. When DVP-SV
is connected to CANopen network through DVPCOPM-SL, DVPCOPM-SL will serve as the data exchange
interface between DVP-SV and other slaves on the bus. DVPCOPM-SL is in charge of sending the data in
DVP-SV to the slaves on the bus, and at the same time collecting the data returned from each slave and
sending them back to DVP-SV.
1.1 Features
DVPCOPM-SL can be used as the master in CANopen network, as well as the slave for other masters.
As a master, DVPCOPM-SL features:
z Complying with CANopen standard protocol DS301v4.02.
z Supporting NMT Master Service.
z Error control: Supporting Heartbeat/Node Guarding Protocol.
z Supporting PDO Service.
Max. 200 RxPDOs and 390 bytes of data
Max. 200 TxPDOs and 390 bytes of data
Each slave can be allocated maximum 8 TxPDOs and 8 RxPDOs.
z PDO transmission type: Supporting event trigger, time trigger, synchronous cycle, and synchronous
non-cycle.
z PDO mapping: Every PDO is able to map maximum 32 parameters.
Type of mapping data supported:
z As the interface between Delta CANopenBuilder software and CANopen network. The software can
configure the network directly through DVPCOPM-SL.
z In the auto data exchange with DVP-SV, the user only has to program the D register mapped in DVP-SV
without applygin FROM/TO instructions. When connected to DVP-SV/DVP-EH2-L MPU, registers after
D6000 will be adopted temporarily.
As a slave, DVPCOPM-SL features:
z Complying with CANopen standard protocol DS301v4.02
z Supporting NMT Slave Service
z Error control: Supporting Heartbeat Protocol
z Supporting PDO Service: Each slave can be allocated maximum 8 TxPDOs and 8 RxPDOs.
z PDO transmission type: Supporting event trigger, time trigger, synchronous cycle, synchronous
non-cycle.
z Supporting SDO Service.
Number of server: 1
Number of user: 0
z Supporting standard expedited SDO transmission mode.
z Supporting Emergency Protocol.
Able to indicate Emergency event in slave through digital display.
z In the auto data exchange with DVP-SV, the user only has to program the D register mapped in DVP-SV
without applygin FROM/TO instructions.
1.2 Functions
CANopen connection
Communication
Electrical specification
Power voltage 24VDC, supplied by internal bus from PLC MPU (-15% ~ 20%)
Power consumption 1.7W
Isolation voltage 500V
Environment
ESD (IEC 61131-2, IEC 61000-4-2): 8KV Air Discharge, 4KV Contact
Discharge
EFT (IEC 61131-2, IEC 61000-4-4): Power Line: 2KV, Digital I/O: 1KV
Noise immunity Analog & Communication I/O: 1KV
Damped-Oscillatory Wave: Power Line: 1KV, Digital I/O: 1KV
RS (IEC 61131-2, IEC 61000-4-3): 80MHz ~ 1,000MHz, 1.4GHz ~ 2.0GHz,
10V/m
2.1 Dimension
DVPCOPM-SL
POWER
RUN
ERR
1
NODE ADDRESS
x16
0
x16
90 [3.543]
DR 2
DR 1
DR 0
IN 0
63.4 [2.496]
SHLD
CAN-
GND
6 1 5 2 6 2
DVPCOPM-SL
PO WER
RUN
3 ERR
1
NODE ADDRESS
x16
7 0
x16
DR 2
DR 1
DR 0
IN 0
8
SHLD
CAN-
9
GND
6 4
The connector is used on the connection to CANopen network. Wire by using the connector enclosed with
DVPCOPM-SL.
5 - Reserved
The switch is used on setting up the node address of DVPCOPM-SL on CANopen network. Range: 1 ~ 7F (0,
88 ~ FF are forbidden).
NODE ADDRESS
x16
Example: If you need to set the node address of DVPCOPM-SL to 26 (1AH), simply switch the corresponding
switch of x161 to 1 and the corresponding switch of x160 to A.
Note:
z Use slotted screwdriver to rotate the switch carefully in case you scratch the switch.
z Please set up the node address when the power is switched off. After the setup is completed, re-poser
DVPCOPM-SL.
The switch is used on setting up the baud rate between DVPCOPM-SL and CANopen network (DR0 ~ DR2).
See the table below for the baud rate and its maximum communication distance.
DR2 DR1 DR0 Baud rate (bps) Max. communication distance (m)
OFF OFF OFF 10k 5,000
OFF OFF ON 20k 2,500
OFF ON OFF 50k 1,000
OFF ON ON 125k 500
ON OFF OFF 250k 250
ON OFF ON 500k 100
ON ON OFF 800k 50
ON ON ON 1M 25
IN0 Reserved
Note:
z Use slotted screwdriver to adjust the DIP switch carefully in case you scratch the switch.
z Please set up the function switch when the power is switched off. After the setup is completed, re-power
DVPCOPM-SL.
3 Basic Operation
z Open the fixing clip on top and bottom of DVP-SV. Meet the extension port of DVPCOPM-SL with
DVP-SV, as 1.
z Press the fixing clips on top and bottom of DVP-SV and check is the connection is fine, as 2.
DVPCOPM DVP28SV
POWE R
RUN
ERR
1
NODE ADDRESS
x16
0
x16
DR 2
DR 1
DR 0
IN 0 1
CA N+ RUN
S H LD
CA N-
STOP
G ND
DVPCOPM DVP28SV
POWER
RUN
ERR
35mm DIN rail
1
NODE ADDRESS
x16
0
x16
DR 2
DR 1
DR 0
IN 0
CAN+ RUN
SHLD
CAN-
STOP
GND
RS-232
z Set up DVPCOPM-SL and IFD9503 according to the table below. For how to operate IFD9503, please
refer to Chapter 13.
L
N
0V RUN
STOP
Node 1
RS-232
CANopen
Node 2 Node 3
P O RT1 P O RT2
P O RT1 P O RT2
L
N
DVP-08ST
D VP- 12SA
0V
IFD9503
ASD-B
DVP-12SA DVP-08ST
About the connection between IFD9503 and PLC, IFD9503 and ASD-B, or IFD9503 and other equipment,
please refer to Chapter 13. For the electrical specifications of ASD-B, please refer to ASD-B user manual.
Channel Function
X0 Controlling RUN/STOP of ASD-B
Selecting the speed of ASD-B:
X2 = 0, X1 = 1, selecting SP1
X1, X2
X1 = 1, X2 = 0, selecting SP2
X1 = 1, X2 = 1, selecting SP3
Operational status of ASD-B:
Y0 On: RUN
Off: STOP
Supposed IFD9503 is connected to DVP-12SA and exchanging data with DVPCOPM-SL master, the default
length of input data is 8 bytes and output data is 8 bytes. D256 in DVP-12SA is the start device for input data,
and D0 is the start device for output data. To realize the control function of X0, X1 and X2, we place the
statuses of X0 ~ X2 to bit 0 ~ 2 of D256. That is, when X0 = On, bit 0 of D256 will become 1. When X1 = On, bit
1 of D256 will become 1. In this way, we can realize the control of RUN, STOP and speed of ASD-B by the
changes in D256 through WPLSoft. The status word in ASD-B will then be sent to D0. That is, when bit 0 of D0
becomes 1, there will be signals at Y0.
I/O data area for DVPCOPM-SL master:
D register 15 14 13 12 11 10 9 8 7 6 5 4 3u,3 2 1 0
D6032 D256 X2 X1 X0
Input data
D6033 D257
D6034 D258
D6035 D259
…
D6282 D0 Y0
Output data
D6283 D1
D6284 D2
D6285 D3
…
D register 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Input data D6036 Multi-function digital output
(2) Select ”Setup” => ”Communication Setting” => ”System Channel”, and the "Serial Port Setting”
dialog box will appear.
(3) Set up the communication parameters in the PC and DVP-SV, e.g. the communication port,
address, baud rate and communication format.
(4) Select “Network” => ”Online”, and the “Select Communication Channel” dialog box will appear. In
this example, if the connection with DVP-SV is in normal status, you will see the screen as below.
If there are more than one DVPCOPM-SL modules (less than 8) connected to the left side of
DVP-SV and supposed there are two connected in this example, after clicking on “Online”, you will
see the screen as below. The DVPCOPM-SL which is closest to DVP-SV is regarded the first module,
and so on.
(5) Select the DVPCOPM-SL which needs to establish the communication. Click on “OK” and start to
scan all the slaves on the network. If the network installation and power supply are normal, you will
see the screen as below.
(6) In normal condition, after the scan is over, you will find the master and all the slaves displayed in
CANopen network, as below.
Work Mode: The work mode of DVPCOPM-SL. You can select either “Master Mode” or “Slave Mode”.
Cycle Period: The period of sending synchronous information.
Master’s heartbeat time: Time for DVPCOPM-SL to send out heartbeat.
After all the parameters are set up, click on “OK".
z Setting up parameters in CANopen slave
Take the parameter settings in ASD-B for example:
(1) Double click on ASD-B, and you will see the dialog box as below.
In this page, you can set up parameters for error control, e.g. “Master Consumer Timeout” and
“Node Heartbeat Producer Time”. Please note that the value of “Master Consumer Timeout" shall be
bigger than the value of “Node Heartbeat Producer Time”. After you have set up the heartbeat function,
and the slave turns off-line and does not turn on-line within “Master Cosumer Timeout”, the master will
consider the slave off-line. If “Heartbeat" is selected, you cannot select “Node Guarding”. In
“Heartbeat consumer”, you can add devices into the node list. Add a device A, and the slave will be
able to monitor whether device A is on-line. Select a device and click on “Edit…” to modify the
“Consumer" and “Producer” value.
Auto SDO Configuration: In the “Node Configuration” page, click on “Auto SDO Configuration”,
and you will see the page as below.
Click on “Add” to edit Auto SDO. Click on “Edit” to modify the Auto SDO selected. Please note that
the Auto SDO cannot be longer than 8 bytes, and every slave is able to posses maximum 20 auto
SDOs.
PDO mapping: In the “Node Configuration…” page, select a TxPDO or RxPDO in “Configured
PDO” and click on “PDO Mapping”, and you will enter the “PDO Mapping…” page as below. You can
add the parameters in “Available Objects from EDS file” into “Mapped Objects”. The total length of the
parameters added in each PDO cannot exceed 8 bytes. After the configuration is completed, click on
“OK”.
In the “Node Configuration…” page, click on “Properties” to enter the "PDO Properties” page and
modify COB-ID and Transmit type. After the configuration is completed, click on “OK”. In the “Node
Configuration…” page, click on “Define PDO” to self define RxPDO ir TxPDO.
In this example, we adopt the default configuration. Finally, click “OK” in the “Node
Configuration…” page.
(1) Double click on “DVPCOPM Master” icon, and you will see the “Node List Setting” dialog box as
below.
(2) In this example, first select DVP-SS/SA/EH PLC at Node 003 and click on > to add this node into
the node list. After this, select Node 003 in the node list, and you will be able to see how the I/O data
correspond to D registers in DVP-SV from the Output Table and Input Table below.
(3) Add also Node 002 into the node list, and you will be able to see how the I/O data correspond to D
registers in DVP-SV from the Output Table and Input Table below. Click on “OK” to complete setting
up the node list.
Click on “OK” to stop the PLC and start to download the data to the master.
After the download is completed, you will be given another warning, asking you if you would like to
run the PLC again. Click on “OK” to restart the PLC program, or click on “Cancel” to stop the PLC.
M1002
SET M0
M0
MOV D6032 D6286
END
z Program explanations:
1. The 2nd row of the program indicates sending the content of D256 in DVP-SA (mapped on D6032 of
DVP-SV) to the control word (Multi-Function Digital Input, mapped on D6286 of DVP-SV) of the servo
drive.
2. The 3rd row of the program indicates sending the output status of the servo drive (Multi-Function
Digital Output, mapped on D6036 of DVP-SV) to D0 in DVP-SA (mapped on D6282 of DVP-SV).
z The program in DVP-SA MPU (slave):
M1002
MOV HC6 D1120
D
SET M1120
RST M1143
SET M0
M0
MOV K2X20 D256
MOV D0 K2M10
M10
Y0
END
z Program explanations:
1. The first 3 rows of the program set up the communication format between DVP-SA and IFD9503,
which is 115,200bps, 7E1-ASCII; communication port is COM2.
2. When M0 = On, send the input status of X20 ~ X28 on DVP-08ST to D256, and send the data in b0 ~
b15 of D0 to M10 ~ M25.
3. When D0 = 1, M10 will be On, and Y0 on DVP-SA MPU will output.
DVPCOPM DVP28SV
RUN
STOP
DVPCOPM-SL DVP28SV
SDO request message from master
P
O
R
T
2
IFD9503
VFD-B
A: DVP-SV sends out request message to DVPCOPM-SL (master).
B: DVPCOPM-SL (master) sends out request message to the target equipment.
C: The target equipment processes the request message and sends the response message to
DVPCOPM-SL.
D: DVP-SV receives SDO, NMT and Emergency data.
You can edit SDO, NMT and Emergency in “request message editing area”. Take the first DVPCOPM-SL
master placed on the left hand side of DVP-SV for example. See the table below for the corresponding releation
between “request message editing area” and “response message editing area” and the devices in PLC.
See the table below for the format of SDO request message:
Request Message
PLC device
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
D6250 ReqID Command
D6251 Message Header Reserved Size
D6252 Type MAC ID
D6253 High byte of main index Low byte of main index
D6254 Reserved Sub index
D6255 Message Data Datum 1 Datum 0
D6256 Datum 3 Datum 2
D6257 ~ D6281 Reserved
You can send the NMT request message to D6250 ~ D6281, and the slave will not respond with a message.
Request Message
PLC device
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
D6250 ReqID Command
D6251 Message Header Reserved Size (fixed to 04Hex)
D6252 Type (fixed to 03Hex) MAC ID
D6253 Reserved NMT service code
Message Data
D6254 Reserved MAC ID
Request Message
PLC device
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
D6250 ReqID Command
D6251 Message Header Reserved Size (fixed to 0)
D6252 Type (fixed to 04Hex) MAC ID
D6253 ~ D6281 Message Data Reserved
See the table below for the format of Emergency response message:
Response Message
PLC device
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
D6000 ReqID Status
D6001 Message Header Reserved Size (2A Hex)
D6002 Type (04Hex) MAC ID
D6003 Message Data Total number of data Number of data stored
D6004 Datum 1 Datum 0
D6005 Datum 3 Datum 2
D6006 Datum 5 Datum 4
D6007 Datum 7 Datum 6
D6008 ~ D6011 Emergency2
D6012 ~ D6015 Emergency3
D6016 ~ D6019 Emergency4
Response Message
PLC device
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
D6020~ D6023 Emergency5
D6024~ D6031 Reserved
Example I
z Target:
When M0 = On, read the content of index 2021, sub index 4 (i.e. actual output value of AC motor
drive) in IFD9503.
DVPCOPM DVP28SV
C A N+ RUN
S H LD
C A N- STOP
GN D
Node 1 Master
CANopen
Node 2
RJ12
RS-485
IFD9503 VFD-B
Devices in PLC:
Explanation
PLC device Content
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
D6250 0101Hex ReqID = 01Hex Command = 01Hex
D6251 0004Hex Reserved Size = 04Hex
SDO request
message D6252 0102Hex Type = 01Hex MAC ID = 02Hex
editing area
D6253 2021Hex High byte of index = 20Hex Low byte of index = 21Hex
D6254 0004Hex Reserved Sub index = 04Hex
D6000 0101Hex ReqID = 01Hex Status = 01Hex
D6001 0006Hex Reserved Size = 06Hex
SDO response D6002 4B02Hex Type = 4BHex MAC ID = 02Hex
message
editing area D6003 2021Hex High byte of index = 20Hex Low byte of index = 21Hex
D6004 0004Hex Reserved Sub index = 04Hex
D6005 0100Hex Datum 1= 01Hex Datum 0 = 00Hex
0100Hex in D6005 refers to the actual output frequency of the AC motor drive is 2.56Hz.
z PLC program
M1002
ZRST D6000 D6031
Reset response message editing area
and request message editing area.
ZRST D6250 D6281
M0
MOV H0101 D6250 ReqID = 01, Command = 01
END
z Program explanation
1. The program first reset the SDO request message editing area and SDO response message
editing area to 0.
2. When M0 = On, CANopen master will send out SDO request message and read the contents in
index 2021, sub index 4 of the target equipment (at node address 02). If the communication is
successful, the slave will return with the response message.
3. When M0 = On, CANopen master will send out request message only once. If you would like it to
send out messages again, you will have to change the ReqID.
4. The messages returned from the target equipment are stored in D6000 ~ D6005.
Example II
z Target:
When M0 = On, set the content in index 2047, sub index 2 (i.e. the control word of the target
temperature) in IFD9503 to 0104Hex (i.e. 26.0°C). Please note that you have to write 0401Hex into
D6255 of the PLC.
DVPCOPM DVP28SV
CAN+ RUN
SHLD
CAN- STOP
GND
Node 1 Master
CANopen
Node 2
PV
°C
°F
SV
SET
DTA4848
RS-485
IFD9503 DTA
Explanation
PLC device Content
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
D6250 0101Hex ReqID = 01Hex Command = 01Hex
D6251 0006Hex Reserved Size = 06Hex
SDO request D6252 0202Hex Type = 02Hex MAC ID = 02Hex
message
editing area D6253 2047Hex High byte of index = 20Hex Low byte of index = 47Hex
D6254 0002Hex Reserved Sub index = 02Hex
D6255 0401 Hex Datum 1= 04Hex Datum 0= 01Hex
D6000 0101Hex ReqID = 01Hex Status = 01Hex
D6001 0004Hex Reserved Size = 04Hex
SDO response
message D6002 6002Hex Type = 60Hex MAC ID = 02Hex
editing area
D6003 2047Hex High byte of index = 20Hex Low byte of index = 47Hex
D6004 0002Hex Reserved Sub index = 02Hex
z PLC program
M1002
ZRST D6000 D6031
Reset response message editing area
and request message editing area.
ZRST D6250 D6281
M0
MOV H0101 D6250 ReqID = 01, Command = 01
END
z Program explanation
1. The program first reset the SDO request message editing area and SDO response message
editing area to 0.
2. When M0= On, CANopen master will send out SDO request message and write 0104Hex into
index 2047, sub index 2 of the target equipment (at node address 02). If the communication is
successful, the slave will return with the response message.
3. When M0 = On, CANopen master will send out request message only once. If you would like it to
send out messages again, you will have to change the ReqID.
4. The messages returned from the target equipment are stored in D6000 ~ D6004.
DVPCOPM
POWER
RUN
ERR
z DVPCOPM-SL as master:
z DVPCOPM-SL as slave:
MEMO