锦方的个人网页 · 如果有一天你突然想起了我


linux install OpenPLC

目录

安装

1、使用apt-get安装数据包

​``` sudo apt-get update sudo apt-get install build-essential pkg-config bison flex sudo apt-get install autoconf automake libtool make nodejs git

### 2、克隆github上的OpenPLC存储库

git clone https://github.com/thiagoralves/OpenPLC_v2.git

3、构建OpenPLC

cd OpenPLC_v2 ./build.sh

### OpenPLC需要一个驱动程序来控制物理或虚拟硬件

1) Blank              4) RaspberryPi        7) ESP8266
2) Modbus             5) UniPi              8) Arduino+RaspberryPi
3) Fischertechnik     6) Arduino            9) Simulink

#### 因为有个树梅派所以我选择了9

## 安装PLCopen Editor
### [下载编辑器](http://www.openplcproject.com/plcopen-editor)
### 需要安装依赖包  

sudo apt-get install python-wxgtk3.0 sudo apt-get install pyro sudo apt-get install python-numpy sudo apt-get install python-nevow sudo apt-get install python-matplotlib sudo apt-get install python-lxml

### 安装上面列出的所有软件包后,在PLCopen Editor的解压文件夹内输入:

python PLCOpenEditor.py



## 运行OpenPLC

### 错误


module.js:340
    throw err;
          ^
Error: Cannot find module '/home/jin/server.js'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:906:3


### 解决错误

#### 原因是上面驱动程序的选择,由于我是使用电脑来运行plc所以要选择第一个空白驱动。进到OpenPLC_v2文件夹重新构建选择第一个空白驱动。

### 上传.st文件 

sudo nodejs server.js

系列:install

该系列自动来自分类: install

  1. 部署calibre-web
  2. 重装mac os
  3. mac os上直接使用NTFS
  4. 再也不买不能解bl的手机了
  5. Firefox设置
  6. Debian安装nextcloud
  7. OpenBSD在VirtualBox和安装xfce
  8. 使用PGP
  9. 改变MAC地址
  10. 在小内存设备上安装bitcoin core钱包
  11. 把hexo移到了mac上
  12. 在debian8的服务器使用v2ray的TLS
  13. debian安装FFmpeg来合并youtube音频
  14. 使用youtube-dl下载Youtube视频
  15. debian安装steem钱包失败
  16. debian在U盘上安装tails
  17. linux生成随机密码
  18. debian安装Resilio Sync
  19. linux install OpenPLC (当前)
  20. debian桌面端安装DraftSight
  21. debian桌面端安装virtualbox和安卓模拟器
  22. china uses dropbox
  23. Nginx installs SSL certificates
  24. debian install shadowsocks
  25. Visual studio code set the python environment
  26. 在vps上安装 shadowsocks
  27. install hexo

下一篇推荐

系列继续阅读

debian桌面端安装DraftSight