当前位置: 首页 > news >正文

Step7 组态 PC Station 与 CM1243-5 基于 Profibus 的 S7 通信

Step7 组态PC Station 与 S7-1200 CM1243-5 基于Profibus 的S7 通信

硬件:
CPU1214C DC/DC/DC,V2.2
CM1243-5
CP5611 A2

软件:
STEP 7 V5.5
SIMATIC NET V8.2
STEP7 V11 SP2 Update5

由于CM1243-5 支持S7通信,因此,可以使用SIMATIC NET 组态的OPC 服务器与其建立S7通信连接。

操作步骤

1、使用 STEP7 V11 生成 S7-1200 项目文件

通过“添加新设备”组态 S7-1200 站PLC_1,选择 CPU1214C DC/DC/DC V2.2 创建项目。 如图1所示。

A screenshot of a computerDescription automatically generated

图1 创建 S7-1200 项目文件

组态 CM1243-5 ,为 CM1243-5 添加子网PROFIBUS _1,分配站地址为2 。 如图2 所示。

A screenshot of a computerDescription automatically generated

图2 组态 CM1243-5

点击添加新块,生成块访问方式为“标准-与S7-300/400兼容”模式全局块数据块 DB1。如图3 所示。

A screenshot of a computerDescription automatically generated

图3 创建DB块

双击 DB 1,添加数据元素 data,数组数据类型, 1000个字节,编译 DB 1。如图4所示。

A screenshot of a computerDescription automatically generated

图4 创建DB块元素

编译PLC_1站,下载到 CPU。

2、用STEP 7 组态SIMATIC PC Station

(1)打开STEP7 V5.5 生成新项目CM1243-5,在项目中添加SIMATIC PC Station。

A screenshot of a computer programDescription automatically generated

图5 建立PC站

双击Configuration进入PC站的硬件组态。

A computer screen shot of a computerDescription automatically generated

图6 进入硬件组态

添加OPC Server。

A screenshot of a computer programDescription automatically generated

图7 添加OPC Server

添加CP5611 ,为CP5611添加新网PROFIBUS(1),并选择地址为0,编译存盘。

A screenshot of a computerDescription automatically generated

图8 添加CP卡

(2)组态网络连接
双击

进入网络组态,点亮OPC Server,在连接编辑栏右键插入新的连接,建立一个连接对象为 Unspecified 的 S7 Connection,点击 OK 确认连接。

A screenshot of a computerDescription automatically generated

图9 建立S7连接

双击连接组态连接参数。在General中选择连接伙伴的PROFIBUS 地址为2,点击Address Details 定义连接伙伴 S7-1200 CPU 的 TSAP(03 00和03 01都可以)。

A screenshot of a computerDescription automatically generated

图10 修改参数

点击 OPC Server 站右键选择 Object Properties,在接下来的对话框中的 Configuration 选择生产.xdb 文件的路径,默认路径为项目文件的目录XDBs。

A screenshot of a computerDescription automatically generated

图11 设置XDB路径

(3)导入组态到 OPC Server
双击“Station Configurator”进入“Station Configuration Editor”,点击“Import Station” 导入(2)中生成的文件“pcst_1.xdb”。

A screenshot of a computerDescription automatically generated

图12 导入XDB文件

A screenshot of a computerDescription automatically generated

图13 浏览到XDB文件

组态正确导入后,连接建立。

A screenshot of a computerDescription automatically generated

图14 导入完成

3、检查通信连接

计算机开始菜单,执 行SIMATIC NET的 OPC Scout V10 打开“Server Explorer”。

图15 打开OPC Scout

打开“S7”中“S7 connection_1”的“objects”,添加变量,将添加的变量拖入到 “DA view”,点击“Monitoring ON ”查看变量状态。

A computer screen shot of a computerDescription automatically generated

图16 监视变量

打开 PLC 变量表比较变量的值。

A screenshot of a computerDescription automatically generated

图17 监视DB

http://www.dtcms.com/a/586209.html

相关文章:

  • wordpress主题那个好河源网站页面优化ppt
  • 【信号处理】(高斯分布)最大熵定理
  • 网站备案号查电话号码php建站程序
  • 遵化建设局网站近期新闻热点大事件
  • 教育类集群网站建设python做网站优势
  • 未成年人思想道德建设网站招标网上的项目好中标吗
  • 【C++】封装哈希桶实现unordered_map和unordered_set
  • 多语言网站建设应注意哪些事项做沙盘实训在哪个网站做
  • 沈阳专业制作网站东莞家具网站建设
  • 制造业营销外贸网站建设手机网站建设 技术规范
  • C# var 关键字详解:从入门到精通
  • 使用 SQLAlchemy 连接数据库:从基础到最佳实践
  • 如何使用Profiler进行内存分析?
  • 12306网站开发携程网站建设计划管理与进度控制
  • 淮南电商网站建设价格新校区建设网站管理规定
  • 进入新岗位的第一课——潜龙勿用
  • DeepSeek辅助编写转换DuckDB explain_analyze_json 格式执行计划到postgresql_plan 的程序
  • 旅游网站网页设计图片网络营销和网络销售的区别
  • STM32H743-ARM例程41-FMC_INDEP
  • 网站怎么申请百度小程序室内设计师网上培训班
  • 【Java 并发编程】线程创建 6 种方式:Thread/Runnable/Callable 核心类解析+线程池使用说明
  • 第四课:时序逻辑进阶 - 有限状态机(FSM)设计
  • Unicode全字符集加解密工具 - 强大的编码转换GUI应用
  • 网站管理和维护设计师学编程能自己做网站吗
  • PyInstaller 工具使用文档及打包教程
  • 怎么建商业网站外国广告公司网站
  • USB Gadget 技术
  • 常州小型网站建设北京电商网站开发公司哪家好
  • 1108秋招随记
  • 做自己视频教程的网站wordpress去除谷歌