mrferrys/beckhoffplcsoapclient
Composer 安装命令:
composer require mrferrys/beckhoffplcsoapclient
包简介
SoapClient to communicate with BeckHoff PLC
README 文档
README
SoapClient to communicate with BeckHoff PLC. Library made in PHP based on TcAdsWebService JavaScript Library.
Description
SoapClient to communicate with BeckHoff PLC. Library made in PHP based on TcAdsWebService JavaScript Library.
Getting Started
Dependencies
- PHP >= 5
Installation
composer require mrferrys/beckhoffplcsoapclient
Usage
- How to use it.
use mrferrys\beckhoffplcsoapclient\plcHandler as plcHandler;
$pHandler= new plcHandler(
"http://172.16.23.102/TcAdsWebService/TcAdsWebService.dll",
"http://172.16.23.102/TcAdsWebService/TcAdsWebService.WSDL",
"5.21.99.2.1.1",
"801");
print_r($pHandler->exec("GetFunctions"));
$pHandler->getSymbolTable();
foreach($pHandler->symbolTable as $k=>$v){
echo "$k \n";
}
echo "STARTING\n";
$pHandler->writeSymbolByName(".CLAS2_PARO_EMERGENCIA",true,"c");
sleep(5);
$pHandler->writeSymbolByName(".CLAS2_PARO_EMERGENCIA",false,"c");
echo "DONE\n";
$pHandler= new plcHandler(
"http://172.16.22.140/TcAdsWebService/TcAdsWebService.dll",
"http://172.16.22.140/TcAdsWebService/TcAdsWebService.WSDL",
"172.16.22.140.1.1",
"801");
$pHandler->getSymbolTable();
foreach($pHandler->symbolTable as $k=>$v){
echo "$k \n";
}
Authors
MrFerrys
Version History
- 1.0.0
- Initial Release (X.Y.Z MAJOR.MINOR.PATCH)
License
This project is licensed under the MiT License - see the LICENSE file for details
Acknowledgments
TcAdsWebService
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MiT
- 更新时间: 2022-02-19