码农知识堂 - 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

  • 相关阅读:
    傅里叶系列 P1 的定价选项
    文盘 Rust -- tokio 绑定 cpu 实践
    如何配置ssh免密登录
    squid代理服务器
    希尔排序 java
    深度学习之pytorch 中 torch.nn介绍
    安卓APP源码和设计报告——麻雀笔记
    【Spring】bean的配置
    外语配音软件“布谷鸟配音“和ffmepg转换软件的使用以及SYD_Calculator提取文件到C语言
    三分钟速览GPT系列原理
  • 原文地址:https://blog.csdn.net/berryreload/article/details/133952715
  • 最新文章
  • 攻防演习之三天拿下官网站群
    数据安全治理学习——前期安全规划和安全管理体系建设
    企业安全 | 企业内一次钓鱼演练准备过程
    内网渗透测试 | Kerberos协议及其部分攻击手法
    0day的产生 | 不懂代码的"代码审计"
    安装scrcpy-client模块av模块异常,环境问题解决方案
    leetcode hot100【LeetCode 279. 完全平方数】java实现
    OpenWrt下安装Mosquitto
    AnatoMask论文汇总
    【AI日记】24.11.01 LangChain、openai api和github copilot
  • 热门文章
  • 十款代码表白小特效 一个比一个浪漫 赶紧收藏起来吧!!!
    奉劝各位学弟学妹们,该打造你的技术影响力了!
    五年了,我在 CSDN 的两个一百万。
    Java俄罗斯方块,老程序员花了一个周末,连接中学年代!
    面试官都震惊,你这网络基础可以啊!
    你真的会用百度吗?我不信 — 那些不为人知的搜索引擎语法
    心情不好的时候,用 Python 画棵樱花树送给自己吧
    通宵一晚做出来的一款类似CS的第一人称射击游戏Demo!原来做游戏也不是很难,连憨憨学妹都学会了!
    13 万字 C 语言从入门到精通保姆级教程2021 年版
    10行代码集2000张美女图,Python爬虫120例,再上征途
Copyright © 2022 侵权请联系2656653265@qq.com    京ICP备2022015340号-1
正则表达式工具 cron表达式工具 密码生成工具

京公网安备 11010502049817号