步科编程软件使用手册

合集下载

步科触摸屏使用说明

步科触摸屏使用说明

步科组态使用说明、创建一个简单的工程“便用便捷"迪EV 3DDD粗恚软件的最大优点.在罐里我忙寒通过演视作一牛只包廿牛开美整劃无伶的工他IE橙朋£V5W0工程的前单狮方也£1此榨舟本书榊瑚L而其它鮎的制惮肓注山花*开知网作方是基本上类此2.1#-#•首克’空白的工程1.鱼翱 EV5OO0 就忡辰ft[ Jf jft]/[fiff]/ [eri w]/I £V3OOO_IW“ 税刑应駅< 3TJ30a-H u«封Vnki^dl罩!!i*uim_nt;. a・3. M•单亦】里的[砒工皐血鼻出知下然话怪 *\MMx&SMl*・:t也可 d点来进矗您庚建文特的徹難.在魁我忙命名为杯3』1**・点击I建立]即可.王选吕耀于爭心巴換乔绘号.诧其范入工程结构羞匚=汝开蓋呵•密学&虹下对话框;T.适当移动HKI 和PLC 的位置.将连接瑞口靠近延採线匚乞意一堆•僵可農眦利把它们连接起亲° 注意=连接愷用的端口号要与实际的勒理连接一致u 这样就诫功的在PLC 与HMI 之闾建立了连接. 拉呐战I 威涓'M L 惶查迤接线星否浙幵.如:杲不斯幵嵐我朮連接成及°4.选样懋所需的通讯连接方式P MT5000立持串口・以太网连接,点击元件库窗口里社通讯连接* 选中您所需的连接方式拖入工程结构窗口申即可. ■^200 町以选择水平或垂也方式施亦•山:水乎还是垂宜便用桓摸屏.然后点由“or^认* 6选羟您需姿违线的卩戊类型‘拖入工屈纷构瞬U3U 如卞图所示:.t'MIU.tOMlIcOPLCOO ■&然后网击HMTO图标;就会奔Hi下图所不的对话框『■ s屯"在此对话框中瞬的IP 地址和第口号.srjRifc 便用的基覃机系読"且不押s 组售車囘接在叙篠拟"JW 可沈平必險賈此窗口.如果总便用了以克朋赛机互联或趾衣网下戟显 迤鶴功能* illM!卷所在的尺域PTM 編给您他魅摸弄甘配唯一% :F 毘士. IT 果期堵内役有沖先・建加禺*心孟血⑺ 斟如 在萍屮王一浪1 .風性:框里切操剰【率口 I口 1茕參£; f 如慈想的PLC 连蚁情尢*谡畫遡汽类翅曲HS2H2+ KS483^W 疏RS4S5-2W ・胖匹 与PLC 二H 的谀 #*i ■(砒和皎验d 垢亡也暉■性.户.TR 移塞&场*乩収击PLL 左*>黒PLX 逆揍在WMD* 竝——一虹站号沖幅应的PM 站号,亦I«* 1P ] 1 - Z —din Ut^ VISUAL 口。

步科编程软件使用手册

步科编程软件使用手册

入门阶一、软件安装1.手册中术语介绍2.使用软件注意事项1).kinco HMIware 只能向下兼容不向上兼容,即低版本打不开高版本。

2)使用工程密码保护、上传密码和反编译密码,请务必牢记密码步科公司不提供恢复出厂设置。

3.软件简介kinco HMIware组态编辑软件(以下简称kinco HMIware)是上海步科自动股份有限公司的。

4.使用步骤5.软件运行安装要求1)使用win7操作系统时不要将软件安装在C盘(系统盘)2)使用win7打开软件时必须右键图标,以管理员身份登录;6.语言切换‘选项’--- “语言切换”—“简体中文”驱动USB驱动只能手动安装不能自动安装。

必须采用以下步骤进行安装。

1)用USB连接触摸屏USB口与电脑USB口;2)PC弹出“硬件更新向导”---从列表或制定位置安装—下一步---单机浏览---kincoware 中的drive 驱动。

二、制作工程1.新建工程2.在通讯连接中选择设备的通讯方式从元件窗口拖拽通讯方式:(客户要求我们的设备是要走以太网的)。

所以根据IP分配,触摸屏地址为(192.168.1.143)3.选择PLC、触摸屏(全部在左侧元件列表中寻找)4.通讯连接5.触摸屏组态画面设计6.更改背景属性颜色1.在当前页面空白处双击—弹出窗口属性对话框—更改背景颜色---选择自定义颜色7.添加文字8.打开非kinco DTOOLs制作的工程打开KINCO HMIWARE的工程,方法如下图,不是所有的kinco HMIware 文件都能打开进阶篇1.用户界面介绍2.工具栏介绍2.1 元件视图:在“plc 元件列表”的空白处右键鼠标,可以进行大\小图标的切换。

小图标2.2工程结构窗口2.3有时为了方便查看自己的触摸屏到底使用了哪些软元件:可以在:“查看—元件列表”设计方法画面切换:是当前窗口画面(或已经打开的子窗口)关闭,并打开另一个指定的窗口。

它有两种方法:1)使用功能键切换;2)使用PLC控制:“元件中的PLC控制”指定控制字地址。

roboBASIC命令手册

roboBASIC命令手册

roboBASIC v2.10 命令手册第一章roboBASIC命令概要命令概要roboBASIC语言以通用BASIC编程语言为基础,为了方便控制机器人而开发的专用性编程语言,是(株式社会)迷你机器人公司研制并登记注册的编程软件。

roboBASIC语言与BASIC语言相比,其最大特点是添加了方便控制机器人的专用命令。

