Hello
I work in my house whith industrial plc. (beckhoff twincact 2).
I have installed domoticz on os off plc windows 7 embded.
Is working very well.
I have succefull send data plc to domoticz by json.
Now i have problem to send domoticz to plc.
I have open tcp socket on my plc but is not http port.
And http poller has not working to send data.
But in putty i can send data in raw format in plc.
Have you an idea to send data in simple tcp format in plc?
Thanks
tcp poller
Moderators: leecollings, remb0
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: tcp poller
Use a device with in the On action a (bash or other) script that will send the data with netcatvttland wrote: ↑Thursday 06 December 2018 20:42 Hello
I work in my house whith industrial plc. (beckhoff twincact 2).
I have installed domoticz on os off plc windows 7 embded.
Is working very well.
I have succefull send data plc to domoticz by json.
Now i have problem to send domoticz to plc.
I have open tcp socket on my plc but is not http port.
And http poller has not working to send data.
But in putty i can send data in raw format in plc.
Have you an idea to send data in simple tcp format in plc?
Thanks
or a script in domoticz (dzVents, Lua, Python or other) executing the os command netcat
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- Posts: 4
- Joined: Wednesday 28 December 2016 19:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: tcp poller
Ok is working.
I post my script in bat text :
And I attach twincat 2 project for other people want make link whith twincat and domoticz...
I post my script in bat text :
Code: Select all
echo %1 %2 |D:\Domoticz\Domoticz\scripts\lua\nc.exe -d 127.0.0.1 200
- Attachments
-
- first scada test.zip
- (53.21 KiB) Downloaded 53 times
Who is online
Users browsing this forum: No registered users and 0 guests