Taoyuan Technology Center
No.18, Xinglong Rd., Taoyuan City,
Taoyuan County 33068, Taiwan
TEL: 886-3-362-6301 / FAX: 886-3-371-6301
Asia
Delta Electronics (Jiangsu) Ltd.
Wujiang Plant 3
1688 Jiangxing East Road,
Wujiang Economic Development Zone
Wujiang City, Jiang Su Province, P.R.C. 215200
TEL: 86-512-6340-3008 / FAX: 86-769-6340-7290
C.3 PDO (Process Data Object) ........................................................................ C-7
C.4 SDO (Service Data Object) ......................................................................... C-9
Appendix D Explanation of Homing Modes ............................................................ D-1
D.1 Explanation of Homing Modes ................................................................... D-2
Appendix E List of Accessories ............................................................................... E-1
E.1 Accessories for CANopen Communication .................................................. E-2
E.2 Accessories for PROFIBUS DP Communication ........................................... E-4
E.3 Accessories for DeviceNet Communication ................................................. E-4
vii
Page 9
Memo
viii
Page 10
1
Chapter 1 Preface
Table of Contents
1.1 Explanation of Symbols in This Manual ...................................................... 1-2
1.2 Revision History ......................................................................................... 1-2
1-1
Page 11
DVP15MC11T Operation Manual
_1
!Danger
!
Warning
!
Caution
Thank you for purchasing DVP15MC11T motion controller which is created on the basis of motion control and
we are providing you with a high-end motion control system.
This manual describes the product specifications, functions, system architecture, installation, wiring,
execution principle, logic instructions and motion control instructions, trouble-shooting, communication
protocols, homing modes and other relevant information.
Make sure that you have well known about the motion control system configuration and product operation
before using DVP15MC11T.
1.1 Explanation of Symbols in This Manual
Precautions before operation
Before operation, please read relevant safety instructions carefully so as to prevent an injury t o personnel and
damage to products.
It indicates the highly potential hazards. It is possible to cause a severe injury or even
fatal harm to personnel if you do not follow the instructions.
It indicates the potential hazards. It is possible to cause a minor injury or even fatal
harm to personnel if you do not follow the instructions.
It indicates much attention should be paid. An unex pected result may occur if you do
not follow the instructions.
2.3 Profile and Components ............................................................................. 2-3
2-1
Page 13
DVP15MC11T Operation Manual
_2
2.1 Product Description
DVP15MC11T is a type of multi-axis motion controller researched and produced by Delta autonomously on
the basis of CANopen field bus. It complies with CANopen DS301 basic communication protocol and
DSP402 motion control protocol. In addition, i t also supports standard instruction libraries defined by
international organizations for motion control . It brings great convenience to user to learn and develop
projects quickly. Maximum 24 axes can be controlled by means of Motion port. The single-axis motion
instructions including velocity, position, torque and homing instruct ions as well as multi-axis in structio ns such
as electronic gear, electronic cam, rotary cut and G code are supported.
Multiple communication ports are built in DVP 15MC11T. And thus various communication function s c an be
realized without adding modules. DVP15MC11T has left-side and right-side extension ports for adding
DVP-S series modules to its left and right sides. (The left-side port is a high-speed parallel extension port.)
The communication system adopts highly reliable CAN bus as the main line and hence users just need
simple cables for wiring.
Thanks to the high-speed reliable motio n control system , DVP15M C11T can be widely a pplied to a variety of
automation control industries such as packagi ng, printing, encapsulating, wire cutting, drug manufact uring
and so on.
2.2 Functions
Able to control up to 24 real axes (with axis No. ranging from 1 to 32).
The virtual axis and encoder axis can be built inside DVP15MC11T (with the axis No. ranging from 1
to 32, which can not be the same as that of real axes).
Equipped with 1GHz high-speed floating-point operation processor; supporting 64-bit floating point
(Lreal) and capable to meet various complicated motion control.
With two built-in incremental encoder ports and one SSI absolute encoder port.
With one RS232 port, one RS485 port and two Ethernet ports.
With one built-in CAN port serving as CANopen master or slave.
Supports powerful field network (as Ethernet master or slave, CANopen master or slave and
Profibus-DP slave) for construction of a function-complicated control system.
With a variety of I/O extensions (Left-side high-speed AIAO; right-side low-speed A IAO and DIDO
and temperature modules).
Using the easy-to-use software interface with the features of complete function and conv enient
application.
Providing standard bus cables, terminal resistors, distributor boxes and other acce ssorie s as well as
easy and convenient plug-and-play wiring.
2-2
Page 14
_
2.3 Profile and Components
CAN
ERR
1
RUN
ERR
2
RUN
00
10
00
01
11
01
02
12
02
03
13
03
04
14
04
05
15
05
06
16
06
07
17
07
EXTENSION
PORT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Chapter 2 Specifications
2
1E
○
A
2E
○
A
3E
○
A
4E
○
A
5E
○
A
6E
○
A
7E
○
A
8E
○
A
9E
○
Model name
State indicators
IO indicators
COM/SSI communication port
Incremental encoder port
Ethernet communication port
CANopen communication port
CANmotion communication port
Input and output pins and symbols
A
10E
○
A
11E
○
A
12E
○
A
13E
○
A
14E
○
A
15E
○
A
16E
○
A
17E
○
SD card slot
Right-side extension module port
24V power port
Screw fixing clip
Extension module fixing clip
Left-side extension module port
Nameplate
DIN rail fixing clip
2-3
Page 15
DVP15MC11T Operation Manual
_2
MEMO
2-4
Page 16
3
Chapter 3 Specifications
Table of Contents
3.1 Function Specifications .............................................................................. 3-2
The %MW0~%MW999 devices are latched devices in which data are retained when power off. Besides, the
variables defined in the software can select Retain as its property. The capacity of latched devices is 128K
bytes.
3-5
Page 21
DVP15MC11T Operation Manual
_3
No.
Data type
Valid range
Initial value
1
BOOL
TRUE or FALSE
FALSE
2
BYTE
16#00 ~ FF
16#00
3
WORD
16#0000 ~ FFFF
16#0000
4
DWORD
16#00000000 ~ FFFFFFFF
16#00000000
5
LWORD
16#0000000000000000 ~ FFFFFFFFFFFFFFFF
16#0000000000000000
6
USINT
0 ~ +255
0
7
UINT
0 ~ +65535
0
8
UDINT
0 ~ +4294967295
0
9
ULINT
0 ~ +18446744073709551615
0
10
SINT
−128 ~ +127
0
11
INT
−32768 ~ +32767
0
12
DINT
−2147483648 ~ +2147483647
0
13
LINT
−9223372036854775808 ~ +9223372036854775807
0
−3.402823e+38 ~ −1.175495e-38,
+1.175495e-38 ~ +3.402823e+38
−1.79769313486231e+308 ~
Range:T#0ns~213503d23h34m33s709.551ms
D#Y-M-D. Range: D#1970-01-01~D#2106-02-07. Unit:
TOD#H:M:S:MS, Range:TOD#00:00:00~23:59:59.999.
is displayed. If 1 is
DT#Y-M-D-H-M-S. Range:
DT#1970-01-01-0:0:0~2106-02-07-6:28:15. Unit: s.
20
STRING
0~32000 characters
‘’
3.1.2.4 Data Types and Valid Ranges Supported
The data types and valid ranges of the variables in the software that DVP15MC11T uses are shown in the
following table.
+1.79769313486231e+308,
T#XXXXXXdXXhXXmXXsXXXms,Unit: ns.
s.
Unit: ms. If 0 is written, TOD#00:00:00
written, TOD#00:00:00.001 is displayed. If 86399999 is
written, TOD#23:59:59.999 is displayed. If 86400000 is
written, TOD#00:00:00 is displayed. If 4294967295 is
written, TOD#17:2:47.295 is displayed.
0.0
0.0
T#0ms
D#1970-01-01
TOD#00:00:00
DT#1970-01-01-0:0:0
3-6
Page 22
3_
3.2 Electrical Specifications
Item
Content
Fuse capacity
3 A/30 VDC, Polyswitch
Consumption
power
Static electricity: 8KV Air Discharge, 4KV Contact Discharge
4.6.1 Model and Specification .......................................................................... 4-6
4.6.2 Function ............................................................................................... 4-8
4-1
Page 25
DVP15MC11T Operation Manual
_4
Module
name
Input
voltage
Output
voltage
Output
current
International
Standard
1
DVP04AD-SL
Analog module
Analog input
2
DVP04DA-SL
Analog module
Analog output
4.1 System Constitution
A multi-layer industrial network can be built by means of DVP15MC11T. By using DVP15MC11T, the
network can consist of top-layer Ethernet, middle-layer CANopen and Profibus bus as well as bottom-layer
RS-485 bus which supports Modbus as follows.
The figure above illustrates the peripheral device s which are connected to various ports of DVP15MC11T in
the entire system. Refer to chapter 6 for details on the functions of communication ports.
4.2 Power Supply
Delta power modules are recommended as the power supply for DVP15MC11T. The information of Delta
power modules is shown in the following table.
No.
1 DVPPS02
2 DVPPS05 120W 5A
Phase
Single
phase
Power
48W 2A
85~264VAC 24VDC
4.3 Left-side Extension
4.3.1 Connectable Left-side Extension Module
Max. 8 high-speed extension modules can be connected to the left side of DVP15MC11T and the
connectable modules are listed in the following table.
No. Module name Module type Description
3
4-2
DVPPF02-SL
Network module Profibus communication
Page 26
Chapter 4 System Architecture
4_
Mapping
Position
Input data
length
Output data
length
7
DVP16SP11R/T
8 bits
8 bits
4.3.2 Allocation of Left-side Network Module Addresses
About Input and Output Mapping Areas of Left-side Network Modules
The input and output mapping areas of different po sitions of the left side of PLC CPU are listed as follows
when the network modules connected to the left side of DVP15MC11T serve as a slave. The position 1 is for
the first module connected to the left side of P LC CPU; the position 2 is for the second one connected to the
left side of PLC CPU and so on.
area
1
2
3
4
5
6
7
8
Refer to the operation manuals of modules for details on al location of left-side extension module mapping
areas. Pay attention to how the mapping address expression format is changed in the operation manual.
For example, the output mapping area for DVPPF02-SL is D6250~D6349. But the area address is expressed
as %MW6250~%MW6349 when the module is connected to the left of DVP15MC11T.
4.3.3 Method of Reading/Writing of Left-side Modules
The controller can read and write the data in CR regi st ers of the left-side extension modules via FROM/TO
instruction. For instance, the modules such as DVP04AD-SL and DVP04DA-SL may use FROM/TO to read
and write data in CR.
4.4 Right-side Extension
4.4.1 Connectable Right-side Extension Modules
Slim-series extension modules including digital modules, analog modules and temperature modules can be
connected to the right side of DVP15MC11T. Digital m odules can conne ct maximum 240 inp ut points and 24 0
output points. Maximum 8 analog modules can be connected. The connectable right-side extension module s
are listed in the following table.
10 DVP32SN11TN - 32 bits Pin-connector output
11 DVP08ST11N 8 bits - Digital switch
12 DVP04AD-S 4 words 13 DVP06AD-S 6 words 14 DVP04DA-S - 4 words
15 DVP02DA-S
17 DVP04PT-S
18 DVP06PT-S
19 DVP04TC-S 4 words -
-
4 words
6 words
2 words
Analog input
Analog output
Sensor
(Model: PT100)
Extension type
4.4.2Allocation of Right-side Extension Module Addresses
DVP15MC11T can connect Slim-series extension modules to its right side and max. 240 di gital input points
and 240 digital output points are connectable. Max. 8 special modules are connectable such as analog
modules, temperature modules and pulse modules. Up to 14 digi tal modul es and special m odules at mo st are
connectable to the right side of DVP15MC11T.
Input point number and output point number of right-side digital extension modules
The input point number and output point number of t he digi tal extension modules connected to the right of
DVP15MC11T start from 2.0. For example, the input point for the first digital module starts from %IX2.0 and
the output point starts from %QX2.0. It is counted as 8 points if the n um ber is less than 8.
Digital input points and output points are numbe red as below: (Octal)
About the right-side special module and serial number
The right-side extension modules such as analog modules, temperature modules and pulse
modules are regarded as special modules.
The serial number of the first special module to the right side of DVP15MC11T is 0; the serial
number of the second one is 1, and so on. Maximum 8 special modules can be connect ed. The start
address for input of the right-side special module is %MW10000 an d t he start address for output of
the right-side special module is %MW10500.
DVP15MC11T can directly read and write the right-side module parameters through the hardware
configuration interface of the software. Also, it can grant a value to an address or grant a value to a
variable with which an address is combined in a prog ram to read and write right-side module
parameters.
4.5 Connectable Servo Drives
There are many models for ASDA-A2-series servo drives. ASDA-A2-XXXX-M model supports CANopen
communication. Only ASDA-A2-XXXX-M servo drives can be used to build CANopen motion control network
through connecting the motion port of DVP15MC11T. The connection between DVP15MC11T and the servo
drive can be made with UC-CMC003-01A or UC-CMC005-01A cable through CN6 po rt.
4-4
Page 28
4_
Illustration of the servo drive model
address of the servo in the CANopen
corresponds to must be consistent with that of
0203: CANopen baud rate is 500Kbps
Chapter 4 System Architecture
Relevant servo parameter settings are shown in the following table when DVP15MC11T and the
servo drive are connected.
Parameter Explanation Setting value Explanation
P1-01
P3-00
P3-01
*1:The output directions of the torque are illustrated as below w hen the value of X is 0 and 1 respectively.
Setting the control
mode of the servo
Setting a node ID
Baud rate
X0B*1 Set as CANopen mode
Setting range:
1~24
0403
The setting of this parameter corresponds to
the node
network
The baud rate that the parameter value
DVP15MC11T.
0403: CANopen baud rate is 1Mbps
4-5
Page 29
DVP15MC11T Operation Manual
_4
0
1
P CCW()
N CW()
N CW()
P CCW()
Positive
direction
Negative
direction
The wiring figure of DVP15MC11T and ASDA-A2-XXXX-M-series servo drives
Notes:
1. Please refer to the servo user manual for the wiring of ASDA-A2-XXXX-M-series servo drives, servo
motors and encoders.
2. Choose UC-CMC003-01A or UC-CMC005-01A or UC-CMC010-01A communication cable according
to the field status.
3. There is one 120Ω terminal resistor embedded at Motion port. In the CANopen network consisting of
Motion port and servos, the other end of the network must be connected with a terminal resistor
TAP-TR01 which could be found in the packing box of DVP15MC11T.
4.6 SD Memory Card
4.6.1 Model and Specification
Model and Appearance
SD memory cards can be classified into SD, Mini S D and Mic ro SD acc ording to it s size. DVP15MC11T only
supports the standard-dimension SD.
4-6
Page 30
Chapter 4 System Architecture
4_
Class
SD
SDHC
SDXC
Capacity
32MB~2GB
4GB~32GB
32GB~2TB
Size
SD
SDHC
Mini SDHC
Micro SDHC
SDXC
Micro SDXC
SD
Mini SD
Micro SD
Specification
There are various SD card specifications on current m ark et. Except that SD cards are different in size, they
can be classified into SD, SDHC and SDXC according to its capacity . However, DVP15MC11T only supports
basic SD specification currently. The following table includes the information of SD card family members.
DVP15MC11T only supports SD and SDHC. Please make sure to purcha se t he SD card of the right
specification that DVP15MC11T supports.
SD card classification
File system
SD speed
level
* Please notice that there is a kind of MMC card which is v ery similar to SD card in appearance and thus
please differentiate them carefully during pur chase.
Before use of SD card
Write-protection function of the memory card
There is a write-protection switch for general SD cards. The data can not be written into SD card if the
switch is moved to the Lock position. Hence, please ensure that the write-protection switch of SD card
has been released correctly before SD card is used and then the write-into function can be executed in
DVP15MC11T.
FAT16/FAT32 FAT32
CLASS 2 (Min. 2MB/Sec.)
N/A
CLASS 4 (Min. 4MB/Sec.)
CLASS 6 (Min. 6MB/Sec.) CLASS 10
(Min. 10MB/Sec.)
exFAT(FAT64)
CLASS 2 (Min. 2MB/Sec.)
CLASS 4 (Min. 4MB/Sec.)
CLASS 6 (Min. 6MB/Sec.)
CLASS 10 (Min. 10MB/Sec.)
4-7
Page 31
DVP15MC11T Operation Manual
_4
Write-
protected
Released
4.6.2 Function
The main purpose of SD card is to upgrade the firmware of DVP15MC11T.
5.1.1 Profile and Dimensions of DVP15MC11T .................................................... 5-2
5.1.2 Dimensions of Left-side and Right-side Extension Modules ........................... 5-2
5.1.3 Connecting to the Left-side Extension Module ............................................ 5-3
5.1.4 Connecting to the Right-side Extension Module .......................................... 5-4
5.1.5 SD Card Installing and Removing ............................................................. 5-5
5.2 Installing the Module in the Control Cabinet .............................................. 5-7
5.2.1 Installing the Module to DIN rail .............................................................. 5-7
5.2.2 Illustration of Installation Inside the Control Cabinet ................................... 5-7
5.2.3 Environmental Temperature in the Control Cabinet ..................................... 5-7
5.2.4 Actions for Anti-interference .................................................................... 5-8
5.2.5 Dimension Requirement in the Control Cabinet .......................................... 5-8
5-1
Page 33
DVP15MC11T Operation Manual
_5
CAN
ERR
1
RUN
ERR
2
RUN
00
10
00
01
11
01
02
12
02
03
13
03
04
14
04
05
15
05
06
16
06
07
17
07
128
EXTENSION
PORT
110
68.4
116.2
96
90
33.160
5.1 Dimensions
5.1.1 Profile and Dimensions of DVP15MC11T
Unit: mm
5.1.2 Dimensions of Left-side and Right-side Extension Modules
See the following dimension figure of a left-side extension module by taking DVPCOPM-SL for example.
The length, width and height of all left-side modules are the same as that of DVPCOPM-SL.
Unit: mm
See the following dimension figure of a right-side extension module, which takes DVP04AD-S for
example. The length, width and height of all left-side modules are the same as that of DVP04AD-S.
5-2
Page 34
5_
96
90
25.2
60
Unit: mm
CAN
ERR
1
RUN
ERR
2
RUN
00
10
00
01
11
01
02
12
02
03
13
03
04
14
04
05
1 5
05
06
1 6
06
07
1 7
07
1
2
2
Chapter 5 Installation
5.1.3 Connecting to the Left-side Extension Module
Connection of DVP15MC11T and DVPDNET-SL
Pull open the extension module clips on the top left and bottom left of DVP15MC11T and
install DVPDNET-SL along four mounting holes in the four angles of DVP15MC11T as step 1
in figure 5.1.3.1.
Press the clips respectively on the top left and bottom left of DVP15MC11T to fix the module tightly
and ensure that their contact is normal as step 2 in figure 5.1.3.1.
Figure 5.1.3.1
Installing DVP15MC11T and DVPDNET-SL into DIN rail
Use standard 35mm DIN rail.
Pull open DIN rail clips of DVP15MC11T and DVPDNET-SL and then insert the two modules into
DIN rail.
5-3
Page 35
DVP15MC11T Operation Manual
_5
35mm
Din Rail
CA N
ER R
1
RU N
ER R
2
RU N
0 0
1 0
0 0
0 1
11
0 1
0 2
12
0 2
03
13
03
04
14
04
05
15
05
06
16
06
07
17
07
CA N
E RR
1
RU N
E RR
2
RU N
0 0
1 0
0 0
0 1
1 1
0 1
0 2
1 2
0 2
0 3
1 3
0 3
0 4
1 4
0 4
0 5
15
0 5
0 6
16
0 6
0 7
17
0 7
1
2
2
Press the DIN rail clips into DVP15MC11T and DVPDNET-SL to fix the two modules in DIN rail as
figure 5.1.3.2.
Figure 5.1.3.2
5.1.4 Connecting to the Right-side Extension Module
Connection of DVP15MC11T and DVP16SP11T
Pull open the extension module clips on the top right and bottom rig ht of DVP15MC11T and
install DVP16SP11T along four mounting holes in the four angles of DVP15M C11T as step 1
in figure 5.1.4.1.
Press the clips on the upper right and bottom right of DVP15MC11T to fix the module tightly
and ensure that their contact is normal as step 2 in figure 5.1.4.1
Installing DVP15MC11T and DVP16SP11T in DIN Rail
Use standard 35mm DIN rail.
Pull open DIN rail clips of DVP15MC11T and DVP16SP11T and then insert the two modules into
DIN rail.
Figure 5.1.4.1
Press the DIN rail clips into DVP15MC11T and DVP16SP11T to fix the two modules in DIN rail as
figure 5.1.4.2.
5-4
Page 36
Chapter 5 Installation
5_
35mm
Din Rail
CAN
ERR
1
RUN
ERR
2
RUN
00
10
00
01
11
01
02
12
02
03
1 3
03
04
1 4
04
0 5
1 5
0 5
0 6
1 6
0 6
0 7
1 7
0 7
CA N
ER R
1
RU N
ER R
2
RU N
0 0
1 0
0 0
0 1
1 1
0 1
0 2
1 2
0 2
0 3
1 3
0 3
0 4
1 4
0 4
0 5
15
0 5
0 6
16
0 6
0 7
17
0 7
Me mor y
card slo t
CAN
ERR
1
RUN
ERR
2
RUN
00
10
00
01
11
01
02
1 2
02
03
13
03
04
14
04
05
15
05
06
16
06
07
17
07
CAN
ERR
1
RUN
ERR
2
RUN
00
10
00
01
11
01
0 2
12
0 2
03
13
03
04
14
04
05
15
05
06
16
06
07
17
07
CAN
ERR
1
RUN
ERR
2
RUN
00
10
00
01
11
01
02
12
02
03
13
03
04
14
04
0 5
15
0 5
06
16
06
07
17
07
Figure 5.1.4.2
5.1.5 SD Card Installing and Removing
The memory card slot of DVP15MC11T
The memory card slot is seated in the right side of the front of DVP15MC11T as illustrated below.
Installing SD card
Insert an SD card to the memory card slot directly and push it to the end of the slot until hearing a click. After
the installation is finished, the SD card should be f i xed tightly. If the SD card inserted to the slot is loose, the
installation is unsuccessful. In addition, the SD card has a fool-proofing design. If the direction in which SD
card is inserted is wrong, the card will fail to reach the end of the slot. In this case, do not force to push the
SD card toward the end of the slot in order to avoid the damage to the module and SD card.
Follow the instructions in the figures below to insert the SD card in the right direction.
5-5
Page 37
DVP15MC11T Operation Manual
_5
CAN
ERR
1
RUN
ERR
2
RUN
0 0
10
0 0
01
11
01
02
12
02
03
13
03
04
14
04
05
15
05
06
1 6
06
0 7
17
0 7
CAN
ERR
1
RUN
ERR
2
RUN
00
10
00
01
11
01
02
12
02
03
1 3
03
04
14
04
05
15
05
06
16
06
07
17
07
CAN
ERR
1
RUN
ERR
2
RUN
00
10
00
01
11
01
0 2
12
0 2
03
13
03
04
14
04
05
15
05
06
16
06
07
17
07
Removing SD card
Just push the SD card to t he end of the slot so that the SD card will l oosen and rebound f rom inside the slot.
And then remove the SD card out of the slot easily.
Pull down the clips at the bottom of DVP15MC11T. T hen st i ck the h oriz ontal slots at the rear of t he modul e on
the DIN rail. Finally, push up the clips to fix the module inside the control cabinet.
5.2.2 Illustration of Installation Inside the Control Cabinet
5.2.3 Environmental Temperature in the Control Cabinet
Requirements
1. The environment inside the control cabinet for DVP15MC11T is 0°C ~ 55°C in temperature and 5 ~
95% in humidity.
2. Please do not make the installation near the equipment of high temperature.
5-7
Page 39
DVP15MC11T Operation Manual
_5
. In order to ensure that the
3. Keep enough space for ai r ventilation.
4. The fan or air conditio ner must be installed if the environment temperature is higher than 55°C.
Notes:
1. The control cabinet of the height 1.0m~2.0m is easy for installation and operation.
2. Make the installation away from the high-voltage equipment and po wer equipment.
3. The power supply in the control cabinet must be cut before installation.
5.2.4 Actions for Anti-interference
Do not install the controller in the control cabinet where there is high-voltage equipment.
Please keep at least 200mm far away from the power wire for the installation.
There should be a grounding wire for the control cabinet.
5.2.5 Dimension Requirement in the Control Cabinet
Installation Figure
DVP15MC11T has to be installed in an
enclosure
controller radiates heat normally, the space
between the controller and the enclosure has
to be larger than 50 millimeters. D > 50mm
6.8.4 Communication Speed and Co m m unication Distance ................................ 6-19
6.9 CANopen Communication Port ................................................................. 6-20
6.9.1 Functions that CANopen Comm unication Port Supports ............................. 6-20
6.9.2 Pins of CANopen Communication Port ..................................................... 6-21
6.9.3 PDO Mapping at CANopen Communication Port ........................................ 6-21
6.9.4 Network Connection at CANopen Communication Port ............................... 6-21
6.9.5 CANopen Communication Rate and Communication Distance ..................... 6-22
6-2
Page 42
Chapter 6 Wiring, Communication Setting and Network Construction
_
System circuit isolation device: The electromagnetic contactor, relay and other switch can be used as the
isolation device to prevent the system from becomin g unstable when the power supply is discontinuous.
9
1
2
3
4
5
6
7
8
DVP-PS01
DVP15MC11T
24V
0V
0V24VNL
6.1 Wiring
6.1.1 Power Supply
The power input of DVP15MC11T CPU is 24V DC inp ut. Please notice the following points when operating
DVP15MC11T.
1. The range of the power is 20.4VDC~ 28.8VDC. The power is connected to two terminals, 24V and 0V
and the grounding terminal should be in the ground connection. Please note that DVP15MC11T will
probably be damaged if the positive and negative pol arities of the power are connected wrongly.
2. The cable of 1.6mm or above is used for connecting t he ground terminal of DVP15MC11T.
3. Too long power shutdown time or power voltage drop will stop DVP15MC11T running and
communicating with the servo drive an d all o utput wi ll turn off. DVP15MC11T will resume the connection
with the servo drive when the power returns to normal.
6.1.2 Safety Circuit Wiring
The action of any device inside DVP15MC11T may affect the behavior of the external equipment under
DVP15MC11T’s control over the servo drive. Therefore, any device trouble may cause the whole automatic
control system to lose control and even result in injuries and death of personnel. For these reasons, we
suggest the following safety device should be add ed to the power input circuit.
6
Figure 3.2.1
AC power supply: 100~240VAC;50/60Hz。
Power supply circuit protection fuse
Power indicator
Emergency stop button: The button cuts off the system power supply when an accidental emergency
takes place.
Delta power module DVPPS02/24VDC (DVPPS02 is re commended for DVP15MC11T)
6-3
Page 43
DVP15MC11T Operation Manual
_6
t(us)t(us)
Input
signals
Input signal s
after being filted re
Input
Input signals
withou tfilter set
DVP15MC11T
Ground
Safety circuit
6.2 Input Point and Output Point Wiring
6.2.1 Function that Input Points Support
There are 16 input points which support external interrupt and filter functions in DVP15MC11T. In addition,
the input points can be used to capture the encoder position.
Refer to the explanation of the DMC_TouchProbe instruction for details on position capture.
The work principle of the input filter
The input filter filters short pulse signals via the 16 I points I0~I7 and I10~I17 to reduce the influence of
the input interference signals. Increasing the filter val ue can decrea se the vibration of input signal s or the
influence from external interference.
Input filter time: t=31us *(0~255). So the filter time is a multiple of 31us and 0 is the default val ue. The
input filter time can be set through the software.
When there is the set filter:
When the filter time is set to t (us), the signal is valid if the ON or OFF time of the input signal is
greater than t (us). If the ON or OFF time of input signal is less than t (us), the signal will be
eliminated. The input signal left after being filtered will be input after being d el ayed by t (us).
When there is no filter set:
6-4
Figure 6.2.1.1
The input signals have no change when no filter time is set.
Figure 6.2.1.2
Page 44
Chapter 6 Wiring, Communication Setting and Network Construction
_
S0
00
Sinking
DVP15 MC11T
24VDC
S1
10
Sinking
DVP15 MC11T
24VDC
DVP15MC11T
00()
Input
Switch
S0 C( o mmon po rt
)
24VD C
DVP15MC11T
10()I nput
Switch
S1 Comm on port()
24VD C
6.2.2 Input Point Wiring
There are two types of DC inputs, SINK and SOURCE. See the details for the wiring in the following two
modes.
Sink Mode
Under Sink mode, the simplified model is shown below and t he current flows into the common ports S0
and S1.
Figure 6.2.2.1
See the relevant wiring circuit in the following figures.
1. The input points of DVP15MC11T, 00~07 correspond to S0 as shown below.
Figure 6.2.2.2
2. The input points of DVP15MC11T, 10~17 correspond to S1 as shown below.
Figure 6.2.2.3
Source Mode
Under Source mode, the simplified mo del is illustrated below and the current flows into the co mmon port s
S0 and S1.
6
6-5
Page 45
DVP15MC11T Operation Manual
_6
S0
00
DVP15MC11T
Sourcing
24VDC
S1
10
DVP15MC11T
Sourcing
24VDC
DVP15MC11T
Switch
24VDC
S0 Common port()
00 Input()
DVP15MC11T
Switch
24VDC
S1 Common port()
10 Input()
See the wiring circuit below
Figure 6.2.2.4
Figure 6.2.2.5
Figure 6.2.2.6
6.2.3 Output Point Wiring
All transistor outputs in DVP15MC11T contain diodes for suppression which are sufficient for use in the
inductive load of smaller power and infrequent O n/Off. However, in the event of larger power and frequent
On/Off, the following suppression circuit is necess a ry for reducing interferences and preventing the transistor
output circuit from being damaged due to overv ol t age or overheat.
6-6
Page 46
Chapter 6 Wiring, Communication Setting and Network Construction
_
DC power supply of 24 V
Circuit protection fuse
Emergency stop button
Switch, inductive load
component for suppression ( is not used but when in smaller power ).
9V Zener diode, 5W ( and are both used when in bigger power and frequent On/Off.
DVP15MC11T
圖 3.2.6
6
6-7
Page 47
DVP15MC11T Operation Manual
_6
Pin
No.
Device
No.
Commun
cable
AC
drive
2
3
1
5
2
22
6
2
5
4
DVP 1 5M C11T
4
DVP 15 MC 11T
6.3 RS-485 Communication Port
6.3.1 Function that RS-485 Port Supports
The RS-485 communication port of DVP15MC11T can function as Modbus master or slave. HMI, PLC or
other Modbus master device can read and write dat a in the devices inside DVP15MC11T. The interval time
when the Modbus master accesses DVP15MC11T should exceed 5ms.
The progrom can not be downloaded via RS-485 port. RS -485 supports Modbus protocol, ASCII as well as
RTU mode. The function codes which RS-485 port supports include 0x01, 0x02, 0x03, 0x05, 0x06, 0x0F and
0x10. The station addresses that RS-485 port supports are 1~255. The broadcast function is not suppo rt ed.
Refer to appendix A for details on Modbus communic ation and Modbus device addresses.
6.3.2 Definitions of RS-485 Port Pins
DVP15MC11T’s COM/SSI port consists of 15 pins. The external por t is commonly used for RS-485
communication and SSI absolute encoder. See the table bel ow f or definitions of respective RS-485
communication port pins.
Signal Definition
11 D+ Positive pole
12 D- Negtive pole
5 SG Signal ground
6.3.3 RS-485 Hardware Connection
Example on Connection of DVP15MC11T into Modbus Network
DVP15MC11T is connected to Modbus network via RS -485.
COM/SSI
6-8
Device
name
1 2 3 4 5 6
Modbus
master
ication
VFD-CM08 DVP15MC11T
motor
Servo drive
Page 48
Chapter 6 Wiring, Communication Setting and Network Construction
_
Terminal
resistor
Shielded
cable
Baud rate
9600, 19200, 38400, 57600, 115200
Mode
ASCII
RTU
7,E,1
7,E,2
7,N,1
7,N,2
8,E,1
8,E,2
7,O,1
7,O,2
8,E,1
8,E,2
8,N,1
8,N,2
8,N,1
8,N,2
8,O,1
8,O,2
8,O,1
8,O,2
Figure 19
D+
D-
SG
D+
D-
SGSG
D+ D-
3
4
1
2
2
3
4
RS-485 Wiring:
Explanation of numbers
Master Slave
Notes:
1. Terminal resistors with the value of 120Ω are recommended to connect to both ends of the bus.
2. To ensure high communication quality, please use the shielded t wisted pair cable (20AWG).
3. When the internal voltages of two device s are different , make SG (Signal Ground) of the two devi ces
connected with each other to balance their SG voltages and make the communication more stable.
Communication Format that RS-485 S upports
RS-485 communication port supports ASCII or RTU communi cati on f ormats an d the supported baud rate can
be up to 115200bps.
Communication
format
6
6-9
Page 49
DVP15MC11T Operation Manual
_6
(Y/N)
Read one single or multiple
word register values.
Word
register
Write one single bit register
value.
Write one single word register
value.
Word
register
Write multiple word register
values.
Word
register
code
6.3.4 Supported Function Codes and Exception Codes
Modbus Function Codes:
1. The function codes that RS-485 port of DVP15MC11T supports are listed in the following t able.
Whether
Function
code
0x01 Read output bit register values. N 256 Bit register
0x02 Read bit register values. N 256 Bit register
0x03
0x05
0x06
0x0F Write multiple bit register values. Y 256 Bit register
0x10
2. The exception codes that RS-485 port of DVP15MC11T supports are listed in the following table.
Exception
response
Indication
to
broadcast
N 100
Y 1 Bit register
Y 1
Y 100
Indication
Max. number of
writable/readable
registers
Available
register
0x01
0x02 Unsupportive Modbus address
0x03
Unsupportive function code
The data length is out of the valid range.
6-10
Page 50
Chapter 6 Wiring, Communication Setting and Network Construction
_
Pin
No.
6.4 RS-232 Communication Port
6.4.1 Function that RS-232 Port Supports
The RS-232 communication port of DVP15MC11T can function as Modbus master or slave. HMI, PLC or
other Modbus device can read and write data in the devices inside DVP15MC11T. The progrom can not be
downloaded through RS-232 port. RS-232 supports Modbus protocol, ASCII mode as well as RTU mode. The
function codes which RS-232 port supports include 0x01, 0x02, 0x03, 0x05, 0x06, 0x0F and 0x10. The station
addresses that RS-232 port supports are 1~255. The broadcast function is not supported.
Refer to appendix A for details on Modbus communic ation and Modbus device addresses.
6.4.2 Definitions of RS-232 Port Pins
DVP15MC11T’s COM/SSI port consists of 15 pins. See the table be l ow f or def i ni tions of respective RS-232
communication port pins.
Signal Definition
3 Tx Transmitting data
9 Rx Receiving data
5 GND Signal ground
6.4.3 RS-232 Hardware Connection
COM/SSI
6
6-11
Page 51
DVP15MC11T Operation Manual
_6
7,O,1
7,O,2
8,E,1
8,E,2
8,N,1
8,N,2
8,N,1
8,N,2
8,O,1
8,O,2
8,O,1
8,O,2
Max. number of
registers
Read one single or multiple
word register values.
Word
register
Write one single bit register
value.
Write one single word register
value.
Word
register
Write multiple bit register
values.
Write multiple word register
values.
Word
register
RS-232 port is conne ct ed to HMI when DVP15MC11T functions as a slave.
The communication format that RS-232 supports
Baud rate
Mode ASCII
Communication
format
9600, 19200, 38400, 57600, 115200
7,E,1
7,E,2
7,N,1
7,N,2
RTU
8,E,1
6.4.4 Supported Function Codes and Exception Codes
Modbus Function Codes:
1. The function codes that RS-232 port of DVP15MC11T supports are listed in the following table.
Function
code
0x01 Read output bit register values. 256 Bit register
0x02 Read bit register values. 256 Bit register
0x03
0x05
Indication
writable/readable
100
1 Bit register
Available
register
8,E,2
0x06
0x0F
0x10
2. The exception codes that RS-232 port of DVP15MC11T supports are listed in the following table.
Exception code Indication
0x01 Unsupportive function code
0x02 Unsupportive Modbus address
0x03 The data length is out of the valid range.
6-12
1
256 Bit register
100
Page 52
Chapter 6 Wiring, Communication Setting and Network Construction
_
Pin
No.
2
DATA-
Negative pole of absolute encoder data
6
CLK+
Power ground of the absolute encoder
6.5 SSI Absolute Encoder Port
6.5.1 Function of SSI Absolute Encoder
DVP15MC11T’s COM/SSI port is a 15-pin D-SUB interface which can be used to connect SSI encoder. In
addition, the port also includes the 5V (400m A) power out put which provides the power supply to the encoder.
Users can create an SSI encoder axis to control the motion of slave axes according to the number of pulses
received via the encoder port.
6.5.2 Definitions of SSI Port Pins
DVP15MC11T’s COM/SSI port is a 15-pin D-SUB interface. See the table below for definitions of respective
SSI communication port pins.
Signal Definition
1 DATA+
14 CLK-
8 GND
15 5V
Positive pole of absolute encoder data
Positive pole of absolute encoder clock
Negative pole of absolute encoder clock
Absolute encoder power
6.5.3 SSI Absolute Encoder Hardware Connection
Illustration of SSI Absolute Encoder Wiring
COM/SSI
6
Specification for SSI Absolute Encoder Interface Wiring
SSI encoder interface of DVP15MC11T and the wiring method are shown below.
6-13
Page 53
DVP15MC11T Operation Manual
_6
Note: The power supply for COM/SSI port of DVP15MC11T is 5V power.
When VCC = 5V, connect the power voltage VCC of SSI encoder to pin 15 of COM/SSI interface and 0V
of SSI encoder to pin 8 of COM/SSI interface.
When VCC ǂ 5V, the power is supplied to SSI encoder alone according to the actual power voltage of
the SSI encoder which is connected.
Specification for SSI Absolute Encoder Communication Cable
Please use the shielded pair-twisted cable for CLK+, CLK-, DATA+ and DATA- signal transmission.
6-14
Page 54
Chapter 6 Wiring, Communication Setting and Network Construction
_
Pin No.
Signal
Definition
1
A1+
he first
2
A1-
10
B1+
11
B1-
encoder 3 A2+
9
A2-
6
B2+
12
B2-
13
Z2+
Power supply for the second
encoder 8 0V
0V shared by the two encoders
Outer
shell
6.6 Incremental Encoders
6.6.1 Function of Incremental Encoder
DVP15MC11T’s incremental encoder port is a 15-pin D-SUB interface which can connect two independent
incremental encoders. Both of the two encoder ports support differential signal input with maximum work
frequency of 1MHz (250Kx 4 = 1MHz) per one. Additi onal l y, the port integrates two 5V (400mA) power
outputs to supply power to the two encoders. Users can create an incremental encoder axis for either of the
two encoders to control the motion of slave axes according to the number of pulses received at the encoder
port.
6.6.2 Definition of Incremental Encoder Port Pins
DVP15MC11T’s incremental encoder port is a 15-pin interface. See the table below for definitions of
respective encoder communication port pins.
Differential signals of t
incremental encoder
4 Z1+
5 Z1-
15 +5V
Power supply for the first
14 Z2-
7 +5V
metal
Differential signals of the
second incremental encoder
Shielding layer
Encoder
6
6-15
Page 55
DVP15MC11T Operation Manual
_6
6.6.3 Incremental Encoder Hardware Connection
Illustration of Incremental Encoder Wiring
Specification for Incremental Encoder Port Wiring
The incremental encoder interface of DVP15MC11T and the wiring method are shown below.
Note: The power supply for Encoder port of DVP15MC11T is 5V power.
When VCC = 5V, connect the power voltage VCC of an encoder to pin 15 of DVP15MC11T’s Encoder
interface and 0V of the encoder to pin 8 of Encoder interface.
When VCC ǂ 5V, the power is supplied to the enc oder alone according to the actual power voltage of
the encoder which is connected.
6-16
Page 56
Chapter 6 Wiring, Communication Setting and Network Construction
_
Positive pole for transmiting
data
Negative pole for transmitting
data
3
Rx+
Positive pole for receiving data
4
Reserved
Reserved
5
Reserved
Reserved
data
LAN 2LAN 1
1234567812345678
6.7 Ethernet Communication Port
6.7.1 Function that Ethernet Communication Port Supports
There are two independent Ethernet communication ports in DVP15MC11T, which both support Modbus TCP
protocol. Of the two Ethernet ports, LAN1 port can only work as a slave and LAN2 port can work as a master
or a slave in the Ethernet network. Either of them can accept a maximum of 4 master access at a time and
their IP addresses need be set separately. HMI, PLC or other Modbus TCP master device can read and write
data in the devices inside DVP15MC11T via the two E thernet ports. For details on Modbus TCP
communication, refer to appendix A.
Both of the two Ethernet ports can be used to downlo ad configuration files, execution files and CAM files.
They also support automatic jumper function an d users do not need to additionally select wire jumper when
the Ethernet port is connected to the computer or switchboard. Besides, they can automatically detect the
transmission speed of 10Mbps and 100 Mbps as well.
The Ethernet communication port supports Ethernet/IP protocol, Ethernet/IP slaves only as well as maximum
200 bytes of input and maximum 200 bytes of output
6.7.2 Pins of Ethernet Communication Port
DVP15MC11T has two independant Ethernet ports supporting Modbus TCP protocol with the pins shown in
the following table. The IP addresses of the two Et hernet ports need be set respectively. The default IP
address for LAN1 is 192.168.0.1 and the default IP address for LAN2 is 192.168.1.1.
Pin No. Signal Definition
1 Tx+
2 Tx-
6 Rx7 Reserved Reserved
8 Reserved Reserved
Negative pole for receiving
6.7.3 Network Connection of Ethernet Communication Port
6
6-17
Page 57
DVP15MC11T Operation Manual
_6
Max. number of
registers
Read one single or multiple word register
values.
Exception
code
12345678
CAN2
Motion
1
CAN_H
Signal+
2
CAN_L
Signal-
3
CAN_GND
0 VDC
6
Reserved
Reserved
7
CAN_GND
0 VDC
8
Reserved
Reserved
6.7.4 Function Codes that Ethernet Communication Port Supports
Below is the list of the function codes and exception response codes which are sup port ed when
DVP15MC11T’s Ethernet communication port s LA N1 and LAN2 use Modbus TCP protocol.
Function code Indication
0x02 Read bit register values. 256 Bit register
0x03
0x05 Write one single bit register value. 1 Bit register
0x06 Write one single word register value. 1 Word register
0x0F Write multiple bit register values. 256 Bit register
0x10 Write multiple word register values. 100 Word register
response
0x01
0x02 Unsupportive Modbus address
0x03
Unsupportive function code
The data length is out of the valid range.
Indication
writable/readable
100 Word register
Available
register
6.8 Motion Communication Port
6.8.1 Function that Motion Communication Port Supports
Motion communication port is used for motion control. Motion instructions control a servo via the
communication port. SDO command can be sent out through t he comm unicatio n port. But users can not carry
out the PDO configuration through the communicati on port.
6.8.2 Pins of Motion Communication Port
The following table lists the pins of Motion communica tion port which is used for the motion control.
Pin No. Signal Definition
4 Reserved Reserved
5 Reserved Reserved
6-18
Page 58
Chapter 6 Wiring, Communication Setting and Network Construction
_
(Bit/second)
6.8.3Motion Network Connection
Note: DVP15MC11T is embedded with one 120 Ohm terminal resistor in its Motion interface.
6.8.4Communication Speed and Communication Distance
The transmission distance of the bus network d epends on the t ransmission speed of Motion b us. Below is the
table where the maximum communication distances correspond to different transmission speeds.
Transmission speed
Max. communication
distance (Meter)
500K 1M
100 25
6
6-19
Page 59
DVP15MC11T Operation Manual
_6
6.9 CANopen Communication Port
6.9.1 Functions that CANopen Communication Port Supports
CANopen communication port can be used as CANopen network master or as a slave of other master.
As a master, CAN1 communication port supports following functions.
NMT error control is used t o watch if so me slave is of fl ine. NMT error control includes Heartbeat and
Node Guarding. The module supports Heartbeat function.
The number of RxPDOs: max. 200, data length: max. 1000 bytes
The number of TxPDOs: max. 200, data length: max. 1000 bytes
Maximum 8 TxPDOs and 8 RxPDOs are configured for each slave.
PDO transmission type: supporting event trigger, time trigger, synchronous and cyclic, synchronous
and acyclic
PDO mapping: every PDO can map 32 parameters at most.
The data type that CAN communication port support s
Supports standard expedited SDO transmission mode;
Supports Auto SDO function; capable of sending a maxi m um of 30 Auto SDOs to each slave;
Supports reading and writing of slave data by using SDO service in PLC ladder diagram program.
SYNC producer, range 0-65535ms
Multiple devices perform an action synchronously t hrough SYNC message.
As the connection interface between Delta CANopen Builder configuration software and
CANopen network, the configuration software can be directly used to confi gure the network throu gh
DVPCOPM-SL module
Supports the CANopen communication speeds: 20K, 50K, 125K, 250K, 500K, 1Mbps
As a slave, CAN1 communication port supports following functions.
Standard CANopen protocol DS301V4.02
NMT slave service
NMT Error control
Supporting Heartbeat Protocol error control instea d of Node Guarding error control
PDO service
The number of RxPDOs: max. 8, data length: max. 64 bytes
The number of TxPDOs: max .8, data length: max. 64 bytes
PDO transmission type: event trigger, time trigger, synch ronous and cycli c, synchronou s and acyclic
SDO service
Supporting standard expedited SDO transmission mode.
6-20
Page 60
Chapter 6 Wiring, Communication Setting and Network Construction
_
Pin No.
Signal
Definition
1
CAN_H
Signal+
2
CAN_L
Signal-
3
CAN_GND
0 VDC
4
Reserved
Reserved
5
Reserved
Reserved
6
Reserved
Reserved
7
CAN_GND
0 VDC
8
Reserved
Reserved
120 Ω
120Ω
CAN1nodeCAN2node
CAN3node
CAN_H
CAN_L
12345678
CAN1
CANopen
6.9.2 Pins of CANopen Communication Port
DVP15MC11T’s CANopen communication port is used in the standard CANopen communication and its pin
descriptions are listed in the following table.
6.9.3 PDO Mapping at CANopen Communication Port
The input mapping area is %MW5000~%MW5499 and output mapping area is %MW5500~%MW5999 when
DVP15MC11T works as CANopen master.
The input mapping area is %MW5000~%MW5031 and output mapping area is %MW5500~%MW5531 when
DVP15MC11T works as CANopen slave.
6.9.4 Network Connection at CANopen Communication Port
CANopen Bus Terminals and Network Topology
Both of the two ends of a CANopen network need be connected with the terminal resistors of 120Ω to
enhance the stability of CANopen communication. See the illustration of a basic CANopen network topology
below.
6
6-21
Page 61
DVP15MC11T Operation Manual
_6
Transmission speed
(Bit/second)
Max. communication
distance (Meter)
CANopen Bus Network Topology
1> Delta’s standard cables such as UC-DN01Z-01A thick cable, UC-DN01Z-02A thin cable and
UC-CMC010-01A thin cable are recommended to use in construction of a CANopen network. The
communication cable must keep away from the power cable.
2> The terminal resistor of 120Ω should be connected between CAN_H and CAN_L of two respective
ends of the network. Users can purchase Delta termi nal resistor, TAP-TR01.
6.9.5 CANopen Communication Rate and Communication Distance
The transmission distance of CANopen bus network depends on the transmission speed of CANopen bus.
Below is the table where the maximum communicatio n dist ances correspond to different transmission
speeds.
7.1.2 Priority levels of Tasks ............................................................................ 7-4
7.1.3 Watchdog for a Task .............................................................................. 7-6
7.1.4 Motion Instructions for Each Task Type ..................................................... 7-7
7.2 The Impact of PLC RUN or STOP on Variables and Devices ......................... 7-8
7.3 Relationship between Motion Program and Motion Bus .............................. 7-8
7.4 Synchronization Cycle Period Setting ......................................................... 7-9
7-1
Page 63
DVP15MC11T Operation Manual
_7
IOUser program
Remaining
interval
Time interval b etween tasks
Cyclic
task
System
processing
Priority
High
Low
System
processing
IOUser program
Remaining
interval
Time interval between tasks
System
processing
7.1 Tasks
Tasks are a series of functions of processing specified execution co nditions and executi on sequences f or
I/O refresh and user program execution.
A task is defined with a name, priority level and type. Tasks can be classified into three types, the cyclic
task, freewheeling task and event-triggered task.
For every task, a group of POUs which are triggered by the task can be specif i ed. If the task is executed
in current period, the POUs will be processed withi n a peri od of time.
The priority level and task type determine the execution sequence of the t ask.
A watchdog can be assigned for every task.
7.1.1 Task Types
Three task types that DVP15MC11T supports
1. Cyclic
2. Freewheeling
3. Triggered by event
Maximum 24 tasks that DVP15MC11T supports are respectively described below.
Cyclic task
The cyclic task will be executed cyclically according to the set time interval.
The way the cyclic task is executed
IO: IO means I/O refresh. I/O includes local I/O points and left-side and right-side extension
module data and CANopen data. The data can be specified to refresh before the set task is
executed. If not specified, the data will be refreshed during the system processing.
User Program: User Program stands for user program execution which is based on the
execution sequences of programs assigned in a tas k.
Remaining interval:
When the controller is to perform system processing, the low-priority task is executed first if any
and then the system processing is performed.
System processing:
The controller will perform the system processing which includes Ethernet, RS232 and RS485
communication processing after all task requests are completed.
The four terms mentioned above have the same meanings as those in the following sections.
Note: If the cycle set for a cyclic task is too short, after the user program execution is finished, the
task execution will be repeated immediately and no low-priority task or no system processing
will be executed. In this case, the executi on of all tasks will be affected. If the watchd og is set for
the task, the watchdog timeout will occur, the c ontroll er will ent er E rror status an d user p ro gram
execution will stop. If the watchdog is not set for the task, the controller will not be able to
perform system processing and the problems such as communication timeout will take place.
7-2
Page 64
Chapter 7 Introduction of Axis Parameters
_
IOUser program
Task exe cution time 1
Freewhe eling
tas k
Priority
High
Low
System
processing
IOUser program
Task execution time 2
System
processing
System
processing
IOUser program
Task execution time
Task triggered
by event
System
processing
Priority
High
Low
System
processing
Task execution
condition met
Freewheeling task
Freewheeling task: The task will be handled as soon as the program running starts. The task will be
restarted automatically in the next cycle after one execution cycle ends.
The way a freewheeling task is executed
Note: There is no fixed execution time for the free wheeling task. So the values of task execution t im e
1 and task execution time 2 may not be equal in the above f i gure.
Task triggered by event
Event task: An event task is executed once just when the specified event happens. The timing for
execution of an event task depends on the tim ing for oc curring of the event an d t he priority level of t he
event task.
The way an event task is executed
The event tasks for option contain following few types.
- Motion event (Motion control task)
- Rising edge or falling edge of local input points (I0~I7 and I10~I17)
- CANopen SYNC signal
- Z pulse rising edge of incremental encoder 1 or encoder 2
The condition for the second-time execution is ignored when the conditi on required for execution of the
event task is met again before the event task is compl eted. The period before an event task is completed
is the course while the event task is being executed or is waiting to be executed.
Motion Event
7
Motion port of the controller sends out SYNC signal and the task is triggered.
Note: The motion task is set to priority 1 by default. The priority lev el can be modified. However, make
sure that there is enough time for execution of the motion task within CANopen SYNC period.
SYNC cycle setting should meet following conditions.
There must be enough time for execution of the program defined in a motion task. There must be sufficient time f or PDO and SD O data excha nge bet ween the con troller and servo
drive.
7-3
Page 65
DVP15MC11T Operation Manual
_7
IO
User
program
Time interval between tasks
Cyclic task
()Priority 1
System
processing
Priority
High
Low
IO
User
program
Time interval between tasks
Task execution
condition met
IO
System
processing
Pause
User
program
IO
User
program
PauseIO
User
program
Fre ewh eelin g task
()Priority 2
Task execution
finished
Task execution
condition met
Task execution
finished
Task execution
condition met
Task execution
finished
Task execution
condition met
Task execution
condition met
Task execu tion tim e
Task execu tion time
Task e xecut ion time
Task execution
finished
12
3
56
7
8
4
System
processing
User
program
System
processing
Insufficient SYNC period time will result in t he cont rolled device to fail to receive SYNC signal and
unpredictable operations. Refer to section 7.3 for SYNC period setting.
Rising edge or falling edge of local input points (I0~I7,I10~I17)
The task is triggered when rising edge or falling edge of input point sign al i s dete cted. The res ponse t ime
of input points can be set through the filter functio n.
CANopen bus SYNC message
The task is triggered when SYNC signal is produced a t CA Nopen port of the controller.
Z pulse rising edge for incremental encoder 1
The task is triggered when the rising edge of Z signal of the first encoder is detected at Encoder port of
the controller.
Z pulse rising edge for incremental encoder 2
The task is triggered when the rising edge of Z signal of the second encoder is d etected at Encoder port of
the controller.
7.1.2 Priority levels of Tasks
The controller can not perform multiple tasks sim ul taneously. Every task must be given a priority level and
they are executed according to preset priorities. Prio rity level can be set within the range of 1 to 24. (1 is the
highest priority and 24 is the lowest priority.) The priority level of each task must be unique. The task with
higher priority takes priority to perform. The high-priority task can interrupt the low-priority task.
We recommend that the task which has a high req uirement of real t ime should be given a high priority and the
task which has a low requirement of real ti me should be given a low priority. The priority of the default motion
control task built in the CANopen Builder software i s 1 by default.
The principle for multi-task execution
When the execution conditions of two tasks are met simultaneously (Cyclic task and
freewheeling task)
1E A The execution conditions for the cyclic task and freewheeling task are met at t he same time. The
○
A
2E A When the cyclic task execution is finished, the freewheeling task execution sta rt s.
○
cyclic task is executed first because of its high er priority.
7-4
Page 66
Chapter 7 Introduction of Axis Parameters
_
Task trigg ered by
eve nt
()P rio rit y 1
System
pro ces sing
Priorit y
High
Low
IO
User
program
IO
User
program
Fre ewheelin g task
()Priority 2
Task execution
condition met
Task execution
finished
Cyclic task
(Prior ity 3)
User
program
Pau se
Paus e
The event task has not been triggered
Task execution time
Task execution
finished
Task execution
condition met
IO
User
program
Time interval between tasksTime interval between tasks
IO
User
program
System
processi ng
IO
User
program
Task execution time
IO
User
program
IO
User
program
Task execution
condition met
Task execution
finished
Task execution
condition met
Pause
Task
execution
finished
Task execution
condition met
Task execution
finished
Task execution
condition met
Task execution
finished
Task execution
condition met
Task executi on t im e
Task execution time
Task execution time
Time interval between tasks
System
proces sing
System
processi ng
12
3
45
6
89
10
11
12
7
3E A The controller will execute the system processing if there is no other task after the execution of
○
the freewheeling task is completed.
A
4E A The execution of the freewheeling task continues since the high-priority cyclic task request has
○
not arrived.
A
5E A The cyclic task interrupts the freewheeling task execution and the controller executes the cyclic
○
task because of the arrival of the high-priori ty cyclic task request during the exec ution of the
freewheeling task.
A
6E A The controller continues to execute the part of the low-priority freewheeling task, which has not
○
been executed yet when the execution of the cycli c t ask is completed.
A
7E A When the execution of the freewheeling task is completed, the controller executes the system
○
processing due to no other task request.
A
8E A When the system processing is completed, the execution of the freewheeling tas k co ntinues due
○
to no high-priority cyclic ta sk request.
When three tasks are executed in mixture (Event task, Cyclic task and Freewheeling task)
A
1E A When the conditions for execution of the freewheeling task and cyclic task a re both met, the
○
freewheeling task is executed first because the p riority of the freewheeling task is higher.
A
2E A The cyclic task execution starts when the freewheeling task execution is completed.
○
A
3E A When the cyclic task execution is completed, the controller executes the system processing due
○
to no other task request.
A
4E A The freewheeling task is executed when the system processing is completed.
○
A
5E A When the freewheeling task execution is completed, the controller executes the system
○
processing due to no other task request.
A
6E A The freewheeling task is executed when the system processing is completed.
○
A
7E A The freewheeling task execution continues because the freewheeling task has a higher priority
○
than the cyclic task although the execution condition for the cyclic t ask is met. And the cyclic t ask
waits to execute.
7
7-5
Page 67
DVP15MC11T Operation Manual
_7
8E A The event task interrupts the freewheeling task execution because the event task has the highest
○
priority and the execution condition for the event t ask is met.
A
9E A The controller continues to execute the part of the low-priority freewheeling task, which has not
○
been executed yet when the event task execution is c om pl eted.
A
10E A The freewheeling task execution is compl et ed. The controller executes the cyclic task since the
○
cyclic task request in ⑦ is not responded yet.
A
11E A The cyclic task execution is completed. The controller executes the system pr ocessing due to no
○
other task request.
7.1.3 Watchdog for a Task
Every task can be given a watchdog. When the tas k execution time exceeds the set watchdog time, the
controller will enter Error state and the user program execution will stop.
Watchdog time: The longest time allowed for the exe cuti on of a task
7-6
Page 68
Chapter 7 Introduction of Axis Parameters
_
Task type
Event-triggered task
Motion
task
Non-motion
task
7.1.4 Motion Instructions for Each Task Type
Here is the table of motion instructions for different t ask types. “V” means the motion instruction can be
executed for the task type and “–” means the motion instruction can not be executed for the task type.
Classification Instruction name
MC_Power V
MC_MoveAbsolute V
MC_MoveRelative V
MC_MoveAdditive V
MC_MoveSuperimposed V
MC_Haltsuperimposed V
MC_MoveVelocity V
MC_Stop V
MC_Halt V
MC_Home V
Single-axis
instructions
MC_Reset V
MC_ReadStatus V V V V
MC_ReadActualPosition V V V V
MC_SetOverride V
MC_SetPosition V
Cyclic
task
Freewheeling
task
Multi-axis
instructions
CANopen
MC_ReadAxisError V V V V
MC_ReadMotionState V V V V
DMC_SetTorque V
DMC_ReadParameter_Motion V V V V
DMC_WriteParameter_Motion V
DMC_TouchProbe V
MC_CombineAxes V
MC_GearIn V
MC_GearOut V
MC_CamIn V
MC_CamOut V
DMC_WriteParameter_CANopen V V V V
DMC_ReadParameter_CANopen V V V V
7
7-7
Page 69
DVP15MC11T Operation Manual
_7
7.2 The Impact of PLC RUN or STOP on Variables and
Devices
When DVP15MC11T is switched from RUN to STOP, variables and devices keep current values. When
DVP15MC11T is switched from STOP to RUN, users can select one option that the values of variables and
non-latched devices are cleared or retained as below.
The values of variables and non-latched devices are cleared.
When DVP15MC11T is switched from STOP to RUN, the values of v ariables and non-latched dev ices are
cleared and restored to the initial values. If variables and non-latched devices have no initial values, the
values of variables and non-latched areas will be restored to the default value 0.
The values of variables and devices are retained.
When DVP15MC11T is switched from STOP to RUN, variables and devices keep current values.
7.3 Relationship between Motion Progr am a nd Motion Bus
DVP15MC11T makes the synchronization achieved through issuing SYNC signal in the method of
broadcasting while more than one servo is connected with DVP15MC11T. The servo drives receive the
control data sent by DVP15MC11T. But the control data received will not be effective right away until the
SYNC signal comes to the servos so as to realize the sy nchronization of multiple servos.
In the following figure, DVP15MC11T is connected with 4 servo drives and T is the synchronization period.
The four servo drives receive control data at different tim e (t1, t2, t3 and t4) but the control data received are
not effective at once. As the servo drives receive SYNC signal, the control dat a will go ef fective i mmediate ly.
7-8
Page 70
Chapter 7 Introduction of Axis Parameters
_
7.4 Synchronization Cycle Period Setting
The synchronization cycle is a very important param eter for the bus motion control. If the synchronization
period is not set properly, the servo may display AL303/AL302/AL301 fault alarm in communication or the
servo could not run normally.
Let’s introduce the constitution of the synchronization period first.
The motion control program is scanned at the v ery beginning of the synchronization period, and then the
control messages got through calculation are sent to all axes. So we can regard the synchronization period
as the time for execution of motion control program plus the ti me for communicat ion between DVP15MC an d
all servos.
The time for execution of motion control program is the maximum execution time of motion event tasks with
the unit: μs (microsecond) which can be viewed by double clicks on Task on the CANopen Builder software
interface. 1000μs (microseconds) are 1ms (millisecond).
The value is rounded up to an integer in the actual app l i cat ion. For example, the maximum time for program
execution is 2567μs=2.5ms, in this case, we can regard 3ms as the time for program execution.
It is about 0.5ms for the communication between DVP15MC and a servo.
We recommend that the value is rounded up to an integer in application. For example, 5 servos are
configured in an application. And the communication time is 5*0.5ms=2.5ms. In this case, we can regard
3ms as the time for communication.
Therefore, we can get the formula: a synchronizatio n time (ms) = an integer obtained by rounding up the
value of maximum program execution time (ms) + time for the communication between DVP15MC11T and
all servos (ms) +1 (time reserved for a program change) (ms).
If the running time of the program is increased too much af ter the program changes, the preset
synchronization time will not fit any more. So the reserved ti m e should be set to 1~2ms.
For example, the maximum program execution time i s 1634μs and there are totally 5 servos in the
application. The reserved time for a program chan ge is 1ms.
A synchronization cycle period= 2ms (obtained by rounding up the maximum program execution time,
1634μs) + 3ms (obtained by rounding up 5*0.5) +1ms (reserved for a program change)=6ms
Note:
The above method is used for getting an estimated time, which is suitable for most applications. If you need
a more precise synchronization cycle period, the actu al time can be recalculated by omitting the reserved
time after the application development is completed.
7
7-9
Page 71
DVP15MC11T Operation Manual
_7
Memo
7-10
Page 72
8
Chapter 8 Logic Instructions
Table of Contents
8.1 Table of Logic Instructions ......................................................................... 8-4
8.2 Explanation of Logic Instructions ............................................................... 8-7
8.2.1 EN and ENO .......................................................................................... 8-7
RS Reset–Priority Instruction
SR SET–Priority Instruction
SEMA Claim-Priority Instruction
MOVE Move
MoveBit Move One Bit
Data Movement
Instructions
Comparison Instructions
Timer Instructions
Counter Instructions
TransBit Move Bits
MoveDigit Move Digits
Exchange Data Exchange
Swap Swap Bytes
LT Less Than
LE Less Than or Equal
GT Greater Than
GE Greater Than or Equal
EQ Equal
NE Not Equal
TON On-Delay Timer
TOF Off-Delay Timer
TP Pulse-type Timer
CTU Up-Counter
CTD Down-Counter
Math Instructions
8-4
CTUD Up-Down Counter
ADD Addition
SUB Subtraction
MUL Multiplication
DIV Division
MOD
MODREAL
MODTURNS
Remainder
Page 76
Chapter 8 Logic Instructions
8_
Real-Number Modulo Division to
Get the Unsigned Modulo Value
Instruction set Instruction code Name
MODABS
ABS Absolute value
DegToRad Degrees to Radians
RadToDeg Radians to Degrees
SIN Sine
COS Cosine
TAN Tangent
ASIN Arc sine
ACOS Arc cosine
ATAN Arc tangent
LN Natural Logarithm
LOG Base-10 Logarithm
Bit String Instructions
Shift Instructions
SQRT Square Root
EXP Natural Exponential Operation
EXPT Exponentiation
RAND Random Number
TRUNC Truncate
FLOOR Real-Number Floor
FRACTION Real-Number Fraction
AND Logical AND
OR Logical OR
NOT Bit Reversal
XOR Logical Exclusive OR
XORN Logical Exclusive NOR
SHL Shift Bits Left
SHR Shift Bits Right
ROL Rotate Bits Left
Selection Instructions
ROR Rotate Bits Right
MAX Maximum
MIN Minimum
SEL Selection
MUX Multiplexer
8-5
Page 77
DVP15MC11T Operation Manual
_8
Instruction set Instruction code Name
LIMIT Limiter
BAND Deadband Control
ZONE Dead Zone Control
BOOL_TO_*** Bool Conversion Group
Bit strings_TO_*** Bit String Conversion Group
Data Type Conversion
Instructions
CANopen
Communication
Instructions
String Processing
Instructions
Integers_TO_*** Integer Conversion Group
Real numbers_TO_*** Real Number Conversion Group
Times,dates_TO_*** Time and Data Conversion Group
Text strings_TO_*** String Conv ersion Group
DMC_ReadParameter_CANopen Read a slave parameter value
DMC_WriteParameter_CANopen Write a slave parameter value
CONCAT Concatenate String
DELETE Delete String
INSERT Insert String
LEFT / RIGHT Get String Left/Right
MID Get String
REPLACE Replace String
LEN String Length
FIND Find String
FROM Read CR value
Immediate Refresh
Instructions
8-6
TO Write Value to CR
ImmediateInput Immediate Refresh of Input Points
ImmediateOutput Immediate Refresh of Output Points
Page 78
Chapter 8 Logic Instructions
8_
Applicable
model
Parameter
name
Input/
Output
Input
signal
Output
signal
R_TRIG
ENENO
CLK
Q
R_TRIG_instance
8.2 Explanation of Logic Instructions
8.2.1 EN and ENO
If the used instruction has EN and EN O input parameters and the value of EN is FALS E (0), the functio n of the
instruction will not be performed and the output of the instruction will not be updated. However, if the value of
EN of the instruction is TRUE (1), the function of t he instruction will be performed and the output will be
updated.
The output state of ENO is consistent with that of EN. When EN is TRUE, ENO changes to TRUE. When EN
is FALSE, ENO changes to FALSE.
When the instruction is a function block (FB) and its E N changes fr om TRUE to FALS E after the FB instruction
is executed, the execution of the FB instructio n will continue, but the output values of the FB instruction will
not be updated.
8.3 Sequence Input /Output Instructions
8.3.1 R_TRIG
FB/FC
FB
R_TRIG is used for the rising edge trigger. DVP15MC11T
Parameters
Meaning
CLK
Q
Boolean
BOOL
BYTE
Explanation
Description Vali d range
Input Rising edge trigger signal TRUE or FALSE
Output Output for a period TRUE or FALSE
Bit string Integer
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
String
Real
number
INT
DINT
LINT
REAL
LREAL
Time, date
TIME
DATE
TOD
DT
STRING
CLK
Q
Note:
The symbol ● indicates that the parameter is all owed t o connect to the variabl e or constant of the data type.
●
●
Function Explanation
When CLK of R_TRIG changes from FALS E to TRUE, Q output is TRUE for only one period. In other
circumstances, Q is FALSE.
Precautions for Correct Use
Q will have no output until the rising edge signal at CLK i s det ected.
8-7
Page 79
DVP15MC11T Operation Manual
_8
R_TRG
R_TRIG
R_TRG_EN
BOOL
FALSE
R_TRG_CLK
BOOL
FALSE
R_TRG_Q
BOOL
1
R_TRIG
ENENO
CLKQ
R_TRG
R_TRG_ EN
R_TRG_CLKR_TRG_Q
R_TRG_CLK
R_TRG_Q
Programming Example
The variable table and program
Variable name Data type Initial value
Timing Chart:
8-8
Page 80
8_
8.3.2 F_TRIG
Applicable
model
Parameter
name
Input/
Output
Input
signal
Output
signal
Variable name
Data type
Initial value
F_TRG
F_TRIG
F_TRG_EN
BOOL
FALSE
F_TRG_CLK
BOOL
FALSE
F_TRG_Q
BOOL
F_TRIG
ENENO
CLK
Q
F_TRIG_instance
1
F_TRIG
ENENO
CLKQ
F_TRG
F_TRG_EN
F_TRG_CLK
F_TRG_Q
Chapter 8 Logic Instructions
FB/FC
FB
F_TRIG is used for the falling edge trigger. DVP15MC11T
Parameters
Meaning
CLK
Q
Boolean
BOOL
BYTE
Explanation
Description Vali d range
Input Falling edge trigger signal TRUE or FALSE
Output Output for a period TRUE or FALSE
Bit string Integer
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
String
Real
number
INT
DINT
LINT
REAL
LREAL
Time, date
TIME
DATE
TOD
DT
STRING
CLK
Q
Note:
The symbol ● indicates that the parameter is all owed t o connect to the variabl e or constant of the data type.
●
●
Function Explanation
When CLK of F_TRIG changes from TRUE to FALSE, Q out put is TRUE for only one period. In other
circumstances, Q is FA L SE.
Precautions for Correct Use
Q will have no output until the falling edge signal at CLK is detected.
Programming Example
The variable table and program
8-9
Page 81
DVP15MC11T Operation Manual
_8
F_TRG_CLK
F_TRG_Q
Timing Chart:
8-10
Page 82
8_
8.3.3 RS
Applicable
model
Parameter
name
Input/
Output
signal
signal
Variable name
Data type
Initial value
RS1
RS
RS1_EN
BOOL
FALSE
RS1_SET
BOOL
FALSE
RS
ENENO
SET
Q
RS_instance
Q
Reset
Chapter 8 Logic Instructions
FB/FC
FB
RS is used for giving priority to the Reset input. DVP15MC11T
Parameters
Meaning
SET
Reset
Q
Input
Input
Output
signal
Boolean
Explanation
Description Vali d range
Input
Input
Output Output signal TRUE or FALSE
Bit string Integer
SET signal TRUE or FALSE
Reset signal TRUE or FALSE
String
Real
number
Time, date
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
SET
Reset
Q
Note:
The symbol ● indicates that the parameter is all owed t o connect to the variabl e or constant of the data type.
●
●
●
Function Explanation
When the SET and Reset inputs of RS are both TRUE, Reset is given the priority.
Programming Example
The variable table and program
RS1_Reset BOOL FALSE
RS1_Q
BOOL
8-11
Page 83
DVP15MC11T Operation Manual
_8
1
RS
ENENO
SETQ
Reset
RS1_EN
RS1_SET
RS1_Reset
RS1_Q
1RS
RS1_ SET
RS1_Reset
RS1_Q
Case 1
Case 2
Timing Chart:
Case 1: When RS1_SET is TRUE, the output RS1_Q is TRUE. If RS1_Reset is TRUE, RS1_Q is
FALSE.
Case 2: When RS1_Reset is TRUE, RS1_Q is always FALSE.
8-12
Page 84
8_
8.3.4 SR
Applicable
model
Parameter
name
Input/
Output
signal
Input
signal
Input
SR
ENENO
SET
Q
SR_instance
Q
Reset
Chapter 8 Logic Instructions
FB/FC
FB
SR is used for giving priority to the Set input. DVP15MC11T
Parameters
Meaning
SET
Reset
Q
Input
Input
Output
signal
Boolean
Explanation
Description Vali d range
SET signal TRUE or FALSE
Reset signal TRUE or FALSE
Output Output signal TRUE or FALSE
Bit string Integer
String
Real
number
Time, date
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
SET
Reset
Q
Note:
The symbol ● indicates that the parameter is all owed t o connect to the variabl e or constant of the data type.
●
●
●
Function Explanation
When the SET and Reset inputs of RS are both TRUE, SET is given the priority.
8-13
Page 85
DVP15MC11T Operation Manual
_8
SR1
SR
SR1_EN
BOOL
FALSE
SR1_SET
BOOL
FALSE
SR1_Reset
BOOL
FALSE
SR1_Q
BOOL
1
SR
ENENO
SETQ
1
Reset
SR1_EN
SR1_SET
SR1_Reset
SR1_Q
SR
SR1_SET
SR1_Reset
SR1_Q
Case 1
Case 2
Programming Example
The variable table and program
Variable name Data type Initial value
Timing Chart:
Case 1: When SR1_SET is TRUE, SR1_Q is TRUE. When SR1_Reset is TRUE, SR1_Q is FALSE.
Case 2: SR1_SET is given the priority when SR1_SET and SR1_Reset ar e both TRUE.
8-14
Page 86
8_
8.3.5 SEMA
Applicable
model
SEMA is used for giving priority to CLAIM. (The output will be valid in t he
second period.)
Parameter
name
Input/
Output
Input
signal
Input
Input
signal
Input
Output
signal
BYTE
LWORD
SEMA1
SEMA
SEMA1_EN
BOOL
FALSE
SEMA1_CLAIM
BOOL
FALSE
SEMA1_RELEASE
BOOL
FALSE
SEMA
ENENO
CLAIM
Q
SEMA_ instance
RELEASE
Chapter 8 Logic Instructions
FB/FC
FB
Parameters
Meaning
CLAIM
RELEASE
Q
Boolean
Explanation
Description Vali d range
Set signal TRUE or FALSE
Reset signal TRUE or FALSE
Output Output signal TRUE or FALSE
Bit string Integer
Real
number
DVP15MC11T
String
Time, date
CLAIM
RELEASE
Q
Note:
The symbol ● indicates that the parameter is all owed t o connect to the variabl e or constant of the data type.
BOOL
●
●
●
WORD
DWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
Function Explanation
When CLAIM of SEMA is TRUE, Q is TRUE. When RELEASE is TRUE, Q is FALSE. When CLAIM and
RELEASE are both TRUE, Q is TRUE.
Precautions for Correct Use
When CLAIM is TRUE, Q will be TRUE in the second period.
Programming Example
The variable table and program
Variable name Data type Initial value
8-15
Page 87
DVP15MC11T Operation Manual
_8
Variable name
Data type
Initial value
SEMA1_Q
BOOL
1
SEMA
ENENO
CLAIMQ
SEMA1
RELEAS E
SEMA1_EN
SEMA1_CLAIM
SEMA1_RELEASE
SEMA1_Q
SEMA1_CLAIM
SEMA1_RELEASE
SEMA1_Q
Case 1Case 2
Timing Chart:
Case 1: When SEMA1_CLAIM is TRUE, SEMA1_Q is TRUE in the second period. When
SEMA1_RELEASE is TRUE, SEMA1_Q changes to FALSE immediately.
Case 2: When SEMA1_CLAIM is TRUE, SEMA1_Q is TRUE in the second period no matter
whether SEMA1_RELEASE is TRUE or FALSE.
8-16
Page 88
8_
8.4 Data Movement Instructions
Applicable
model
Parameter
name
Input/
Output
Input
signal
Depends on the data type of the variable
that the input parameter is connected to.
Depends on the data type of the variable
to.
MOVE_EN
BOOL
TRUE
MOVE_In
INT
200
Out1
INT
200
MOVE
ENENO
InOu t
1
MOVE
ENENO
InOut
MOVE_EN
MOVE_InOut1
8.4.1 MOVE
Chapter 8 Logic Instructions
FB/FC
FC
Move is used for moving data. DVP15MC11T
Parameters
Meaning
In
Boolean
BOOL
Output
signal
BYTE
Out
Explanation
Description Vali d range
Input Move Source
Output Move destination
Bit string Integer
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
that the output parameter is connected
Real
number
INT
DINT
LINT
REAL
LREAL
Time, date
TIME
DATE
String
TOD
DT
STRING
In
Out
Note:
The symbol ● indicates that the parameter is all owed t o connect to the variabl e or constant of the data type.
● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
Function Explanation
The Move instruction moves the value of move source In to move destination Out.
The instruction supports the transmission of the values of array elements.
Precautions for Correct Use
The data type of Out must be the same as that of In. Otherwise, an error will occur in the compiling of
the software.
Programming Example
The variable table and program
Variable name Data type Current value
8-17
Page 89
DVP15MC11T Operation Manual
_8
Applicable
model
Parameter
name
Input/
Output
Input
signal
Depends on the data type of the variable
that the input parameter is connected to.
Input
signal
Depends on the data type of the variable
that the input parameter is connected to.
Input
signal
Depends on the data type of the variable
that the input parameter is connected to.
signal
that the input parameter is connected to.
MoveBit
ENENO
In
InPos
InOutPos
InOut
8.4.2MoveBit
FB/FC
FC
MoveBit is used for sending one bit in a string. DVP15MC11T
Parameters
Meaning
In
InPos
InOutPos
InOut
Input
Boolean
BOOL
Explanation
Description Vali d range
Input Move source
Input Move source bit
Input Move destination bit
Input Move destination
Bit string Integer
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
Depends on the data type of the variable
String
Real
number
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
Time, date
TIME
DATE
TOD
DT
STRING
In
InPos
InOutPos
InOut
Note:
The symbol ● indicates that the parameter is all owed t o connect to the variabl e or constant of the data type.
●●●●●●●●
●
●
●●●●●●●●
Function Explanation
MoveBit moves one bit value from the bit position InPos in move sour ce In to the bit position InOutPos in
move destination InOut.
Precautions for Correct Use
The instruction has no ouput but input.If the value of InPos exceeds the range of the data type of In, the movement of one bit is not
performed.
If the value of InOutPos exceeds the range of the data type of InOut, the movement of one bit is not
8-18
performed.
Page 90
Chapter 8 Logic Instructions
8_
Variable name
Data type
Current value
MovBit_Inpos
UINT
2
MovBit_InOutPos
UINT
3
MovBit_Inout
USINT
8
00
bit0bit7
MovBit_In
01000000MovBit_InOut
011111
bit0bit7
MovBit_InPos=U INT#2
MovBit_InOutPos=UINT#3
1
MoveBit
ENENO
In
InPos
InOutPos
InOut
MovBit_EN
MovBit_In
MovBit_InOutPos
MovBit_InPos
MovBit_InOut
Programming Example
The variable table and program
MovBit_EN BOOL TRUE
MovBit_In
USINT 31
Move Figure
8-19
Page 91
DVP15MC11T Operation Manual
_8
Applicable
model
Parameter
Input/
signal
that the input parameter is connected to.
Input
Depends on the data type of the variable
Input
signal
Input
Depends on the data type of the variable
that the input parameter is connected to.
Input
signal
Input
Depends on the data type of the variable
that the input parameter is connected to.
Input
signal
Input
Depends on the data type of the variable
that the input parameter is connected to.
TransBit
ENENO
In
InPos
InOutPos
Size
InOut
8.4.3TransBit
FB/FC
FC
TransBit is used for sending one or more bits in a bit st ring. DVP15MC11T
Parameters
name
In
InPos
InOutPos
Size
Meaning
Input
signal
Explanation
Output
Description Vali d range
Input Move source
Input Move source bit
Move destination bit
Number of bits to move
Depends on the data type of the variable
that the input parameter is connected to.
InOut
Move destination
In
InPos
InOutPos
Size
InOut
Boolean
Bit string Integer
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
●●●●●●●●
●
●
●
●●●●●●●●
Real
number
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
Time, date
TIME
DATE
TOD
String
DT
STRING
Note:
The symbol ● indicates that the parameter is all owed t o connect to the variabl e or constant of the data type.
Function Explanation
TransBit moves data of Size bits from the bit InPos in move source In to the bit InOutPos in move
destination InOut.
Precautions for Correct Use
The instruction has no output but input.The movement can not be performed if the value of Size is 0.
8-20
Page 92
Chapter 8 Logic Instructions
8_
Variable name
Data type
Current value
TrsBit_EN
BOOL
TRUE
TrsBit_In
USINT
63
TrsBit_InPos
UINT
1
TrsBit_InOutPos
UINT
2
TrsBit_Size
UINT
2
TrsBit_Inout
USINT
12
bit0bit7
TrsBit_In
0100000TrsBit_InOut
11111
bit0bit7
TrsBit_InPos=UINT #1
TrsBit_InOutPos= UINT#2
111
1
TrsBit_Size=UINT#2
1
TransBit
ENENO
In
InPos
InOutPos
Size
InOut
TrsBit_EN
TrsBit_In
TrsBit_InOutPos
TrsBit_InPos
TrsBit_Size
TrsBit_InOut
If the value of InPos exceeds the range of the data type of In, the movement is not performe d. If the value of InOutPos exceeds the range of the data type of InOut, the movement is not
performed.
If the value of Size exceeds the range, the movement is not performed.
Programming Example
The variable table and program
Move Figure
8-21
Page 93
DVP15MC11T Operation Manual
_8
Applicable
model
Parameter
Input/
Input
signal
Depends on the data type of the variable
that the input parameter is connected to.
Input
signal
Position of digit in In to
move
Depends on the data type of the variable
that the input parameter is connected to.
signal
receive the digit
Depends on the data type of the variable
that the input parameter is connected to.
Input
signal
Depends on the data type of the variable
that the input parameter is connected to.
Input
signal
Depends on the data type of the variable
MoveDigit
ENENO
In
InPos
InOutPos
Size
InOut
8.4.4MoveDigit
FB/FC
FC
MoveDigit is used for moving digits. DVP15MC11T
Parameters
name
In
InPos
InOutPos
Size
Meaning
Input
Output
Input
Input
Input
Input
Explanation
Description Vali d range
Move source
Position of digit in Out to
Number of digits to move
InOut
Input
Move destination
that the input parameter is connected to.
In
InPos
InOutPos
Size
InOut
Boolean
Bit string Integer
BOOL
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
●●●●●●●●
●
●
●
●●●●●●●●
Real
number
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
Time, date
TIME
DATE
TOD
String
DT
STRING
Note:
The symbol ● indicates that the parameter is all owed t o connect to the variabl e or constant of the data type.
Function Explanation
MoveDigit moves Size digits from InPos of move source In to InOutPos of move destination InOut.
Precautions for Correct Use
The instruction has no output but input parameter.The move can not be performed if the value of Size is 0. If the value of InPos exceeds the range of the data type of In, the move will not be performed.
8-22
Page 94
Chapter 8 Logic Instructions
8_
Variable name
Data type
Current value
MovDigt_EN
BOOL
TRUE
MovDigt_Size
UINT
2
MovDigt_Inout
UDINT
16#2300
00101100
In=16#1234
Bit0
Bit3Bit4Bit7
01001000
Bit8Bit11Bit12Bit15
Digit 0
Digit 1
Digit 2Digit 3
00000000
Bit0Bit3Bit4Bit7
11000100
Bit8Bit11Bit12Bit15
Digit 0Digit 1Digit 2
Digit 3
......
..................
..................
......
InPos=1
Size=2
InOutPos=2
InOut=16#2300
1
MoveDigit
ENENO
In
InPos
InOutPos
Size
InOut
MovDigt_EN
MovDigt_In
MovDigt_InOutPos
MovDigt_InPos
MovDigt_Size
MovDigt_InOut
If the value of InOutPos exceeds the range of the data type of InOut, the movement is not
performed.
If the value of Size exceeds the range, the movement is not performed.
Programming Example
The variable table and program
MovDigt_In
MovDigt_InPos
MovDigt_InOutPos
Move Figure
UDINT 16#1234
UINT 1
UINT 2
8-23
Page 95
DVP15MC11T Operation Manual
_8
Applicable
model
Parameter
Input/
signal
that the input parameter is connected to.
Input
signal
Depends on the data type of the variable
that the input parameter is connected to.
Variable name
Data type
Current value
Exchg_EN
BOOL
TRUE
Exchg_In1
INT
30
Exchg_In2
INT
10
Exchange
ENENO
In1
In2
1
Exchange
ENENO
In1
In2
Exchg_EN
Exchg_In1
Exchg_In2
8.4.5Exchange
FB/FC
FC
Exchange is used for the data exchange. DVP15MC11T
Parameters
name
In1
In2
Meaning
Input
Boolean
BOOL
Explanation
Output
Input Data to exchange
Input Data to exchange
Bit string Integer
BYTE
WORD
DWORD
LWORD
USINT
Description Vali d range
UINT
UDINT
Depends on the data type of the variable
String
Real
number
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
Time, date
TIME
DATE
TOD
DT
STRING
In1
In2
Note:
The symbol ● indicates that the parameter is all owed t o connect to the variabl e or constant of the data type.
● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
Function Explanation
The Exchange instruction exchanges the val ues of In1 and In2.
Precautions for Correct Use
The data types of In1 and In2 must be same.
The instruction has no output but two input parameters.
Programming Example
The variable table and program
8-24
Page 96
8_
Exchange Figure
In1
Input parameter Input value
Exchg_In1
In2
Exchg_In2
In1
Exchg_In2
In2
Exchg_In1
Exchange
Input value
Input parameter
The values of In1 and In2 are exchanged.
While the Exchange instruction is executed, the val ues of Exchg_In1 and Exchg_In2 are
always exchanged.
Chapter 8 Logic Instructions
8-25
Page 97
DVP15MC11T Operation Manual
_8
Applicable
model
Parameter
name
Input/
Output
Input
signal
Output
signal
Variable name
Data type
Current value
Swap_EN
BOOL
TRUE
Swap_In
UINT
32768
Out1
UINT
128
Swap
ENENO
InOu t
1
Swap
ENENO
InOut
Swap_EN
Swap_InOut1
8.4.6Swap
FB/FC
FC
Swap is used for swapping the high byte and low byte of a 16-bit value. DVP15MC11T
Parameters
Meaning
In
Out
Boolean
BOOL
Explanation
Description Vali d range
Input Data to swap 0~65535 for word data type
Output Result 0~65535 for word data type
Bit string Integer
BYTE
WORD
DWORD
LWORD
USINT
UINT
UDINT
String
Real
number
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
Time, date
TIME
DATE
TOD
DT
STRING
In
Out
Note:
The symbol ● indicates that the parameter is all owed t o connect to the variabl e or constant of the data type.
● ●
● ●
Function Explanation
The Swap instruction exchanges the high byte and low byte of the value of In and the result is output to
Out.
Programming Example
The variable table and program
8-26
Page 98
8_
Swap Figure
010 00 00 0 00 0 00 0 00
bit0bit15
Swap_In
High byteLow byte
010 0 00 00000 0 00 0 0
Out1
High byteLow byte
bit0bit15
Chapter 8 Logic Instructions
8-27
Page 99
DVP15MC11T Operation Manual
_8
Applicable
model
Parameter
name
Input/
Output
Depends on the data type
Depends on the data type
connected to.
LT
ENENO
In1Out
InN
...
.
..
8.5 Comparison Instructions
8.5.1 LT
FB/FC Explanation
FC
LT is used for a less-than comparison of two or more v ariables or constants. DVP15MC11T
Parameters
In1 to InN
Out
Boolean
Comparison
data
Comparison
result
Meaning
The number of comparison data can be
increased or decreased through the
Input
Output Comparison result
Bit string Integer
programming software. Maximum: 8.
Minimum: 2. That is N=2~8.
Description Valid ran ge
of the variable that the
input parameter is
connected to.
of the variable that the
output parameter is
String
Real
number
Time, date
BOOL
BYTE
In1
to
InN
Out
Note:
The symbol ● indicates that the parameter is allowed to connect to the variable or constant of the data type.
● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ●
●
Function Explanation
LT is used for a less-than comparison of two or more variables or co nstants. if In1<In2<…<InN, Out
is TRUE. Otherwise, Out is FALSE.
The input parameters In1~InN are allowed to be the variables of different data types in this
instruction when the data types of input variables are not BOOL, TIME , DATE, TOD and STRING.
When the data type of one input variable is one of BOOL, TIME, DATE, TOD and STRING, input
parameters In1~InN are all required to be of the data type. For example, if the data type of In1 is
TIME, the data type of In2~InN must be TIME. O t herwise, an error will occur in the compiling of the
software.
8-28
WORD
DWORD
LWORD
USINT
UINT
UDINT
ULINT
SINT
INT
DINT
LINT
REAL
LREAL
TIME
DATE
TOD
DT
STRING
Page 100
Chapter 8 Logic Instructions
8_
Variable name
Data type
Current value
LT_EN
BOOL
TRUE
LT_In1
INT
-10
LT_In2
UINT
50
LT_In3
DINT
100
Out1
BOOL
TRUE
LT_EN
BOOL
TRUE
LT_In1
INT
20
LT_In2
UINT
10
LT_In3
DINT
100
Out1
BOOL
FALSE
Variable name
Data type
Current value
LT_EN
BOOL
TRUE
LT_In1
TIME
T#1ms
LT_In2
TIME
T#50ms
Out1
BOOL
TRUE
1
LT
ENENO
In1Out
In3
In2
LT_EN
LT_In1
LT_In3
LT_In2
Out1
1
LT
ENENO
In1Out
In2
LT_EN
LT_In1
LT_In2
Out1
Precautions for Correct Use
The input variables are not allowed to omit. An error will occur duri ng the compi ling of the soft ware if
any input variable is omitted. But the output variabl e is allowed to omit.
The data type of output variables must be BOOL. Otherwise, an error will occur during the compil ing
of the software.
Programming Example
The data types of LT_In1, LT_In2 and LT_In3 are INT, UINT and DINT respectively and the
data type of Out1 is BOOL.
Out1 changes to TRUE when the values of LT_In1, LT_In2 and LT_In3 are -10, 50 and 100
respectively and LT_EN changes to TRUE as shown in Variable 1.
Out1 changes to FALSE when the values of LT_In1, LT_In2 and LT_In3 are 20, 10 and 100
respectively and LT_EN changes to TRUE as shown in Variable 2.
Variable 1
Variable 2
Variable name Data type Current value
The Program
The data types of LT_In1 and LT_In2 are both TIME and the data type of Out1 is BOOL.
Out1 changes to TRUE when the values of LT_In1 and LT_In2 are T#1ms and T#50ms respectively
and LT_EN is TRUE.
The variable table and program
8-29
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.