Aktueller Inhalt von Jooster

  1. J

    PHP + Siemens PLC

    runs perfectly on openwrt router with php 5.6 (when packages php5, php5-cgi, php5-mod-json, php5-mod-socktets, php5-mod-session & zoneinfo-europe are installed) php 7 doesn't seem to work here (openwrt and easyphp on windows) but it could be my mistake i don't know much of php
  2. J

    PHP + Siemens PLC

    Anyone got this running in PHP 7? ( s7plc_db-2014-05-02.zip )
  3. J

    PHP + Siemens PLC

    You are right I didn't notice that comma :rolleyes: What's the problem with straight away setting the outputs? Working with a datablock seems one step extra for the same result?
  4. J

    PHP + Siemens PLC

    Hi, I'm trying to toggle an ausgang (in stead of toggle a datablock bit, which works perfectly btw :-)) for at least one cycle. In my plc I have 48 ausgangen (Q0.0 to Q5.7) for example I want to change the value of Q0.4 I have added a line to config_blocks.csv: "Plc1Ausgangen;Plc1;A;0,0;6"...
  5. J

    PHP + Siemens PLC

    thanks the WriteBit function worked out of the box the ReadBytes function i had to add this middle line to s7plc.php: $recv = substr ($recv, $offs + 25); $recv = str_pad(decbin(ord($recv)),8, "0", STR_PAD_LEFT); return $recv;
  6. J

    PHP + Siemens PLC

    Thank you that works really nice :-) Is there an easy way to just read/write a bool/bit in the DB1? (without using AJAX or JSON or any complicated PHP stuff ;-)) something like: <html> <head> <title>PHP Test</title> </head> <body> <?php include 's7plc.php'; echo "The current state...
  7. J

    PHP + Siemens PLC

    Hello guys, I'm not a plc programmer nor a pc programmer (just a "power"-electrician) so this might be a newbie question for this forum (but i still remember some plc&pc programming from a long time ago): For my domotica at home I used this for example for a light controlled with one...
Zurück
Oben