与声明/定义相关的命令DIM 声明变量AS 在声明变量时指定变量类型CONST 声明常量BYTE 声明变量时定义为字节类型INTEGER 声明变量时定义为整型流程控制命令IF 条件语句开始THEN 条件语句为真时执行下一条语句ELSE 条件语句为假时执行下一条语句ELSEIF 开始另一个条件语句ENDIF 条件语句结束FOR 循环语句开始TO 指定一条循环语句的循环次数范围NEXT 循环语句结束GOTO 无条件转移GOSUB 调用子程序RETURN 从子程序返回END 结束程序STOP 停止程序执行RUN 连续执行程序WAIT 等待直到程序完成DELAY 延迟一定时间再执行程序BREAK②暂停程序执行并转换到调试模式数字信号输入输出命令IN 从输入端口读取数据OUT 发送信号到输出端口BYTEIN 从输入端口读取字节型数据BYTEOUT 发送字节型数据到输出端口INKEY②从输入端口输入键值STATE 输出端口状态PULSE 发送脉冲信号到输出端口TOGGLE 反转输出端口状态KEYIN③接受模拟键盘输入与存储有关的命令PEEK 从控制器RAM中读取数据POKE 写数据到控制器RAM中ROMPEEK 从控制器外部EEPROM中读取数据ROMPOKE 写数据到控制器外部EEPROM与LCD相关的命令LCDINIT 初始化LCD模块CLS 清除LCD模块中所有字符LOCATE 设置在LCD模块中文字显示位置PRINT 在LCD模块中显示文字FORMAT 设置LCD模块的数据显示格式CSON 在LCD模块中显示光标CSOFF 在LCD模块中隐藏光标CONT 设置LCD显示屏上文字显示亮度DEC 输出十进制数到LCDHEX 输出十六进制数到LCDBIN③输出二进制数到LCD操作数相关操作AND 使用逻辑与条件表达式OR 使用逻辑或条件表达式MOD 求余XOR 使用逻辑异或条件表达式NOT③对所有位求反与电机控制相关的命令ZERO 设置电机0点(中心点)MOTOR 开启电机MOTOROFF 关闭电机MOVE 同时操作多个电机SPEED 设置电机速度ACCEL②设置电机加速度DIR 设置电机方向PTP 开启/关闭同时电机控制操作SERVO 控制单个电机PWM 直流电机的脉冲宽度控制FASTSERVO②以最大速度转动伺服电机HIGHSPEED③开启/关闭伺服电机的高速模式MOVEPOS③根据声明的位置转动电机POS③设置机器人特定姿势FPWM③改变脉冲宽度和频率MOVE24③同时操作24个电机INIT③设置初始运动姿态MOTORIN③读取电机当前位置值AIMOTOR③设置使用AI电机AIMOTOROFF③取消使用AI电机AIMOTORIN③读取AI电机当前位置值SETON③设置使用setup功能SETOFF③退出setup功能ALLON③对所有电机设置setup功能ALLOFF③退出对所有电机的setup功能GETMOTORSET③读取电机当前值并保持当前位置MOTORMODE④设置电机模式电机组分配相关参数G6A③将0-5号电机分配给A组G6B③将6-11号分配给B组G6C③把12-17分配给C组G6D③把18-23分配给D组G6E③把24-29分配给E组G8A③把0-7分配给A组G8B③把8-15分配给B组G8C③把16-23分配给C组G8D③把24-31分配给D组G12③分配0-11号伺服电机G16③分配0-15号伺服电机G24③分配0-23号伺服电机G32③分配0-31号伺服电机与声音控制相关的命令BEEP②用压电蜂鸣器发出警告声SOUND②用压电蜂鸣器发出声音PLAY②用压电蜂鸣器播放歌曲MUSIC③用压电蜂鸣器播放音乐TEMPO③设置声音节奏与外部通信相关的命令RX②通过RX端口接收RS232信号TX②通过TX端口传输RS232信号MINIIN②通过mini通讯端口接收miniBUS信号MINIOUT②通过mini通讯端口传输miniBUS信号ERX③通过RX端口接收RS232信号ETX③通过TX端口传输RS232信号模拟信号处理相关命令AD③从AD端口读取模拟信号值REMOCON③从红外远程控制器中读取按键值SONAR③从超声波端口读取距离RCIN③从RC(遥控器)读取输入值GYRODIR③根据陀螺仪(gyro)输入的设置电机转动方向GYROSET③给电机组分配相应的陀螺仪进行控制GYROSENSE③设定相对应电机组里电机的陀螺仪传感器灵敏度处理跳转命令ON...GOTO 根据变量值进行相应跳转其它命令RND 产生一个随机数REMARK 文本注释开头标记伪命令'$DEVICE 设置控制器由正在运行的程序来操作'$LIMIT③限制电机转动范围'$INCLUDE④文件包含注:②表示该命令在MR-C2000系列控制器中使用③表示该命令在MR-C3000系列控制器中使用④表示该命令在MFC3024FX控制器中使用第二章roboBASIC语法概要由于roboBASIC语法是基于通用BASIC编程语言之上的,因此roboBASIC 类似于BAISC语言。

STEP7-MicroWIN软件基本操作

STEP7-MicroWIN软件基本操作

STEP7-Micro/WIN基本操作
1、打开编程软件
图3-1 新建一个工程文件
图3-2 保存刚才所新建工程文件
4、依据所编制的PLC的I/O地址表建立一个符号表
单击此
无错误,编译通7
双击此图7-2 设置通信参数(2)
8
图8-2 选择PLC 类型(2)
9、把程序下载到PLC 中 依据右
侧检测
结果修
改远程
通信地
图9-2 下载程序图9-3 正在下载程序双击此
单击此
表示下载成
图10-1 进入程序状态监控模式
蓝色表示触点/线圈接通
在英文输入法下直接输入变量的变量的数据格式, I0.0
图10-4 建立状态表(2)
单击此
用二进制表
示,等于
后:单击强制按

先:输入新值
启动按钮被按下,接触
器线圈得电,电动机启图10-7 强制值后效果
页眉内容
单击此
11、运行程序
图11-2 按下启动按钮图11-3 按下停动按钮单击此单击此。

STEP7-MicroWIN软件基本操作

STEP7-MicroWIN软件基本操作

STEP7-Micro/WIN基本操作1、打开编程软件双击此项图1 打开STEP7-Micri/WIN软件2、修改软件菜单显示的语言图2-2 把软件的菜单显示语言修改为中文3、重新打开编程软件,然后新建一个工程文件并保存单击此项图3-1 新建一个工程文件图3-2 保存刚才所新建工程文件4、依据所编制的PLC 的I/O 地址表建立一个符号表图4-1 进入符号表编写模式单击此项地址必须在英文输入法下输入图4-2 依据实际情况添加符号表的符号、地址等信息5、依据控制要求,编写梯形图程序单击此项图5-1 进行程序编写模式6、编译并调试程序直到编译通过图6-1 编译无错误,编译通过图6-2 显示编译结果7、设置通信参数单击此项图7-1 设置通信参数(1)双击此项图7-2 设置通信参数(2)依据右侧检测结果修改远程通信地址图7-3 设置通信参数(3)8、依据实际情况选择PLC的型号图8-1 选择PLC类型(1)图8-2 选择PLC类型(2)9、把程序下载到PLC中图9-1进入程序下载界面双击此项单击此项单击此项图9-2 下载程序图9-3 正在下载程序图9-4 下载成功10、对程序的监控图10-1 进入程序状态监控模式表示下载成功单击此项图10-2 程序状态监控模式图10-3 建立状态表(1)蓝色表示触点/线圈接通/得电图10-4 建立状态表(2)图10-5 进入状态表监控模式在英文输入法下直接输入变量的地址,如I0.0 变量的数据格式, I0.0属于输入映像寄存器I 的一个位变量单击此项表示当前值用二进制表示,等于0 先:输入新值1后:单击强制按钮图10-6 强制一个值图10-7 强制值后效果图10-8 解除一个强制操作启动按钮被按下,接触器线圈得电,电动机启动运单击此项11、运行程序图11-1 运行程序图11-2 按下启动按钮单击此项单击此项蓝色表示触点接通,表示线圈得电图11-3 按下停动按钮。

Kinco步科PLCF1系列快速入门手册英文高清版

Kinco步科PLCF1系列快速入门手册英文高清版
工控编程吧 工控编程吧

F1 PLC Fast Start
工控编程吧
Step1 Install Target File
• Press "InstallTarget" in CoDeSys as following figure.
工控编程吧
工控编程吧
Step 3 Communication Parameters
• When you need to download program to F1 PLC.First you need to set communication parameters as following figure.
工控编程吧
• Choose a language of the POU.Here we choose “LD”,then press OK;
工控编程吧
• Following figure is the program interface of CoDeSys.Then we can begin to program.
• Create a new project,it will popup following window,then choose F122-D1608T PLC.
工控编程吧
• Press OK,it will popup following window.We can set all the parameters by default Then press OK to finish the configuration.
工控编程吧
Step 2 Programming
• Open Codesys V2.3,as following figure:

KincoOPC软件说明书

KincoOPC软件说明书

软 件 说 明 书版本:V1.00KincoOpc 软件说明书目 录绪言 (2)1. KincoOpc服务器安装 (3)1.1 OPC服务器操作系统配置要求 (3)1.2 安装步骤 (3)2. OPC 服务器界面介绍 (6)2.1 服务器界面的组成 (6)2.1.1 标题栏 (6)2.1.2 菜单栏 (6)2.1.3工具栏 (6)2.1.4通道/ 设备 / 标签组树状区 (6)2.1.5事件日志区 (7)2.1.6标签区域 (7)2.1.7菜单说明 (7)2.2通道 (9)2.2.1 通道属性 (9)2.3 设备 (10)2.3.1 设备属性 (10)2.4 标签 (12)2.4.1 标签属性 (12)3. 创建新工程 (17)3.1 运行新建工程 (17)3.2 通道添加与设置 (17)3.3 设备添加与设置 (20)3.4 标签组添加与设置 (24)3.5 标签添加与设置 (25)3.6 工程变换 (27)3.7 CSV 导入与导出 (28)4. 服务器选项 (31)4.1 参数设置 (31)5. 客户端系统参数 (32)5.1 概要 (32)5.2 客户端视窗 (32)5.3 测试项目 (33)5.3.1 服务器连接添加 (34)5.3.2 组与标签的添加 (35)5.4 服务器连接设置 (39)5.4.1 组 (41)5.4.2 项目操作 (42)1绪言2绪 言随着工业生产过程的不断发展,工业控制软件取得了很大的进步。

