initial commit with all the stuff

This commit is contained in:
2025-11-23 13:27:23 +01:00
parent 3f7069b328
commit 1c8a143e7a
5241 changed files with 986176 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
PLC = require('modbus')
socket = require('socket')
plc = PLC.Modbus("pi_daq",502)
function setup()
if ( plc ) then
print("OK")
end
end
function loop()
if ( plc ) then
plc:sync();
print(plc:getReal(1))
end
socket.sleep(0.5)
end
setup()
while 1 do
loop()
end