一、系统环境
·
1、系统环境需求
·
测试系统环境:优麒麟1910
·
2、组态软件:紫金桥跨平台实时数据库V1.0.31(build 2020-03-16)(X64)
·
二、工程管理器
·
- ······ 用户通过紫金桥跨平台实时数据库开发的项目称为工程,用户通过工程管理器中集中管理本机上的所有工程,包括创建、修改和保存。通常用户在使用本软件时,需要进行各种组态,同时也需要保存许多的设置,比如组态画面运行,创建各种类型的数据库点,进行IO 采集连接等等。软件会把这些组态和设置信息以文件的形式保存在硬盘上。这些按照不同的组织结构生成的文件的集合我们称之为工程,它保存了用户组态的所有信息。
· - ······紫金桥跨平台实时数据库工程管理器的主要功能包括:新建工程,进入开发、进入运行,搜索工程、设为缺省工程,工程备份、工程恢复、删除工程,软件授权、保存设置、退出工程等。紫金桥跨平台实时数据库工程管理器界面内容清晰,简洁友好,本章将对工程管理器中工具栏及菜单的使用方法进行详细介绍。
·····················
·三、新建工程
·
··········紫金桥跨平台实时数据库使用“工程管理器”来集中管理本机上所有工程的,用户如
果想创建一个新的工程,必须首先启动“工程管理器”。
·
·········工程管理器工具栏中图标 为创建新工程,点击打开如下工程属性对话框:
·····································
·
新建工程操作步骤如下:- 在名称文本框中输入所需工程名称,建议尽量不要使用中文名称。
- 在“说明”中可输入中、英文内容,作为工程备注或注释内容。
- 直接在“路径”编辑框中输入指定路径或单击 按钮,选择正确路径。新建工
程时,紫金桥跨平台实时数据库会默认给出工程路径,该路径位于软件安装目录中,用户
可根据需要进行修改, 注意:禁止使用中文名称。 - 点击“ok”按钮,这时您可以在“工程管理器”的工程列表中找到您刚刚创建的工
程,即表明创建成功。
·
四、进入开发环境
·
············步骤3新建工程完毕后,点击开发,进入开发环境。
·
············
·················································组态开发环境
·
由于开发环境中功能非常多,本篇就不做介绍。
·
① 新建一个窗口
······································
·
创建一个窗口,名为win1
·
······························
····················································窗口属性
·
②创建一个modbus设备,读modbus仪表数据
·
·······················
·
··········································选择modbus驱动,新建设备yb1
·
·························
·
······················································设置ip和端口
·
··························
·
·······················································其他参数配置
·
点击完成,完成设备组态。
·
③新建数据库变量,读仪表数据
·················
·······················
·
·······················································基本参数定义
·
·······················
·
······················································报警参数设置
·
··························
·
·····························································IO连接
·
----------------------------
·
···························································历史保存设置
·
·
·····················································
····················
······················批量粘贴,新建的点的参数会自动继承,IO链接也会自动智能递增。
·
·
④画面组态
·························
················································点击子图,选择仪表,添加
········································
····················································双击仪表,绑定变量
·
·
PS:子图里所有内容都是使用软件自身功能组态实现的,用户可以完全自由灵活制作自己的子图。
·
·
·····························
··························································添加趋势曲线
·······················
····························································设置曲线参数
·
按上面方式,再添加一个报警组件。
·
画面上添加文本,用来显示对应的数值
·
五、运行工程
···············
·······························································运行效果
·
当然,软件支持查看驱动报文信息,方便通讯排故。
·················
·
实时数据库DB信息
··················
·
·
五、工程的跨平台
·
··········Windows下的工程与linux下的工程完全兼容,互相通用。
·····························
·····························将windows下工程“powerstation” 复制到linux系统下
·
·
搜索并加载工程
·················
·
·
进入工程
···············
·
·
运行工程:
·
·············
·············
·············
来源:51CTO
作者:qq5e7ae86ca7d91
链接:https://blog.51cto.com/14766912/2482013