然而,生产规模的扩大与过程复杂程度的提高,工业控制软件设计面临着巨大的挑战。

特别是,它在工业控制领域的开发进展及支持能力,以及集成数量和种类不断增多的现场信息。

不同厂家的设备又使用不同的驱动程序,迫使工业控制软件中包含了越来越多的底层通信模块。

KincoOpc是基于PC为终端,微软 Windows为操作系统平台、COM/DCOM访问机制的纯软件产品。

该软件的设计是依据OPC基金会定义的统一数据访问接口,由服务器进行数据交换,使客户访问硬件设备信息的过程变得简单快捷。

步科编程软件使用手册样本

步科编程软件使用手册样本

入门阶一、软件安装1.手册中术语介绍2.使用软件注意事项1) .kinco HMIware 只能向下兼容不向上兼容, 即低版本打不开高版本。

2) 使用工程密码保护、上传密码和反编译密码, 请务必牢记密码步科公司不提供恢复出厂设置。

3.软件简介kinco HMIware组态编辑软件( 以下简称kinco HMIware) 是上海步科自动股份有限公司的。

4.使用步骤5.软件运行安装要求1) 使用win7操作系统时不要将软件安装在C盘( 系统盘)2) 使用win7打开软件时必须右键图标, 以管理员身份登录;6.语言切换‘选项’--- ”语言切换”—”简体中文”驱动USB驱动只能手动安装不能自动安装。

必须采用以下步骤进行安装。

1) 用USB连接触摸屏USB口与电脑USB口;2) PC弹出”硬件更新向导”---从列表或制定位置安装—下一步---单机浏览---kincoware 中的drive 驱动。

二、制作工程1.新建工程2.在通讯连接中选择设备的通讯方式从元件窗口拖拽通讯方式: ( 客户要求我们的设备是要走以太网的) 。

因此根据IP分配, 触摸屏地址为( 192.168.1.143)3.选择PLC、触摸屏( 全部在左侧元件列表中寻找)4.通讯连接5.触摸屏组态画面设计6.更改背景属性颜色1.在当前页面空白处双击—弹出窗口属性对话框—更改背景颜色---选择自定义颜色7.添加文字8.打开非kinco DTOOLs制作的工程打开KINCO HMIWARE的工程, 方法如下图, 不是所有的kinco HMIware 文件都能打开进阶篇1.用户界面介绍。

STEP7-MicroWIN软件的操作说明

STEP7-MicroWIN软件的操作说明

STEP7-Micri/WIN的操作说明一、连接硬件(P122)二、软件编程1、打开编程软件双击此项图1 打开STEP7-Micri/WIN软件2、修改软件菜单显示的语言(重要)图2-1 打开工具菜单的选项图2-2 把软件的菜单显示语言修改为中文3、重新打开编程软件,然后新建一个工程文件并保存单击此项图3-1 新建一个工程文件图3-2 保存刚才所新建工程文件4、依据所编制的PLC的I/O地址表建立一个符号表单击此项图4-1 进入符号表编写模式地址必须在英文输入法下输入图4-2 依据实际情况添加符号表的符号、地址等信息5、依据控制要求,参考教材P135~145编写梯形图程序单击此项图5-1 进行程序编写模式图5-2 输入梯形图并添加必要注释6、编译并调试程序直到编译通过图6-1 编译无错误,编译通过图6-2 显示编译结果7、设置通信参数单击此项图7-1 设置通信参数(1)双击此项图7-2 设置通信参数(2)依据右侧检测结果修改远程通信地址图7-3 设置通信参数(3)8、依据实际情况选择PLC的型号图8-1 选择PLC类型(1)图8-2 选择PLC类型(2)9、把程序下载到PLC中图9-1进入程序下载界面双击此项单击此项单击此项图9-2 下载程序图9-3 正在下载程序表示下载成功图9-4 下载成功10、对程序的监控单击此项图10-1 进入程序状态监控模式图10-2 程序状态监控模式图10-3 建立状态表(1)蓝色表示触点/线圈接通/得电图10-4 建立状态表(2)图10-5 进入状态表监控模式图10-6 强制一个值在英文输入法下直接输入变量的地址,如I0.0变量的数据格式, I0.0属于输入映像寄存器I 的一个位变量单击此项表示当前值用二进制表示,等于0 先:输入新值1后:单击强制按钮图10-7 强制值后效果图10-8 解除一个强制操作启动按钮被按下,接触器线圈得电,电动机启动运单击此项11、运行程序图11-1 运行程序图11-2 按下启动按钮单击此项单击此项蓝色表示触点接通,表示线圈得电图11-3 按下停动按钮。

Kinco步科_伺服编程软件基础培训

Kinco步科_伺服编程软件基础培训

范例: 如设定DIN1-5为BCD输入信号,DIN6为高位的使能信号,则操作顺序为: 输入BCD信号->使能DIN6信号。
练习? 1.编写sequence实现: 正转,速度=80000inc/s 反转,速度=160000inc/s 停止,速度=0 配置Digital input, 要求 Din1(L->H)-正转 Din1(H->L)-停止 Din2(L->H)-反转 Din2(H->L)-停止 2.编写sequence实现: Din1,回原点 Din2,第一个位置10000 Din3,第二个位置30000 利用BCD方式调用Sequence
2.基于对象词典的编程模式
ECO2WIN基于Sequence编程风格,类似于一个批程序对对象的赋值,这些对象 在赋值后立即执行相应的动作。 这里说的对象(Objects)类似我们常说的内存地址,有些对象如速度和位置 等可以由外部控制器修改,有些对象却只能由驱动器本身修改,如状态、错 误信息。 对象可以有不同属性: 1.RW(读写):对象可以被读也可以写入 2.RO(只读):对象只能读 3.WO(只写): 只能写入 4.M(可映射):对象可映射,类似间接寻址 5.S(可存储):对象可存储在Flash-ROM区,掉电不丢失 所有的对象定义了相应的功能,定义的内容符合CANopen国际标准,即在所有 的基于CANopen的设备中具有相同的含义。
b.设置速度、加速度、减速度 多极旋转伺服电机编码器分辨率:8000inc 高速旋转伺服电机编码器分辨率:80000inc 直线电机光栅尺分辨率建议:1us 目标速度:60FF0020; 加速度:60830020,减速度:60840020
c.控制电机动作 控制字常用命令值及功能介绍(60400010) 6 ----- 电机断电,驱动器初始化 F ----- 速度模式下电机使能 1F ----- 回原点模式时电机使能 3F ----- 位置模式下绝对定位使能 5F ----- 位置模式下相对定位使能 80 ----- 驱动器故障复位 86 ----- 驱动器故障复位并初始化 状态字各个位功能(60410010) Ready to Switch on Fault Target reached Commutation Found Reference Found

步科编程软件使用手册

步科编程软件使用手册

入门阶一、软件安装1.手册中术语介绍2.使用软件注意事项1).kinco HMIware 只能向下兼容不向上兼容,即低版本打不开高版本。

2)使用工程密码保护、上传密码和反编译密码,请务必牢记密码步科公司不提供恢复出厂设置。

3.软件简介kinco HMIware组态编辑软件(以下简称kinco HMIware)是上海步科自动股份有限公司的。

4.使用步骤5.软件运行安装要求1)使用win7操作系统时不要将软件安装在C盘(系统盘)2)使用win7打开软件时必须右键图标,以管理员身份登录;6.语言切换‘选项’--- “语言切换”—“简体中文”驱动USB驱动只能手动安装不能自动安装。

必须采用以下步骤进行安装。

1)用USB连接触摸屏USB口与电脑USB口;2)PC弹出“硬件更新向导”---从列表或制定位置安装—下一步---单机浏览---kincoware 中的drive 驱动。

二、制作工程1.新建工程2.在通讯连接中选择设备的通讯方式从元件窗口拖拽通讯方式:(客户要求我们的设备是要走以太网的)。

所以根据IP分配,触摸屏地址为(192.168.1.143)3.选择PLC、触摸屏(全部在左侧元件列表中寻找)4.通讯连接5.触摸屏组态画面设计6.更改背景属性颜色1.在当前页面空白处双击—弹出窗口属性对话框—更改背景颜色---选择自定义颜色7.添加文字8.打开非kinco DTOOLs制作的工程打开KINCO HMIWARE的工程,方法如下图,不是所有的kinco HMIware 文件都能打开进阶篇1.用户界面介绍2.工具栏介绍2.1 元件视图:在“plc 元件列表”的空白处右键鼠标,可以进行大\小图标的切换。

小图标2.2工程结构窗口2.3有时为了方便查看自己的触摸屏到底使用了哪些软元件:可以在:“查看—元件列表”设计方法画面切换:是当前窗口画面(或已经打开的子窗口)关闭,并打开另一个指定的窗口。

它有两种方法:1)使用功能键切换;2)使用PLC控制:“元件中的PLC控制”指定控制字地址。

Kinco步科PLCkinckk5系列编程软件用户手册英文高清版

Kinco步科PLCkinckk5系列编程软件用户手册英文高清版

ContentsCONTENTS (1)CHAPTER I WELCOME TO USE KINCOBUILDER (10)1.1O VERVIEW (10)1.2G ENERAL D ESIGNATION IN THE M ANUAL (11)CHAPTER II HOW TO USE KINCOBUIL DER ... A QUICK GUIDE. (14)2.1C OMPUTER R EQUIREMENTS (14)2.1.1 Minimum hardware requirements to run KincoBuilder: (14)2.1.2 Minimum Software requirements to run KincoBuilder: (14)2.2U SER I NTERFACE OF K INCO B UILDER (16)2.3U SING K INCO B UILDER TO C REATE P ROGRAMS FOR Y OUR A PPLICATIONS (18)2.3.1 Project Components (18)2.3.2 Where to store the Project Files (19)2.3.3 Importing and Exporting a Project (19)2.4H OW T HE CPU E XECUTES I TS T ASKS IN A S CAN C YCLE? (22)2.5H OW TO CONNECT THE COMPUTER WITH THE K INCO-K5 (24)2.6H OW TO MODIFY THE CPU‟S COMMUNICATION PARAMETERS (27)2.7E XAMPLE:C OMMON S TEPS TO C REATE A P ROJECT (28)CHAPTER III CONCEPTS FOR PROGRAMMING (36)3.1POU(P ROGRAMME O RGNIZATION U NIT) (36)3.2D ATA T YPES (38)3.3I DENTIFIERS (40)3.3.1 How to define an identifier (40)3.3.2 Use of Identifiers (40)3.4C ONSTANT (41)3.5V ARIABLES (43)3.5.1 Declaration (43)3.5.2 Declaring Variables in KincoBuilder (44)3.5.3 Checking Variables (44)3.6H OW TO A CCESS PLC M EMORY (45)3.6.1 Memory Types and Characteristics (45)3.6.2 Direct Addressing (47)3.6.3 Indirect Addressing (54)3.6.4 Memory Address Ranges (56)3.6.5 Function Block and Function Block Instance (58)3.6.6 Using FB Instances (60)3.6.7 FB Instances Memory Ranges (62)CHAPTER IV HOW TO USE KINCOBUIL DER ... BASIC FUNCTION S (63)4.1C ONFIGURING G ENERAL S OFTWARE O PTIONS (63)4.2A BOUT D OCKING W INDOWS (65)4.3C ONFIGURING H ARDWARE (66)4.3.1 How to open the Hardware window (67)4.3.2 Copy and paste the hardware configuration in different projects (67)4.3.3 Add/Remove Modules (67)4.3.4 Configuring Module Parameters (68)4.4T HE I NITIAL D ATA T ABLE (77)4.4.1 Opening the Initial Data Table (77)4.4.2 Editing a Cell (77)4.4.3 Making Initial Data Assignments (78)4.4.4 Editing the Initial Data Table (78)4.5T HE G LOBAL V ARIABLE T ABLE (79)4.5.1 Opening the Global Variable Table (80)4.5.2 Declaring the Global Variables (80)4.6T HE C ROSS R EFERENCE T ABLE (82)4.6.1 Opening the Cross Reference Table (82)4.6.2 The Pop-up Menu (83)4.7T HE S TATUS C HART (84)4.7.1 Opening the Status Chart (86)4.7.2 Monitoring the Variable Value (86)4.7.3 The Force Function (86)4.7.4 Right-click Menu (87)4.7.5 Force and Cancel Force (87)4.8P ASSWORD P ROTECTION (89)4.8.1 Protection Privileges (89)4.8.2 How to change the password and the protection level (89)4.8.3 How to recover from a lost password (91)CHAPTER V HOW TO US E KINCOBUILDER ... PRO GRAMMING (92)5.1P ROGRAMMING IN IL (92)5.1.1 Overview (92)5.1.2 Rules (93)5.1.3 The IL Editor in KincoBuilder (95)5.1.4 Converting IL Program to LD Program (98)5.1.5 Debug and Monitor the Program (98)5.2P ROGRAMMING IN LD (101)5.2.1 Overview (101)5.2.2 Network (101)5.2.3 Standardized graphic symbols (101)5.2.4 The LD Editor in KincoBuilder (104)5.2.5 Monitoring and Debugging the Program (111)CHAPTER VI KINCO-K5 INSTRUCTION SET (114)6.1S UMMARY (114)6.2B IT L OGIC I NSTRUCTIONS (115)6.2.1 Standard Contact (115)6.2.2 Immediate Contact (119)6.2.3 Coil (121)6.2.4 Immediate Coil (123)6.2.5 Set And Reset Coil (124)6.2.6 Set and Reset Block Coil (126)6.2.7 Set And Reset Immediate Coil (128)6.2.8 Edge detection (129)6.2.9 NCR (NOT) (131)6.2.10 Bistable elements (132)6.2.11 ALT (Alternate) (135)6.2.12 NOP (No Operation) (137)6.2.13 Bracket Modifier (138)6.3M OVE I NSTRUCTIONS (140)6.3.1 MOVE (140)6.3.2 BLKMOVE (Block Move) (141)6.3.3 FILL (Memory Fill) (144)6.3.4 SWAP (145)6.4C OMPARE I NSTRUCTIONS (148)6.4.1 GT (Greater Than) (148)6.4.2 GE (Greater than or Equal to) (150)6.4.3 EQ (Equal to) (152)6.4.4 NE (Not Equal to) (154)6.4.5 LT (Less than) (156)6.4.6 LE (Less than or Equal to) (158)6.5L OGICAL O PERATIONS (160)6.5.1 NOT (160)6.5.2 AND (162)6.5.3 ANDN (164)6.5.4 OR (166)6.5.5 ORN (168)6.5.6 XOR (Exclusive OR) (170)6.6S HIFT/R OTATE I NSTRUCTIONS (172)6.6.1 SHL (Shift left) (172)6.6.2 ROL (Rotate left) (174)6.6.3 SHR (Shift right) (176)6.6.4 ROR (Rotate right) (178)6.6.5 SHL_BLK (Bit String Shift Left) (180)6.6.6 SHR_BLK (Bit String Shift Right) (182)6.7C ONVERT I NSTRUCTIONS (185)6.7.1 DI_TO_R (DINT To REAL) (185)6.7.2 R_TO_DI (REAL To DINT) (186)6.7.3 B_TO_I ( BYTE To INT ) (188)6.7.4 I_TO_B ( INT To BYTE ) (189)6.7.5 DI_TO_I ( DINT To INT ) (192)6.7.6 I_TO_DI ( INT To DINT ) (194)6.7.7 BCD_TO_I ( BCD To INT ) (195)6.7.8 I_TO_BCD (INT To BCD ) (196)6.7.9 I_TO_A ( INT To ASCII ) (199)6.7.10 DI_TO_A ( DINT To ASCII ) (201)6.7.11 R_TO_A ( REAL To ASCII ) (203)6.7.12 H_TO_A ( Hexadecimal To ASCII ) (206)6.7.13 A_TO_H ( ASCII to Hexadecimal ) (208)6.7.14 ENCO (Encoding) (210)6.7.15 DECO (Decoding) (212)6.7.16 SEG ( 7-segment Display) (214)6.7.17 TRUNC (Truncate) (215)6.8N UMERIC I NSTRUCTIONS (217)6.8.1 ADD and SUB (217)6.8.2 MUL and DIV (219)6.8.3 MOD (Modulo-Division) (221)6.8.4 INC and DEC (223)6.8.5 ABS (Absolute Value) (225)6.8.6 SQRT (Square Root) (226)6.8.7 LN (Natural Logarithm), LOG (Common Logarithm) (227)6.8.8 EXP(Exponent with the base e) (228)6.8.9 SIN (sine), COS (cosine), TAN (tangent) (229)6.8.10 ASIN (arc-sine), ACOS (arc-cosine), ATAN (arc-tangent) (231)6.9P ROGRAM C ONTROL (233)6.9.1 LBL and JMP Instructions (233)6.9.2 Return Instructions (235)6.9.3 CAL(Call a subroutine) (237)6.9.4 FOR/NEXT ( FOR/NEXT Loop) (240)6.9.5 END (Terminate the scan cycle) (243)6.9.6 STOP (Stop the CPU) (244)6.9.7 WDR (Watchdog Reset) (245)6.10I NTERRUPT I NSTRUCTIONS (246)6.10.1 How the Kinco-K5 handles Interrupt Routines (246)6.10.2 Interrupt Priority and Queue (246)6.10.3 Types of Interrupt Events Supported by the Kinco-K5 (246)6.10.4 Interrupt Events List (247)6.10.5 ENI (Enable Interrupt), DISI (Disable Interrupt) (248)6.10.6 ATCH and DTCH Instructions (249)6.11C LOCK I NSTRUCTIONS (253)6.11.1 Adjusting the RTC online (253)6.11.2 READ_RTC and SET_RTC (254)6.11.3 RTC_R (256)6.11.4 RTC_W (258)6.12C OMMUNICATION I NSTRUCTIONS (261)6.12.1 Free-protocol Communication (261)6.12.2 XMT and RCV (261)6.12.3 Modbus RTU Master Instructions (271)6.12.4 SDO (277)6.12.5 CAN Communication Command (283)6.13C OUNTERS (292)6.13.1 CTU (Up Counter) and CTD (Down Counter) (292)6.13.2 CTUD (Up-Down Counter) (295)6.13.3 High-speed Counter Instructions (297)6.13.4 High-speed Pulse Output Instructions (313)6.14T IMERS (329)6.14.1 The resolution of the timer (329)6.14.2 TON (On-delay Timer) (329)6.14.3 TOF (Off-delay Timer) (331)6.14.4 TP (Pulse Timer) (333)6.15PID (336)6.16P OSITION C ONTROL (341)6.16.1 Model (341)6.16.2 The correlative variables (342)6.16.3 PHOME (Homing) (344)6.16.4 P ABS (Moving Absolutely) (347)6.16.5 PREL (Moving Relatively) (349)6.16.6 PJOG (Jog) (353)6.16.7 PSTOP (Stop) (355)6.16.8 PFLO_F (356)6.16.9 Examples (358)6.17A DDITIONAL I NSTRUCTIONS (369)6.17.1 LINCO( Linear Calculation ) (369)6.17.2 CRC16 ( 16-Bit CRC ) (371)6.17.3 SPD (Speed detection) (373)APPENDIX A COMMUNICA TE USING MODBUS RTU PROTOCOL (375)1.PLC M EMORY A REA (375)1.1 Accessible Memory Areas (375)1.2 Modbus Register Number (375)2.B ASIC R EPORT F ORMAT OF M ODBUS RTU (378)2.1 Modbus RTU (378)2.2 CRC Verification Algorithm in Modbus Protocol (381)APPENDIX B DYNAMIC MODIFICATION PARAMETER OF RS485 COMMUNICA TION PORT (385)1.G ENERAL D ESCRIPTION (385)2.R EGISTER I NSTRUCTION (386)3.I NSTRUCTIONS (389)4.E XAMPLE (391)APPENDIX C DA TA BACKUP (393)APPENDIX D ERROR DIAGNOSE (394)1.E RROR L EVEL (394)2.E RROR CODES (396)3.H OW TO R EAD E RRORS O CCUR B EFORE (399)4.E RROR R EGISTER (401)APPENDIX E DEFINITION OF SM AREA (404)1.SMB0: SYSTEM STATUS BYTE (404)2.SMB2: SYSTEM CONTROL BYTE (405)3.C OMMUNICATION P ORT R ESET (406)4.O THER FUNCTIONAL VARIABLES (408)5.SMD12 AND SMD16:T IMER I NTERRUPTION C YCLE (409)Chapter I Welcome to Use KincoBuilder1.1OverviewIEC61131-3 is the only global standard for industrial control programming. Its technical implications are high, leaving enough room for growth and differentiation. It harmonizes the way people design and operate industrial controls by standardizing the programming interface. IEC 61131-3 has a great impact on the industrial control industry, and it is accepted as a guideline by most PLC manufacturers. With its far-reaching support, it is independent of any single company.KincoBuilder is the programming software for Kinco-K5 series Micro PLC, and it's a user-friendly and high-efficient development system with powerful functions.KincoBuilder is developed independently and accords with the IEC61131-3 standard. It becomes easy to learn and use because many users have acquired most of the programming skills through different channels.KincoBuilder is provided with the following features:Accords with the IEC61131-3 standardSupports two standard programming languages, i.e. IL (Instruction List) and LD (Ladder Diagram)Powerful instruction set, build-in standard functions, function blocks and other special instructionsSupports structured programmingSupports interrupt service routinesSupports subroutinesSupports direct represented variables and symbolic variables, easy to develop and manage the user project.User-friendly and high-efficient environmentFlexible hardware configuration, you can define all types of the hardware parameters1.2General Designation in the Manual▪ Micro PLC (Programmable Logic Controller)According to the general classification rules, micro PLC generally refers to the type of PLC with the control points below 128. This type of PLC usually adopts compact structure, that is, a certain number of I/O channels, output power supply, high-speed output/input and other accessories are integrated on the CPU module.▪ CPU bodyNamely, the CPU module, it‟s the core of the control system. The user program is stored in the internal storage of the CPU module after being downloaded through the programming software, and will be executed by the CPU.Meanwhile, it also executes the CPU self-test diagnostics: checks for proper operation of the CPU, for memory areas, and for the status of any expansion modules.▪ Expansion module & expansion busThe expansion module is used to extend the functions of the CPU body and it is divided into expansion I/O module (to increase the input/output channels of the system) and expansion functional module (to expend the functions of CPU).The expansion bus connects the CPU and expansion modules, and the 16-core flat cable is adopted as the physical media. The data bus, address bus and the expansion module‟s working power supply are integrated into the expansion bus.▪ KincoBuilderThe programming software for Kinco-K5 series PLC, accords with IEC61131-3 standard KincoBuilder,presently provides LD and IL languages for convenience and efficiency in developing the control programs for your applications. KincoBuilder provides a user-friendly environment to develop and debug the programs needed to control your applications.▪ CPU firmwareIt is the “operating system”of the CPU module, and is stored in the Flash memory. At power on, it starts operation to manage and schedule all the tasks of the CPU module.▪ User programIt‟s also called user project or application program, the program written by the user to execute some specific control functions. After the user program is downloaded to the CPU module, it is stored in the FRAM. At power on, the CPU module shall read it from FRAM into RAM to execute it.▪ Main program and Scan CycleThe CPU module executes a series of tasks continuously and cyclically, and we call this cyclical execution of tasks as scan.The main program is the execution entry of the user program. In the CPU, the main program is executed once per scan cycle. Only one main program is allowed in the user program.▪ Free-protocol communicationThe CPU body provides serial communication ports that support the special programming protocol, Modbus RTU protocol (as a slave) and free protocols. Free-protocol communication mode allows your program to fully control the communication ports of the CPU. You can use free-protocol communication mode to implement user-defined communication protocols to communicate with all kinds of intelligent devices. ASCII and binary protocols are both supported.▪ I/O Image AreaIncluding input image area and output image area. At the beginning of a scan cycle, signal status are transferred from input channels to the input image area; at the end of a scan cycle, the values stored in the output image area are transferred to output channels;In order to ensure the consistency of data and to accelerate the program execution, the CPU module only access the image area during each scan cycle.▪ Retentive RangesThrough “Hardware” configuration in KincoBuilder, you can define four retentive ranges to select the areas of the RAM you want to retain on power loss. In the event that the CPU loses power, the instantaneous data in the RAM will be maintained by the super capacitor, and on the retentive ranges will be left unchanged at next power on. The retaining duration is 72 hours at normal temperature.▪ Data backupData backup is the activity that you write some data into E2PROM or FRAM through relevant instruction for permanent storage. Notice: Every type of permanent memory has its own expected life, for example, E2PROM allows 100 thousand of times of writing operations and FRAM allows 10 billions of times.Chapter II How to Use KincoBuilder … A Quick GuideIn this chapter, you will learn how to install KincoBuilder on your computer and how to program, connect and run your Kinco-K5 PLC. The purpose of this chapter is to give you a quick guide, and further details will be presented in the following chapter.2.1 Computer Requirements2.1.1 Minimum hardware requirements to run KincoBuilder:CPU: 1 GHz or higherHard disk space: at least 20M bytes of free spaceRAM: 512M or moreKeyboard, mouse, a serial communication port256-color VGA or higher, 1024*768 or higher2.1.2 Minimum Software requirements to run KincoBuilder:Operating system: Windows XP(32bit), Windows Vista(32bit), Windows7(32/64bit), Windows8 (32/64bit), Windows 8.1(32/64bit)Users may find errors when running KincoBuilder on OS of Windows 7 or above. Possible solutions are as follows:[COM] port in the Communication setting is nullKincoBuilder detects available COM port on a computer by reading the hardware information in the REGEDIT. In previous versions, KincoBuilder requires authorities from the Administrators to run; otherwise it shows null port lists.In the latest version, KincoBuilder will automatically detect branches. If KincoBuilder is not given authority to read port list, it will list ports from COM1 to COM9 for user to choose manually.KincoBuilder unable to run on computersUsers may turn to Compatibility Mode to run KincoBuilder and set as follows:Right click the shortcut of “KincoBuilder V1.5.x.x” and click [Properties];Click [Compatibility] in [Properties] dialogues, as shown in figure 2-1Figure 2-1 “Compatibility Mode” setting Figure 2-2 Open with SyncFail when using USB to RS232 convertor to communicate with PLCThe failure is caused by the driver programme of the convertor not compatible with the computer. Most of cases are caused with 64-bit Windows 7.Open KincoBuilder and find [Tool] →[Software Setting] →[Open Port Parallel], click “Open Port with Sync” and click “OK”. See figure 2-2.Afterwards KincoBuilder will open ports with sync and in most cases will successfully work.2.2 User Interface of KincoBuilderThe user interface uses standard Windows interface functionality along with a few additional features to make your development environment easy to use.Figure 2-1 User Interface of KincoBuilder▪Menu: It contains all the operation commands in KincoBuilder.▪Toolbar: It provides easy mouse access to the most frequently used operation commands.▪Statusbar: It provides status information and prompts for the operations.▪Manager: The Manager window provides a tree view of all project objects, including PROGRAM, Hardware,Global Variable, etc, and this can assist you in understanding the structure of the project. The project manager is a convenient tool for program organization and project management. A context menu will pop up when you right click on any tree node.▪Editor: It includes the Variable Table and the Program Editor (IL or LD). You can programming in the Program Editor and declare the local variables and input/output parameters of the POU in the Variable Table.▪Instructions: LD instruction set and IL instruction set. Here a tree view of all the available instructions is provided.▪Output: The Output Window displays several types of information. Select the tab at the base of the window to view the respective information: the “Compile”window displays the latest compiling information and the “Common” window displays some information concerning the latest operations.2.3 Using KincoBuilder to Create Programs for Your Applications2.3.1 Project ComponentsIn this manual, a user program and a user project have the same meaning.While programming for a specific application, you need to configure the controllers used in your control system, define symbolic variables and write all kinds of POUs, etc. In KincoBuilder, all of these data (including POUs, hardware configuration, global variables, etc.) are organized to structure a user project. You can manage the project information consistently and easily.The components of a project are described in the following table. The items marked with “Optional” are not essential components in the project, so you can ignore them.Table 2-1 Project Components2.3.2 Where to store the Project FilesWhen creating a project, KincoBuilder firstly ask you to specify a full path for the project file, and then an empty project file (with the ".kpr" extension) shall be created and saved in this path. In addition, a folder with the same name as the project shall be also created in this path; this folder is used to store all the program files, variable files and other temporary files of the project.For example, if you create a project named “example” in “c:\temp” directory, the project file path is“c:\temp\example.kpr”, and other files are stored in the “c:\temp\example” folder.2.3.3 Importing and Exporting a ProjectKincoBuilder provides [File]>[Import…] and [File]>[Export…] menu commands for you to backup and manage a project.[Export…]Compress all the files related to the current project into one backup file (with the “.zip” extension). Select the [File]> [Export…] menu command.The dialog box “Export Project…” appears, as shown in Figure 2-2.Figure 2-2 Export the ProjectSelect the path and enter the filename, then click [Save].The backup file for the current project shall be created.[Import…]Import a project from an existing backup file (with the extension .zip) and open it.Select the [File]> [Import…] menu command.The dialog box “Import Project…” appears, as shown in Figure 2-3.Figure 2-3 Import a Project: Select a backup fileSelect a backup file, and then click [Open].The following dialog box appears for you to select the directory to save the restored project files.Figure 2-4 Import a Project: Select the destination directorySelect a directory, then click [OK], and the project files shall be restored into the selected directory, withthat the restored project shall be opened.2.4 How The CPU Executes Its Tasks in a Scan Cycle?The CPU module executes a series of tasks continuously and cyclically, and we call this cyclical execution of tasks as scan. Only can the main program and interrupt routines be executed directly in the CPU module. The main program is executed once per scan cycle; an interrupt routine is executed once only on each occurrence of the interrupt event associated with it.The CPU module executes the following tasks in a scan cycle, as shown in Figure 2-11:Figure 2-5 Scan CycleExecuting the CPU diagnostics: The CPU module executes the self-test diagnostics to check for proper operation of the CPU, for memory areas, and for the status of the expansion modules.Read the inputs: The Kinco-K5 samples all the physical input channels and writes these values to the input image areas.Executing the user program: The CPU module executes the instructions in the main program continuously and updates the memory areas.Processing communication requestsWriting to the outputs: The Kinco-K5 writes the values stored in the output areas to the physical output channels.Interrupt events may occur at any moment during a scan cycle. If you use interrupts, the CPU module willinterrupt the scan cycle temporarily when the interrupt events occur and immediately execute the corresponding interrupt routines. Once the interrupt routine has been completed, control is returned to the scan cycle at the breakpoint.Figure 2-6 Execution of Interrupt Routines2.5 How to connect the computer with the Kinco-K5The CPU module provides an integrated RS232 or RS485 serial communication port to communicate with other equipments. Here we discuss how to connect a CPU module (with RS232 port) with the computer to start programming the Kinco-K5 PLC using KincoBuilder.Launch KincoBuilder, open an existing project or create a new project;Connect the serial port of the computer with that of the CPU module with a proper programming cable. Notice: RS232 connections are not hot-swappable, so you must switch off the power supply for at least one side (the CPU module or the computer) before you connect/disconnect the cable. Otherwise, the port may be damaged.②Configure the parameters of the computer‟s serial communication port. Notice: Communications can’t be established unless the serial communication parameters of the computer’s port are identical with those of the CPU’s port.Select [Tools]>[Communications…] menu command, or double-click the [Communications] node in the Manager window, or right-click the [Communications]node and select the [Open] command on the pop-up menu, then the “Communications” dialog box appears.Figure 2-7 The “Communications ” Dialog BoxSelect the station number of the target PLC in the [Remote] list box; Select a COM port used on the computer in the [Port] list box; Configure the parameters of the selected COM port (including[Baudrate], [Parity], [Data Bits] and [Stop Bits]) according to those of the CPU‟s port, and then click [OK] button to save and apply them.If you don‟t know the communication parameters of the CPU‟s port, how to acquire them?There are two ways:Select a [Port] used on the computer, then click [Search] button to make KincoBuilder search for the parameters of the online CPU module automatically. It shall take several seconds to several minutes to complete. If the search completes successfully, KincoBuilder will automatically configure the appropriate parameters for the computer.Turn off the power supply for the CPU module; Place its operation switch at STOP position; Then turn the power supply on, and now the CPU‟s port will use the default serial communication parameters: Station number, 1; Baudrate, 19200; None parity check; 8 data bits; 1 stop bit. You can configure the computer‟sserial COM port according to these parameters. Notice: Do not change the switch’s position until you have modified the CPU’s communication parameters.After you have configured the communication parameters of the computer‟s COM port, you are ready to program the Kinco-K5 PLC.2.6 How to modify the CPU’s communication parametersAfter you have connected a CPU module with the computer, you can modify its communication parameters at will using KincoBuilder.First, open the “Hardware” window by using one of the following ways:⏹Double-click the [Hardware] node in the Manager window;⏹Right-click the [Hardware] node, and then select the [Open…] command on the pop-up menu. The upper part of the hardware window shows a detailed list of the PLC modules in table form, and we call it Configuration Table. The Configuration Table represents the real configuration; you arrange your modules in the Configuration Table just as you do in a real control system.The lower part of the hardware window shows all the parameters of the selected module in the Configuration Table, and we call it Parameters Window.Select the CPU module in the Configuration Table, and then select the [Communication Ports] tab in the Parameters Window. Now, you can modify the communication parameters here, as shown in the following figure.Figure 2-8 Communication ParametersAfter you have modified the parameters, you must download them into the CPU module. Notice: The configuration parameters won’t take effect unless they are downloaded.2.7 Example: Common Steps to Create a ProjectIn order to help the beginners to understand the Kinco-K5 quickly, in the following we‟ll use a simple example to introduce some common steps for creating and debugging a project step by step. Please refer to the related sections to know a specific function in detail in the following chapters.Assume that we shall create the following project:Project: named “Example”;Hardware: a Kinco-K506-24A T CPU module;Control logic: Toggle Q0.0---Q0.7 in turn and cyclically. For better structure, we use two POUs: a subroutine named “Demo” to realize the control logic; the Main Program named “Main” in which “Demo”is invoked.Firstly, launch KincoBuilder.If necessary, modify the defaults used in KincoBuilder by using the following way:Select the [Tools]>[Options…] menu commandThe “Options” dialog box appears, in which you can configure some defaults, e.g. the default “Programming language”, etc. These defaults will be saved automatically; and so you just need configure them once before the next modification.Default programming language is [LD Ladder Diagram].Create a new project by using one of the following ways:Select the [File]>[New project...] menu commandClick the icon in the toolbarThe “New Project…” dialog box appears. You just need to enter the project name and assign its directory, and then click [Save], the new project shall be created.For this example, let‟s select “D:\temp” as the project directory, and name the project as “Example”.Modify the hardware configuration. You can configure the hardware at any time. However, because the hardware configuration is necessary for a project, you are recommended to complete it at first.When a new project has been created, KincoBuilder will automatically add a default CPU assigned in the “Options” dialog box.You can open the “Hardware” window by using one of the following ways:⏹Double-click the [Hardware] node in the Manager window;⏹Right-click the [Hardware] node, and then select the [Open…] command on the pop-up menu. Please refer to 2.6 How to modify the CPU‟s communication parameters for detailed steps.For this example, a Kinco-K506-24A T module with the default parameters is used.Initializing dataYou may initialize the data at any time. You may assign initial values to BYTE, WORD, DWORD, INT, DINT and REAL variables in V area. Before CPU is turned power on and enters into the main loop, the initial data will be processed and the initial values assigned by the user will be valued corresponding addresses.NOTE: Any memory areas that permanently saved by orders as “initialize data”or “data maintain”will be recovered or valued after CPU enters into the main loop. They will follow a sequence: recover the memory as per defined in “data maintain”, initialize value of areas as per defined in “initialize data”, recover permanently saved data as per defined by users.Create the example programs.KincoBuilder provides IL and LD programming languages. You can select the [Project]>[IL] or [Project]>[LD] menu command to change the current POU‟s language at will.For this example, a main program named “Main”and a subroutine named “Demo”shall be written in LD language.。

