首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > PHP > Modbus库PHP

Modbus库PHP

  • 资源大小:32.76 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: php modbus

资 源 简 介

PhpModbus This project deals with an implementation of the basic functionality of the Modbus TCP and UDP based protocol using PHP. The project continues at https://github.com/krakorj/phpmodbus Implemented features: * Modbus master * FC1 - Read coils * FC2 - Read input discretes * FC3 - Read holding registers * FC4 - Read holding input registers * FC5 - Write single coil * FC6 - Write single register * FC15 - Write multiple coils * FC16 - Write multiple registers * FC23 - Read/Write multiple registers [![](https://www.paypalobjects.com/enUS/i/btn/btndonateSM.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=s-xclick&hostedbuttonid=PCZY3Z2623XTU) Example: ``` requireonce dirname(FILE__) . "/Phpmodbus/ModbusMaster.php"; // Modbus master UDP $modbus = new ModbusMaster("192.168.1.1", "UDP"); // Read multiple registers try { $recData = $modbus->readMultipleRegisters(0, 12288,

文 件 列 表

doc
classtrees_Phpmodbus.html
elementindex.html
elementindex_Phpmodbus.html
errors.html
index.html
li_Phpmodbus.html
media
packages.html
Phpmodbus

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP