theunknownones / phosphor7 Goto Github PK
View Code? Open in Web Editor NEWThe translation of the fabulous Snap7 library to PHP
License: Apache License 2.0
The translation of the fabulous Snap7 library to PHP
License: Apache License 2.0
Just a note on the 1200 PLC Series.
To use the PHP script with a 1200 PLC the DB should not be optimized.
Remove the Optimize DB tick on the DB Properties.
hello @chaosben,
I would like to apply to be (one of the) new maintain(ers). I have hardware and even so now and then projects to apply this software.
Not sure how this works...
I anyone else would like to support me... feel free to apply as well!
BR Martijn
require_once("../src/phosphor7.php");
$c = new TSnap7MicroClient();
$c->ConnectTo("10.11.6.2", 0, 0);
$buffer = "";
$c->DBRead(7, 48, 2, $buffer); // I want read value of energy
var_dump(bin2hex($buffer));
$c->Disconnect();
I have in output 477d but it is false ( because is not real)
Connecting with Siemens LOGO OBA8 and PHP7.4, read and write examples works (/phosphor7/examples/ ).
Using PHP8.0 DBRead function return wrong values.
Any feedback with PHP8?
Great job!
But in s7_phphelper::getS7_Int read 4 bytes. In S7-300 the Int data is 16 bit length, so I change in 2 bytes and it work fine.
Please check also s7_phphelper::getS7_DInt. DInt in S7-300 is 4 bytes.
Ciao.
Hi Benjamin,
any future plan to update this library?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.