Kinco步科触摸屏MT4620TE配置教程

Kinco步科触摸屏MT4620TE配置教程

Kinco步科触摸屏MT4620TE配置教程
MT4620TE的编程软件为“Kinco HMIware_v2.1(Build130805)_20130808”,而非“EV5000_V1.7_CHS”。

目的是完成触摸屏新IP设置,通过网口或USB线完成程序下载。

NO.1 网口下载办法
一、查看触摸屏原始IP的方法。

打开触摸屏后侧盖,将DIP开关1和2都拨到ON,如图1,按RESET重启触摸屏,即可看到如图2所示画面。

图1
图2
二、将编程电脑IP设为与触摸屏同网段IP,如图3。

图3
再点按钮,可见图4如下。

图4
点上面的按钮,添加100网段IP如图5,填写完毕点,结果如图6。

图5
图6
三、确定调试笔记本与触摸屏联通。

在运行栏输入ping 192.168.0.253 –t,如图7,确定后,如图8。

图7
图8
四、将DIP开关1和2拨回OFF,按RESET重启。

五、打开HMI程序,从菜单栏选择如下图9。

图9
设置如下图10:
图10
六、打开HMI属性如图11。

图11
设置如下图12:
图12
七、保存,编译后,下载程序,如图13。

图13
八、完成,如图14。

