L011957 - MK Series HMI PLC Combo User Manual
L011957 - MK Series HMI PLC Combo User Manual
L011957 - MK Series HMI PLC Combo User Manual
User Manual
CONTENT
Chapter 1 General Introduction....................................................................................................3
1.1 Summary.............................................................................................................................3
1.2 Product List.........................................................................................................................3
1.3 Environmental Condition................................................................................................... 3
1.4 specification........................................................................................................................ 5
1.4.1 display specification.....................................................................................................5
1.4.2 PLC specification......................................................................................................... 5
1.4.3 Appearance................................................................................................................7
1.4.4 Dimension................................................................................................................. 8
2
Kinco-MK
User Manual
1.1 Summary
Kinco MK series combines the superior technology of Kinco HMI and PLC and the
Internet of Things (M-IoT). It is an economical all-in-one machine product that supports the
Internet of Things functions launched by Kinco Company.
The Kinco MK series all-in-one HMI-PLC retains the high cost performance of the
Kinco HP series of all-in-one machines, but adopts a high-performance CPU and the new
DTools software technology platform for programming the HMI, so as to support more rich
picture components and functions of the new software. In addition, combined with the Kinco
M-IoT technology platform it provides remote download, pass through PLC communication
over the network, VNC remote monitoring, equipment management and other advanced
remote operation and maintenance functions. This will provide more value for our users.
4
Kinco-MK
User Manual
1.4 specification
5
Kinco-MK
User Manual
Digital IO DI 16*DC24V,DO 14*Transistor
6
Kinco-MK
User Manual
Interrupt 2,0.1ms time base.
Counter 256
RTC Yes. The difference is less than 5min/month at 25℃.
1.4.3 Appearance
Indicator light
DI
DO
AO
AI
DC24V
1.4.4 Dimension
MK070E-33DT
Dimension 204*150*38.55mm
Cutout size 192*138mm
2.1 Functions
8
Kinco-MK
User Manual
In PC, the programming port of HMI-PLC will be a virtual COM port, you must install the
driver for it when using in PC first time. After finishing installing software Kincobuilder ,
there will be different drivers in the path “\Kincobulider V***\Drivers\” for different versions
of Windows system. Right now it can only support Windows XP, Windows 7,Windows 8 and
Windows 10. When connecting programming cable to HMI-PLC and PC first time, Windows
system will detect new hardware and mention installing driver, users can install the driver
according to the version of Windows.
When the first time using USB cable to download Program on MK series.The USB driver is
needed installation.The installation step please refer to Kinco HPbuilder [Help]-[User
Manual]--Chapter 2.10
9
Kinco-MK
User Manual
And please refers to 2.2 Wiring diagram to know about their pin assignment.
10
Kinco-MK
User Manual
battery (Replaceable but un-rechargeable) for data retentive. When CPU loses power, the data
in the RAM will be maintained by the lithium battery, and the retentive ranges will be left
unchanged at next power on.Through [Hardware] configuration in KincoBuilder, user can
select the type of data retentive (Such as V,C area) and the range. The life of battery is 5 years
and the retaining duration is 3 years at normal temperature.
Data backup is that CPU provides an E2PROM to store data permanently. At power on, the
CPU will restore the data from E2PROM into RAM to execute.
Note: Because E2PROM has a writing limit of 1 million times, users should avoid to write
data into data backup area frequently.
There are 448 bytes in V area for data backup (VB3648--VB4095),the data in this area will
save in E2PROM automatically.HMI-PLC sets VB3648--VB3902 as data backup by default,if
user needs to use VB3903--VB4095 for data backup,it needs to configure in 【PLC hardware
configuration】.The configuration interface is as following figure.
After CPU power off, the real-time clock can be maintained by lithium battery. The life of
battery is 5 years and the retaining duration is 3 years at normal temperature.
11
Kinco-MK
User Manual
The HMI real time (RTC) funcation can provide real-time time/calendar,user can change RTC
from the system Setting , or through register LW10000 - LW10006 to modify time. MK070E
RTC can be kept after power off.If precise time is required, user also can set HMI RTC
synchronization with PLC CPU. Please refer to DTOOLS use manual chapter 2.7 RTC Set
(2.7.3 System time and PLC Time synchronization)..
The backup battery is removable, user can replace new battery by themselves
when the battery is empty.
12
Kinco-MK
User Manual
MK070E-33DT
13
Kinco-MK
User Manual
2.3 Dimension
MK070E
DI Specifications
Input type Source/Sink
Rated input voltage DC 24V (Max. 30V)
Rated input current 3.5mA@24VDC
Max input voltage of logic 0 [email protected]
Minimum input voltage of logic 1 Common channel:[email protected]
14
Kinco-MK
User Manual
Common channel: 15μs; HSC channel:
Input filter time delay
10μs(50k)
· off-to-on
Common channel: 60μs; HSC channel: 6μs
· on-to-off
(50k)
Isolation between input and internal
circuit Opt-electrical isolation
· Mode 500VAC/1 min
· Voltage
DO Specifications(Transistor type)
Output type Source
Rated power supply voltage DC24V, allowance range:
DC20.4V—DC28.8V.(Same as power supply)
Output current per channel Rated current:200mA @24VDC
Instant impulse current per channel 1A,less than 1s
Output leakage current Max.0.5цA
Output impedance Max. 0.2Ω
Output delay
· off-to-on Common channel: 15μs; HSC channel:
· on-to-off
10μs(50k)
Common channel: 35μs; HSC channel: 6μs(50k)
Protection:
·Reverse polarity protection of power No
supply Yes
·Inductive load protection Yes
·Short-circuit protection Yes, less than 10s.
·Reverse polarity protection of output
Isolation between output and internal
circuit Opto-electrical isolation
· Mode 500VAC/1 min
· Voltage
15
Kinco-MK
User Manual
MK070E AI/AO Specification
Parameter
AI 2
Rated Power supply DC 24V,≥100mA
Signal 4-20mA、1-5V、0-20mA、0-10V
Resolution 12 bits
Accuracy 0.3% F.S.
Current signal input could not over 24mA,
Signal limitation
Voltage signal input Could not over12V
Speed(each channel) 15 times/sec
Current mode:<=250Ω
input resistance
Voltage mode:>4MΩ
AO 1
Rated Power supply DC 24V ≥100mA
Signal 4-20mA、1-5V、0-20mA、0-10V
Resolution(including symbol bit) 12 bits
Accuracy 0.3% F.S.
Speed(each channel) 15 times /s
Current mode:Maximum 500Ω
Output resistance
Voltage mode :Minimum 10KΩ
HMI programming software: Kinco DTools. Download link for HMI software
http://en.kinco.cn
17
Kinco-MK
User Manual
18
Kinco-MK
User Manual
19
Kinco-MK
User Manual
3.2 PLC
3.2.1 introduction
Kinco MK series use Kincobuilder programming software and same instructions, same as HP
series.And MK070E improve some functions, pls reference the manual.
Pls reference Kincobuilder software 【Help】or download K5/K2 software for most functions.
https://en.kinco.cn/Download/D_enUserManual/PLC/Software%20manualfor%20K5_2019051
6.zip
When connecting programming cable to MK series and PC first time, Windows system will
detect new hardware and mention installing driver, users can install the driver according to the
version of Windows.
These two files are in the path ..\Win7\windows, users can copy these two files to following
20
Kinco-MK
User Manual
path and install the driver again.
Copy mdmcpq.inf to C:\WINDOWS\INF.
Copy usbser.sys to C:\WINDOWS\SYSTEM32\DRIVERS\
21
Kinco-MK
User Manual
22
Kinco-MK
User Manual
23
Kinco-MK
User Manual
24
Kinco-MK
User Manual
(2) It will show “settings” when mouse at the right side of Window, then click “settings”
25
Kinco-MK
User Manual
27
Kinco-MK
User Manual
(5)Click advanced options
28
Kinco-MK
User Manual
29
Kinco-MK
User Manual
(8) This is the picture after computer restarting.
Choose 7 to forbid driver signature inforcement, then PC restart.
(9)Re-install PLC driver based on Window guidance. Choose driver files in the Win8
It will show below information, choose “ install this driver software anyway”
31
Kinco-MK
User Manual
All high speed counter can support maximum 32 PV and support 32 “CV=PV” interrupts. PV
can be set as relative value or absolute value. If it is relative value, then the "CV = PV"
interrupt allows the selection to occur cyclically.
32
Kinco-MK
User Manual
HSC1
Mode Description I0.4 I0.6 I0.3 I0.2
0 Single-phase up/down counter
1 with internal direction control: Reset Clock
2 SM47.3 Reset Start
3 Single-phase up/down counter Direction
Clock
4 with external direction control Reset Direction
6 Two-phase counter Clock
Clock Up
7 with up/down clock inputs Reset Down
9
A/B phase quadrature counter Clock A Clock B
10 Reset
HSC 2
Mode Description I0.4 I0.5
Single-phase up/down counter
0 Clock
with internal direction control:SM57.3
9 A/B phase quadrature counter Clock A Clock B
33
Kinco-MK
User Manual
HSC 3
Mode Description I0.6 I0.7
Single-phase up/down counter
0 Clock
with internal direction control:SM127.3
9 A/B phase quadrature counter Clock A Clock B
34
Kinco-MK
User Manual
Preset value comparison interrupt
(“CV=PV”) cyclic execution.
SM141.2 SM151.2 SM161.2 SM171.2 0=No. 1=Yes.
Note:Only valid when preset value is relative
value.
SM141.3 SM151.3 SM161.3 SM171.3 Reserved
Update multiple PV segment and preset
SM141.4 SM151.4 SM161.4 SM171.4
value:0=No. 1=Yes
SM141.5 SM151.5 SM161.5 SM171.5 Reset interrupt variable:0=Yes. 1=No.
SM141.6 SM151.6 SM161.6 SM171.6 Reserved
SM141.7 SM151.7 SM161.7 SM171.7 Reserved
HSC0 HSC1 HSC2 HSC2 Description
Starting value of preset value table ( It is
SMW142 SMW152 SMW162 SMW172 offset corresponding to VB0),it must be odd
value.
It needs to pay attention that not all the control bits of the control byte is suitable for all
operation mode. For example, “Counting direction” and “Write counting direction in HSC” can
be only used in mode 0,1and 2 (Single-phase up/down counter with internal direction
control),if the operation mode is with external direction control, then these two bits will be
ignored.
The control byte, current value and preset value are 0 by default after power on.
Status Byte
In SM area, each high-speed counter has a status byte, which indicates the current status
of high speed counter.
HSC0 HSC1 HSC2 HSC3 Description
SM36.0 SM46.0 SM56.0 SM126.0 Reserved
SM36.1 SM46.1 SM56.1 SM126.1 Reserved
SM36.2 SM46.2 SM56.2 SM126.2 Reserved
Fault in multiple PV value
SM36.3 SM46.3 SM56.3 SM126.3
table:0=No,1=Yes
SM36.4 SM46.4 SM56.4 SM126.4 Reserved
Current counting direction:
SM36.5 SM46.5 SM56.5 SM126.5
0 = Down; 1= Up
Current value equal to preset value:
SM36.6 SM46.6 SM56.6 SM126.6
0 = No,1 = Yes
35
Kinco-MK
User Manual
Current value greater than preset value:
SM36.7 SM46.7 SM56.7 SM126.7
0 = No,1 = Yes
HSC0 HSC1 HSC2 HSC3 Description
SMB140 SMB150 SMB160 SMB170 Current PV segment No.(Start from 0)
type
0 BYTE Quantity of PV
1 DINT First PV
5 DINT Second PV
… DINT …
36
Kinco-MK
User Manual
(1) All the offset value are the offset bytes related to the table.
(2) When it is set as relative value,then the absolute value of PV data must be greater than
1,or PLC will consider the segment of multiple PV finish and count the number of PV
according to this(Higher priority than setting quantity of PV).
When it is set as absolute value,the difference between two adjacent PV’s absolute
value must be greater than 1,or PLC will consider the segment of multiple PV finish
and count the number of PV according to this(Higher priority than setting quantity of
PV).
(3) “CV=PV” interrupts must execute in sequence,it means that after the counter reaches
the first PV and executes interrupt,then it will compare with the second PV and so
forth.
(4) PV must be set reasonably.Here takes relative value as example,if it is positive
counting,PV must be greater than 0,otherwise the “CV=PV”interrupt will never
execute.If it is negative counting,PV must be less than 0,otherwise the
“CV=PV”interrupt will also never execute.
Relative value and absolute value
In the control byte of each high speed counter, there is one control bit which is used to set PV
as relative value or absolute value.
For HSC0,the control bit is SM141.1.
If SM141.1 is 0,it means PV is absolute value. When counting value is equal to PV,it will
execute “CV=PV” interrupt. For example,if it sets 3 PV values,such as 1000,2000 and
3000,then when counting value reaches 1000,it will execute the first “CV=PV”interrupt. When
the counting value reaches 2000,it will execute the second “CV=PV” interrupt and so forth.
If SM141.1 is 1,it means PV is relative value.If counter takes current counting value as
reference,when the value it continues to count is equal to PV,it will execute “CV=PV”
interrupt.For example,if it sets 3 PV values,such as 10,1000 and 1000,and the current counting
value is 100 before HSC starts,then when the counting value reaches 110,1110 and 2110,it will
execute corresponding“CV=PV” interrupt.
“CV=PV”interrupt cyclic execution
“CV=PV”interrupt cyclic execution is only valid when PV is set as relative value.
If SM141.0 is 0,it means “CV=PV” interrupt only executes once.When all interrupts finish
execution,then it will stop.If it needs to execute again, it must modify the related registers and
execute HSC instruction again.
37
Kinco-MK
User Manual
If SM141.0 is 1,it means “CV=PV” interrupt is cyclic execution.When the last PV interrupt
finishes execution,PLC will take the current counting value as reference to calculate new value
for PV interrupt,then it will start to compare the counting value and execute “CV=PV”
interrupt and so forth.This process will execute cyclically.
For example,it sets 3 PV values,such as 10,1000 and 1000.And the current counting value is
100 before HSC starts,then the value for every interrupt is as following table.
Current Interrupt times First value Second value Third value
counting value
100 1st time 110 1110 2110
2110 2nd time 2120 3120 4120
4120 3rd time 4130 5130 6130
… N time … … …
39
Kinco-MK
User Manual
For position control instruction,MK070E have one position output channel for every high
speed pulse output .Meanwhile one position enable control bit in SM area.
40
Kinco-MK
User Manual
Q0.0 Q0.1 Q0.4 Q0.5
Position output channel Q0.2 Q0.3 Q0.6 Q0.7
Position enable control bit SM201.3 SM231.3 SM251.3 SM221.3
Position output channel output motor position signal. Forward is 0, rollback is 1.
Position output enable control bit forbid or allow the involved output channel. The position
enable control bit have highest priority. If it is forbidden, position control instruction won’t
output position control signal. The involved output channel will be used as common DO.
41
Kinco-MK
User Manual
Opera Input/Ou
Data Type Description
nds tput
Q Input INT Constant(0、1、2 or 3)
The PLS instruction is used to load the corresponding configurations of the PTO/PWM from
the specified SM registers and then start outputting pulse until it finish outputting pulse. The
pulse output channel is specified by parameter Q, 0 means Q0.0, 1 means Q0.1, 2 means Q0.4,
3 means Q0.5.
Note: In user program, it only needs to execute PLS instruction once when it is required. It is
suggested to use edge instruction to execute PLS instruction. If executing PLS executing all the
time, then it can’t output normally.
LD
If EN is 1,then PLS is executed.
IL
If CR is 1,then PLS is executed. It won’t influence the value of CR.
Notice: Make sure not to use the PTO and PWM functions if Q0.0 ,Q0.1,Q0.4 and Q0.5
are relay-output!
PWM
PWM provides a continuous pulse output with a variable duty cycle, and you can control the
cycle time and the pulse width.
The unit of cycle time and pulse width time is microsecond(us) or millisecond(ms). The
maximum value of cycle time is 65535. If the pulse width time is greater than the cycle time
value, the duty cycle is set to be 100% automatically and the output is on continuously. If the
pulse width time is 0, the duty cycle is set to be 0% and the output is off.
PTO
PTO provides a square wave (50% duty cycle) output, and you can control the cycle time and
the number of the output pulses. The unit of cycle time is microsecond(us) or
millisecond(ms).The maximum value of cycle time is 65535.The range of pulse number is
2~4,294,967,295.If the specified pulse number is less than 2, then MK070E will set related
error bit and prohibit the output.
PTO function provides single segment of pulse and multiple segment of pulse.
Single segment pulse
In single segment pulse mode, it only executes pulse train output once after executing PLS
instruction.
Multiple segment pulse
In multi-segment pulse mode, CPU automatically reads the configurations of each PTO
segment from a profile table located in V area and executes the related PTO segment.
The length of each segment is 8 bytes, including a cycle time value (16-bit, WORD), a reserved
value (It is not used now,16-bit, INT), and a pulse number value (32-bit, DWORD).Thereof, all
the pulse output frequency are the same in same segment. It uses PLS instruction to start
multiple segment pulse.
43
Kinco-MK
User Manual
In this mode, the starting address of the profile table is stored in SMW168 (corresponding
to PTO0), SMW178(corresponding to PTO1), SMW218(corresponding to PTO2) and
SMW248(corresponding to PTO3).Time base is configured by SM67.3 (corresponding to
PTO0) ,SM77.3 (corresponding to PTO1),SM97.3 (corresponding to PTO2) and SM107.3
(corresponding to PTO3). The time base can be in either microsecond or millisecond. All cycle
values in the profile table must use same time base, and cannot be modified when the profile is
executing.
The following table describes the format of the profile table.
Lengt
Byte offset1 Segment Description
h
0 8-bit The number of segments (1 to 64)
1 Initial cycle time (2 to 65535 times of the time
16-bit
base)
3 16-bit 1 Reserved
5 32-bit Pulse number(1 to 4,294,967,295)
9 Initial cycle time (2 to 65535 times of the time
16-bit
base)
11 2 Reserved
16-bit
13 32-bit Pulse number(1 to 4,294,967,295)
… … …
1 All the offsets in this column are relative to the starting position of the profile table.
Notice: the starting position of the profile table must be an odd address in V area, e.g.
VB3001.
All the default value for control byte, cycle time and pulse number are 0.The way to modify
configuration of PTO/PWM is that configure related control registers first, if it is PTO multiple
segment pulse, it also needs to configure profile table, and then execute PLS instruction.
Each PTO/PWM generator also provides a status bytes in SM area, user can get the status
information of PTO/PWM generator from the status bytes, as shown in following table.
45
Kinco-MK
User Manual
Whether the cycle time or pulse number of PTO is
wrong: 0=No, 1=Yes
SM66.4 SM76.4 SM96.4 SM106.4
Note: Cycle time and pulse number must be greater
than 1.
PTO profile terminated due to user command:
SM66.5 SM76.5 SM96.5 SM106.5
0=No, 1=Yes
SM66.6 SM76.6 SM96.6 SM106.6 Reserved
47
Kinco-MK
User Manual
Enable the PTO/PWM function
Execute PWM
1) Set control byte SMB67 according to the desired operation.
For example, SMB67 = B#16#D3 indicates:
Allow updating the pulse width value and cycle time value
2) Set SMW68 according to desired cycle time.
3) Set SMW70 according to desired pulse width.
4) Execute the PLS instruction to configure PWM0 and start it.
48
Kinco-MK
User Manual
Allow updating the pulse width value and cycle time value
2) Set SMW70 according to desired pulse width.
3) Execute the PLS instruction to configure PWM0 and start it
49
Kinco-MK
User Manual
Read/Write. Emergency-Stop bit.
If this bit is 1, no position control instructions can
be executed.
SM201.7 SM231.7 SM251.7 SM221.7
When executing the PSTOP instruction, this bit is
set to 1 automatically, and it must be reset in the
program..
Read/Write. Reset the current value or not
SM201.6 SM231.6 SM251.6 SM221.6 1 --- Clear the current value.
0 --- Maintain the current value.
Method 2
Modify current value by using following registers.
Q0.0 Q0.1 Q0.4 Q0.5 Description
Read/Write. New current value. Use to modify the
SMD208 SMD238 SDM258 SMD222
current value together with specific control bit.
Read/Write. Use to modify current value.
SM201.4 SM231.4 SM251.4 SM221.4 1 - Modify current value.
0 - Maintain the current value.
Here takes channel 0 as example to describe the method: If SM201.4 is 0,then it will maintain
the current value SMD212. If SM201.4 is 1, then it will move the value of SMD208 to
SMD212.When it needs to use this bit, avoid to keep this bit always 1 and also avoid to set this
bit while the Position Control instruction (Include PHOME, PREL, PABS, JOG and
PFLO_F) is executing, otherwise the counting value may be wrong.
Following takes channel 0 as example to describe how to modify current value:
(* Network 0 *)
(*Based on homing signal, hen it moves to homing, t requires to set current value as 100.*)
LD %SM0.0
PHOME
0, %M0.0, %M0.1, %M0.2, %VW0, %VW2, %VW4, %VD6, %VW10, %M0.4, %M0.5, %M
B1
(* Network 1 *)
(*When PHOME instruction finishing, it uses finishing bit DONE to modify current value.*)
LD %M0.4
R_TRIG
MOVE DI#100, %SMD208
51
Kinco-MK
User Manual
ST %SM201.4
PJOG(Jogging) will read pulse input frequency(MAXF) all the time when it is executing, and
adjust the pulse output frequency according to new setting frequency.
PHOME(Homing) will read the maximum frequency (MAXF) all the time when it is running
at maximum frequency but hasn’t found homing signal, and calculate acceleration or
deceleration segment automatically according the new setting frequency, then it will accelerate
or decelerate to new frequency to output pulse.
The MK070E has 3 analog channels, 2*AI (IV), 1*AO (IV). The signal form of the channel is
configured in the programming software. The channels allow for mixed access to different
signals.
52
Kinco-MK
User Manual
CPU AI area from expansion CAN. Then user programming can visit it.
All the signal types have detection range. If the value is over range, the modules will warn,
Meanwhile it will send problem file to CPU by expansion module. Pls connect all the
channels that is not used, also setup signal type to 【0-10V】,then these channels won’t
warn.
In the following table, I stand for current,while V represents input voltage value, unit V.
Measurement
Measurement Range Measured value
Method
4-20mA 3.92-20.4mA
I×1000
0-20mA 0-20.4mA
1-5V 0.96-5.1V
V×1000
0-10V 0-10.2V
In the following table, T represents measured temperature, unit:°C.
The AQ output value specified in the user program would firstly sent to the corresponding AO
module through the expansion bus, and then calculated, transformed, and output on the
specified channel through the DAC.
The signal output range are limited.If the user assign an output value over the limitation,The
actual output value would keep maintain on the upper or lower limit value.
The following table are the range of signal.Among them,I stand for Actual Current,V stand for
Actual Voltage.
53
Kinco-MK
User Manual
0-20mA 0-20.4mA
1-5V 0.96-5.1V
V×1000
0-10V 0-10.2V
Address
• The starting address : Specifies the start byte address that the module occupies in the
address space in the AI region(That's the address of the first channel).
Each AI point takes 2 bytes in the AI region.therefore,The address must be an
even number.
• length : The length of the address space occupied by this module.This is a fixed value,
depending on the number of AI channels on the module.
As above,The starting address of CPU module is specified as %AIW0,The module has two AI
channels,So the addresses of its two channels in turn are %AIW0、%AIW2.
54
Kinco-MK
User Manual
Channel Settings
Signal form : Select the type of input signal for each channel. The sample values are
automatically converted linearly within the CPU,The data conversion format please refer to
3.3.2 Measurement Ranges and The measured value Representation
Filter way:Select software filters for each channel.
The measured value can be stabilized by using a filter for the rapidly
changing analog signal.
Note : If the system needs to respond quickly to an AI signal, the software
filter at that point should not be enabled.
The input sampling of software filter adopts sliding mode.The software filter has the following
options:
None --- Software filters are not enabled.
Arithmetic mean --- Take the arithmetic mean value of the signal sampling value.
Median average --- After the maximum and minimum values are removed from the
sample values, the remaining Numbers are averaged.
55