This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Communication with LM using raw data
#1
Hello,

can we communicate with LM using IP address, protocol type (UDP or TCP), port and send directly HEX data?? As example such variant:

LM IP: 192.168.20.20 (example)
Protocol: TCP (example)
Port:63002 (example)

Send raw data: (to switch something??)

Send= 0x02 0x01 0x00 0x00 0x03

I propose to use variant with http strings ( http://remotelogin:remotepass@192.168.20.20/scada-remote?m=json&r=grp&fn=write&alias=0/0/1&value=1).

But I was asked to use communication as above. (May be other device have no possibilities to communicate by using http strings?)
Can we do it such way to send commands to LM from other devices in network or it is not possible??


Alex
Reply
#2
You can use built-in copas library in a resident script to create raw TCP or UDP server:
http://keplerproject.github.io/copas/manual.html
Reply


Forum Jump: