码农知识堂 - 1000bd
  •   Python
  •   PHP
  •   JS/TS
  •   JAVA
  •   C/C++
  •   C#
  •   GO
  •   Kotlin
  •   Swift
  • softplc windows 安装测试


    下载 .NET 6.0 (Linux、macOS 和 Windows)

    安装后 在这里

    The command could not be loaded, possibly because:
      * You intended to execute a .NET application:
          The application 'restore' does not exist.
      * You intended to execute a .NET SDK command:
          No .NET SDKs were found.

    Download a .NET SDK:
    https://aka.ms/dotnet/download

    Learn about SDK resolution:
    https://aka.ms/dotnet/sdk-not-found

    dotnet restore

    dotnet build

    C:\Users\Administrator\Desktop\SoftPlc-master\SoftPlc-master\SoftPlc

    copy native\win\snap7.dll bin\Debug\net6.0\

    set COREHOST_TRACE=1

    cd D:\SoftPlc

    dotnet bin\Debug\net6.0\SoftPlc.dll -e  DATA_PATH=D:\softpc\demodata\datablocks.json --plcPort=102 --urls="http://localhost:8080/"

    例子数据内容: https://github.com/fbarresi/SoftPlc/blob/master/SoftPlc/demodata/README.md

    All mentioned byte indices are 0-based!

    The first 16 bytes are a ASCII encoded String Hello, S7! with trailing spaces.
    byte 16/17 are the max/min value of a signed byte (127/-128)
    bytes 32-33/34-35 are the max/min value of a signed short
    bytes 48-51/52-55 are the max/min value of a signed integer
    bytes 64-71/72-79 are the max/min value of a signed long
    bytes 80-83/84-87 are the max/min value of a float
    bytes 96-103/104-111 are the max/min value of a double
    bytes 1024-2048 are just bytes starting from 0 continousely incremented
     

    仿真PLC:  DB1的   地址段 2048 Byte

    2048个byte: DBB0 -- DBB2047 ( 后面的数字是十进制表示)

    1 读写 前两个byte: DBW0  (word 16位, 两个byte)
                                             DBB0 - DBB1的两个byte
    2 读写 前两个byte:DBW2  - 2是起始地址 DBB2
                          DBB2 - DBB3
    3 读写 前两个byte:DBW4  - 4是起始地址 DBB4
                          DBB4 - DBB5
    4 读写 4个byte   :DBD6  - 6是起始地址 DBB6
                          DBB6 - DBB9

    B: Byte
    W: word (wbyte)
    X: DBX8.1(第8个byte的第一位)
    Sting: DB1.DBX20

  • 相关阅读:
    1.ODBC连接Postgresql
    Python基础之列表,元组,字典,集合,推导式,迭代器
    年薪20w+,做测试的第4年,从手工测试到自动化测试每一步都是艰难的~
    从X Fold+折叠屏手机再议vivo的用户导向创新思维
    uni-app集成mui-player
    JMeter 扩展插件实现对自定义协议的支持
    课程思政案例
    解决库存扣减及订单创建时防止并发死锁的问题
    淘宝官方开放平台API接口获取淘宝商品详情信息(价格、销量、优惠价等)
    爱奇艺极速版刷视频
  • 原文地址:https://blog.csdn.net/berryreload/article/details/133952715
  • 最新文章
  • 【JVM】编译执行与解释执行的区别是什么?JVM 使用哪种方式?
    用 Hashids 优雅解决 C 端自增 ID 暴露问题
    V8引擎 精品漫游指南--Ignition篇(上) 指令 栈帧 槽位 调用约定 内存布局 基础内容
    LLVM Pass快速入门(四):代码插桩
    milkup:桌面端 markdown AI续写和即时渲染
    基于项目工程构建SBOM(软件物料清单)的研究
    鸿蒙应用开发UI基础第二节:鸿蒙应用程序框架核心解析与实操
    .NET 中如何快速实现 List 集合去重?
    扣子Coze实战:从0到1打造抖音+小红书热点监控智能体
    浅谈数据访问层
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
小工具 小游戏
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1

京公网安备 11010502049817号