10-23-2018 07:12 PM
Hello Everyone,
I am trying to connect PLC through TCP/IP or UDP can anyone help me in achieving this task. The PLC CPU is of LSIS company Model XGK-CPUS and has the ethernet module XGL-EFMT.
I am trying to perform some boolean control, read and write data for some analog inputs and outputs.
If you have any relevant material or examples kindly share with me, Thanks in advance.
Please find the attachment, modules detail manuals.
10-24-2018 05:27 AM
It sounds like what you need is to run Modbus over the TCP/IP connection.
Mike...
10-24-2018 06:52 PM
Dear Mike,
I don't wanted to use Modbus TCP, i just wanted to do my task on Ethernet IP (which can be useable for both TCP, UDP).
10-24-2018 10:56 PM
Hello Everyone,
I am trying to connect PLC through TCP/IP or UDP can anyone help me in achieving this task. The PLC CPU is of LSIS company Model XGK-CPUS and has the ethernet module XGL-EFMT.
I am trying to perform some boolean control, read and write data for some analog inputs and outputs.
If you have any relevant material or examples kindly share with me, Thanks in advance.
I don't wanted to use Modbus TCP, i just wanted to do my task on Ethernet IP (which can be useable for both TCP, UDP).
10-25-2018 01:03 AM
10-25-2018 01:12 AM
Dear GredW,
You are right but in MODBUS/TCP we can only able to use TCP but cannot use UDP, that's why i am repeating my question again.
Modbus ------------------------> TCP/IP or RTU
While EthernetIP -----------------------------> TCP/IP or UDP
10-25-2018 01:30 AM - edited 10-25-2018 01:33 AM
Hi Taufeey,
but cannot use UDP, that's why i am repeating my question again.
So does your device support UDP at all?
Does it make sense to stipulate "UDP" when you can get ready-to-use libraries supporting ModbusTCP?
What's your motivation to use UDP???
(Please don't create multiple threads for the same question…)
While EthernetIP -----------------------------> TCP/IP or UDP
EthernetIP -> UDP/TCP/Modbus (!)
Don't forget Modbus (which uses TCP under the hood) and always provide the full picture!
10-25-2018 10:07 AM - edited 10-25-2018 10:09 AM
GerdW,
EthernetIP in this context refers to the industrial protocol (bad choice of name IMO). It uses the CIP object model like Devicenet but over the TCP or UDP physical layers rather than over CAN.
Taufeey,
This can be done in LabVIEW, take a look here: http://sine.ni.com/nips/cds/view/p/lang/nl/nid/209676
Its a toolkit that you can buy separately (although going back a few years (maybe 8.6) it was free as an NI LABS thing).
I haven't used it since then, so not sure how it has changed over the years.
Does you device even support Ethernet IP? I didn't see it mentioned in the FEnet manual.
0xDEAD
10-25-2018 01:28 PM
This is an example that you could use as your base for ethernet/ip communication with Labview if you are using the toolkit. You would need to know your PLC ip address and tag name. I don't know if you have a toolkit or if you are trying to communicate in a different manner. Hope the VI helps.
10-25-2018 08:25 PM
As you know in TCP we want more reliable data without error but in UDP we do not care about error so thats the reason for using UDP.