图14
NO.2 USB线下载办法
一、装好USB驱动,“步科触摸屏USB下载线驱动”。

二、下载方式选择,如下图15。

图15
三、保存,编译后,下载程序。

全文完。

相关主题
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

..
入门阶
一、软件安装
1.手册中术语介绍
2.使用软件注意事项
1).kinco HMIware 只能向下兼容不向上兼容,即低版本打不开高版本。

2)使用工程密码保护、上传密码和反编译密码,请务必牢记密码步科公司不提供恢复出厂设置。

3.软件简介
kinco HMIware组态编辑软件(以下简称kinco HMIware)是上海步科自动股份有限公司的。

4.使用步骤
5.软件运行安装要求
1)使用win7操作系统时不要将软件安装在C盘(系统盘)
2)使用win7打开软件时必须右键图标,以管理员身份登录;
.
资料Word
..
6.语言切换
‘选项'--- “语言切换”—“简体中文”
驱动
USB驱动只能手动安装不能自动安装。

必须采用以下步骤进行安装。

1)用USB连接触摸屏USB口与电脑USB口;
2)PC弹出“硬件更新向导”---从列表或制定位置安装—下一步---单机浏览---kincoware
中的drive 驱动。

二、制作工程
1.新建工程
2.在通讯连接中选择设备的通讯方式从元件窗口拖拽通讯方式:(客户要求我们的设备是要走以太网的)。

