Professional Documents
Culture Documents
Kinco PLC Training
Kinco PLC Training
Kinco Automation
Contents
K3
(Phased out)
K5
F1
K2/K7
(Coming soon)
PLC Product Line-K5
K5 series PLCs are small type PLC. It can be used in most of common
Application such as logic control, analog control, stepper control and so on.
K504
K504EX
CPU
K506
Module
K506EX
K508
CPU
Module F122-D1608T
Parts Name:
Parts Name:
1. Power supply
terminal and LEDs
2. CPU status LEDs
3. Serial port
(RS232/485)
4. I/O status LEDs
5. I/O terminals
6. DIP switches
7. CAN1 port
8. CAN2 port
9. Ethernet port
Program—KincoBuilder Fast Start
KincoBuilder Interface
Main Program CPU executes main program once per scan cycle.
Only 1 main program in a project.
CPU executes a series of tasks continuously and cyclically. We take the cyclical
execution of tasks as scan.
Executing CPU Diagnostics: CPU executes self-diagnostics to check proper
operation of CPU, memory areas and status of expansion modules.
Read inputs: Read all the physical input channels and writes these values to
input image areas
Executing main program: CPU execute all the instructions in the main program
continuously and updates memory areas.
If interrupt routines are attached in the program, CPU will interrupt scan
cycle temporarily when interrupt events occur and immediately execute
corresponding interrupt routines. Once interrupt routines is complete, it
will back to breakpoint.
The following simple example just illustrates common steps for creating and
debugging a new project.
Users could rename and subroutines by the following way: Close the
subroutine window; right-click on the subroutine node in workplace window,
then select [Rename] command to modify the name to “Demo”, or select
[Properties] command to make modification in the “Property” dialog box. Also
users could rename main program in the same way.
Steps to create new project
Subroutine: Demo Main program: Example
Steps to create new project
Step 7. Compile project. When compiling a project, KincoBuilder will save it
automatically at first to ensure it is the latest. Execute compilation by the
following ways:
Select [PLC]>Compile All] menu command;
Click the icon on the toolbar;
Use shortcut key F7.
The “Compile” tab in the output window keeps a list of the latest compiling
messages. Users could double-click on an error message in the “Compile”
Window to find the source code.
Step 8. Download program. Users need to make sure communication
parameters for [connecting PLC with PC] are correct. Download project by the
following ways:
Steps to create new project
Step 8. Download program. Users need to make sure communication
parameters for [connecting PLC with PC] are correct. Download project by the
following ways:
Select [PLC]>[Download] menu command;
Click on the icon on the toolbar;
Use shortcut key F8.
Steps to create new project
Step 8. Online Monitor. User could select [Debug]>[Monitor] menu command
or click the icon on the toolbar. Then KincoBuilder will show values of all the
variables used in the program. Users could use the force or unforce function for
debugging.
Program—KincoBuilder Basic Function
Data type
Memory address
Configuring Hardware
Instruction Set
Status Chart
Program Edit
Data Type
Constant
Constants are characterized by having a fixed value and data type. Definition
of constants is as follows:
Data Type-Constant
Data Type-Variables
Variables
Variable must have a name and an address in the CPU.
Kinco K5 series PLCs provide two methods to access the memory units:
1.Direct addressing
2. Indirect addressing, i.e. pointer
When opening KincoBuilder, users could configure some general options, e.g.
default programming language, default CPU type for new project.
Select [Tools]>[Options]
menu command to open the
dialog box:
Configuring Hardware
Users could configure CPU model and I/O expansion modules used in the
project, and set proper parameters for all the models.
Once users add modules in the Configuration Table, then users could assign
their parameters freely. Click on one module and place focus on it, all its
parameters will be displayed in Parameter Window.
I/O Configuration DI
Communication Ports DO
Retentive Ranges AI
Others AO
Configuring Hardware
I/O Configuration
Here, users could select ranges of RAM for retaining on power loss. After CPU
loses power, values of retentive area will be maintained by the super capacitor
and restore upon power on.
User could set register type, start address and length of the retentive areas.
Configuring Hardware
Others Configuration
The start address for DI/DO modules are settable; For DO modules, users also
could set Output States while STOP.
Configuring Hardware
AI/AO Setting-- Expansion Module
The start address and signal type for AI/AO modules are settable;
For AI modules, user could set filter to reduce noise input;
For AO modules, freeze value output while CPU STOP could be set.
Initial Data Table
In the Initial Data Table, users could assign initial numerical values for
BYTE, WORD, DWORD, INT, DINT, REAL variables in V area. CPU module
processes all variables in Initial Data Table once upon power on. Then
start scan cycle.
Users could check instruction set supported by the selected CPU in the
[Instruction] window.
Note:
Compare Instructions: Compare the INPUT operands and output the result.
Logical Operation Instructions: Execute logical operations to the INPUT operands
and output the result.
Convert Instructions: Convert INPUT data type to other data type.
Instruction Set
Shift/Rotate Instructions:
Numeric Instructions are mainly for simple math operations:
Addition, subtraction, multiplication, division and so on.
.
.
.
Instruction Set
Numeric Instructions:
Numeric Instructions are mainly for simple math operations: Addition,
subtraction, multiplication, division and so on.
INC OUT=IN + 1.
DEC OUT=IN – 1.
Instruction Set
Program Control Instructions: Clock Instructions:
Additional Instructions:
Note:
Program Control Instructions: To realize program
JUMP/CALL/RETURN/END/LOOP and so on functions.
Clock Instructions: For adjusting real-time clock in CPU.
Additional Instructions: Assist users to satisfy special application.
Instruction Set
Interrupt Instructions: Counter Instructions:
PID
1. Communication cable
Note: After user connecting PLC with PC via the cable, then users could
check the used port number in [My pc]-[Manage]-[Device Manager]-
[Universal Serial Bus Controller]
Connecting PLC with PC
2. Configure communication parameters