所以根据IP分配,触摸屏地址为(192.168.1.143)
.
资料Word
..
PLC选择、触摸屏(全部在左侧元件列表中寻找)3.
4.通讯连接
5.触摸屏组态画面设计
.
资料Word
..
6.更改背景属性颜色
1.在当前页面空白处双击—弹出窗口属性对话框—更改背景颜色---选择自定义颜色
7.添加文字
.
资料Word
..
8.打开非kinco DTOOLs制作的工程
打开KINCO HMIWARE的工程,方法如下图,不是所有的kinco HMIware 文件都能打开
进阶篇
1.用户界面介绍
.
资料Word
..
2.工具栏介绍
.
资料Word
..
2.1 元件视图:在“plc 元件列表”的空白处右键鼠标,可以进行大\小图标的切换。

.
资料Word
..
小图标
2.2工程结构窗口
2.3有时为了方便查看自己的触摸屏到底使用了哪些软元件:可以在:“查看—元件列表”
.
资料Word
..
设计方法画面切换:是当前窗口画面(或已经打开的子窗口)关闭,并打开另一个指定的窗口。

它有两种方法:
1)使用功能键切换;
.
资料Word
..
2)使用PLC控制:“元件中的PLC控制”指定控制字地址。

通过改变自地址切换到对应的编号的基本画面
基本窗口
1.不同类型的窗口画面设置显示未知的方式不同。

a.根据软元件的位置;在编辑状态下“直接窗口”或“间接窗口”元件位置的位置即显示的位置。

b.根据变量值来确定;设置“直接窗口”或“间接窗口”元件属性使用自定义显
示坐标。

指定字寄存器的值即为窗口运行的位置。

.
资料Word
..
2.字体
触摸屏中使用过多的字体会造导致字体文件个数增加导致编译速度变慢、下载速度及画面切换速度过慢。

3.数字(在基本窗口中—元件---数值/ 文本-数值输入—数字—上下限)
.
资料Word
..
4.键盘
1)使用公共窗口键盘。

5.多语言切换
在Kinco DTOOL中,用户可将用多种语言编写的容预先登录到文件库里。

运行时通过改变Kinco DTOOL提供的系统寄存器LW9130的值来切换显示字体。

.
资料Word
..
5.时钟
通过特殊寄存器校准时间。

显示效果
.
资料Word
..
6.更改串口/型号切换
在“窗口---拓扑结构窗口”调出配置图。

然后右键触摸屏选择串口更改或者型号切换。

如下图
7.索引寄存器
通过改变寄存器的值从而改变操作对象的地址。

这个寄存器就叫做索引寄存器。

而实际操作地址=原操作地址+索引值。

8.触摸屏蜂鸣器的声音取消
在“窗口—拓扑窗口”右键触摸屏图标,找到属性—触摸屏扩展属性。

.
资料Word
..
1.窗口:
窗口是HMI程序的基本元素,每个画面都是由些窗口组成的。

有了窗口才能放置图形、画面上。

HMI文字显示在2.文本显示器
.
资料Word
..
文本显示元件是将指定的HMI部寄存器或PLC 控制器字寄存器部数据按照ASCII码解析后,以字符串的形式显示出来。

文本显示元件不支持多行显示。

3.报警显示
报警显示元件用于显示已在“报警信息登录”中登记过的且当前状态满足触发条件的报警信息。

4.直接窗口
直接窗口根据HMI部寄存器或PLC控制器寄存器位状态来显示指定窗口的窗口
容。

5.间接窗口
间接窗口可显示与HMI部寄存器或PLC控制器寄存器里的数据相同且已创建的
窗口编号对应的窗口容。

.
资料Word
..
宏指令
1.宏指令定义:
宏指令使用C语言源代码编辑的方式来满足逻辑和算术运算等特殊应用。

2.宏代码编辑环境
宏编辑环境主要有:宏编辑窗口、
宏变量窗口、工程文件列表三个部分组成。

.
资料Word
..
3.创建宏代码
1)点击工具栏上的M符号,
2)选择触摸屏编号及创建宏名称
3.编写宏代码
编写宏代码首先要先进行宏变量的定义:在变量窗口进行右键单击-增加变量。

4.使用宏时的注意事项
.
资料Word
..
5.宏代码编写
6.数组的应用
数组实际上是一组具有相同数据类型和名称的变量集合。

每个数组元素都有一个编号,这个编号
叫做下标,数组元素的个数也叫做数组长度。

用一个变量名称和一个下标来表示数组中的一个变量。

例如data{0}表示数组中的第一个变量,“data”表示数组名称,后面的0是下标。

7.使用宏的注意点
宏代码中所读取的外部变量的值是在宏被触发时一次性读取的,宏运行时不会再次或多次读取。

.
资料Word
..
密码
1.工程密码
1)单击编辑软件中的文件—工程密码保护;
上传密码 2.在“拓扑窗口”---“HMI属性”—勾选允许上传,设置密码
.
资料Word
..
3.安全等级
与用户权限有关的系统保留寄存器
.
资料Word
..
.
资料Word
..
补充
1.语言切换
Kincoware 中,用户可将用多种语言编写的容语言登录到文本库里,运行时通过更改Kincoware提供的系统特殊寄存器LW9130的值来切换各语言对应的值。

2.画面切换开关
画面切换开关使用的是功能键
3.字地址多状态显示
“元件—指示灯---多状态显示”。

4.报警
“报警显示元件用于“已在报警信息登录”中登录过的,且满足触发条件的报警信息容。

5.做间接窗口(也就是读取数据寄存器的值来进行弹窗)选择左侧“PLC元件”,---“多状态设定”—“多状态设定”-“设置常数”
6.如果想用一个元件来执行两种开关的功能。

就可以采用组合操作元件。

选择菜单栏“按钮/开关”,---“组合元件”—元件属性—右键添加位状态设定和多状态设定元件。

6.1.位状态设定开关只支持开、关、切换开关
.
资料Word
..
6.2.多状态设定元件只支持设定常熟,加、减类型。

7.如果想用一个元件来执行两种开关的功能。

就可以采用组合操作元件。

8. 增加任意编号的画面。

点击右侧-“树形结构”—“增加组态画面”-“自定义”—更改画面编号。

9.查询历史报警时间(外设历史事件)
1.先存储历史事件:点击窗口—拓扑窗口—双击触摸屏—历史事件存储
10.用户登录
1)为了防止不是这个工位的人操作这个机台,操作工需要输入密码才能进入产线信息界面
2)为了防止操作工乱修改设备里的参数,生产线、工序和生产机型,这三项参数需要工程师或者管理员权限才能修改。

11.去掉现触摸屏中的任务栏
点击触摸屏属性中的去掉任务栏
位状态设定元件。

位状态设定元件,它不能显示元件开关的本身状态。

位状态切换元件。

位状态切换元件,它显示元件本身的状态。

文本元件。

文本元件包括文本输入、记事本和文本显示元件,主要用于将数据按照ASCII码解析后以字符串的形式存入指定的字符串中。

做产量百分比
1.步科触摸屏使用的是棒图的元件进行设计。

它是以HMI柱状图百分比的方式显示指定的HI部寄存.
资料Word
..
器或者是PLC控制寄存器的数据,即读取的实际值与设定值之间的百分比方式表示出来。

.
资料Word。

相关文档
最新文档