# .NET windows application to communicate with PLC

**URL:** <https://forumautomation.com/t/net-windows-application-to-communicate-with-plc/12982>\
**Category:** Industrial Automation\
**Created:** [January 25, 2025, 10:11pm UTC](https://forumautomation.com/t/net-windows-application-to-communicate-with-plc/12982 "2025-01-25T22:11:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MatthewJeschke](https://forumautomation.com/letter_avatar_proxy/v4/letter/m/bbce88/32.png) [@MatthewJeschke](https://forumautomation.com/u/MatthewJeschke)\
**Post date:** [January 25, 2025, 10:11pm UTC](https://forumautomation.com/t/net-windows-application-to-communicate-with-plc/12982/1 "2025-01-25T22:11:05Z")

</div>

I have a project where we will control some industrial transformers to provide a requested voltage. The PLC will interface with the hardware level switches and motor on a variable transformer. Then a PC interface for technician will verify voltage via instrumentation over SCPI. Fine adjustments will be requested from the PC of the PLC / power supply. Everything will communicate over ethernet.

Long story short, I need to study up on a protocol with I can code this all up in. We’re working with Allen Bradley 5000 series PLCs.

Any suggestions on what protocol would be best?

---

<div class="post-metadata">

**Author:** ![Rabert](https://forumautomation.com/user_avatar/forumautomation.com/rabert/32/6784_2.png) [@Rabert](https://forumautomation.com/u/Rabert)\
**Post date:** [February 15, 2025, 12:11pm UTC](https://forumautomation.com/t/net-windows-application-to-communicate-with-plc/12982/2 "2025-02-15T12:11:52Z")

</div>

That sounds like a good project. Hardware-level switches, motorized transformers, a PC interface, and SCPI instrumentation define a system like yours that where you’re interfacing an **[Allen-Bradley PLC](https://automationforum.co/step-by-step-plc-battery-replacement-and-maintenance-procedure/)** (ControlLogix or CompactLogix from the 5000 series) for a dependable, well-supported protocol.

The following are some best choices for your arrangement:

- Best for direct connection among PLC, PC interface, & instrumentation is EtherNet/IP (Industrial Protocol) Rockwell’s go-to protocol.
- If SCPI instruments do not support native EtherNet/IP, Modbus TCP - simple, universal, and widely supported - best for communicating with them.
- Best for PC interface applications with advanced monitoring & control needs OPC UA (Unified Architecture), flexible and secure.
- Make that the instruments enable SCPI across LAN (or) USB/Ethernet bridges.
- Python with pycomm3 for EtherNet/IP (or) pymodbus for Modbus makes PC-side development easy.
- Studio 5000 has an Allen-Bradley Ecosystem. Natively supporting EtherNet/IP, Logix Designer can also incorporate Modbus via Add-On Profiles (AOPs).

**My Suggestion**

For direct **[PLC](https://forumelectrical.com/common-plc-faults-and-troubleshooting-procedures/)** communications, go with EtherNet/IP; if the SCPI devices require for Modbus TCP, use it as an alternative.

Consider about integrating OPC UA if your PC interface needs more than just basic changes - such as logging or enhanced visualization.

> ### You can also follow us on [**AutomationForum.co**](https://automationforum.co/), [**Facebook**](https://www.facebook.com/instrumentation.control) and [**Linkedin**](https://www.linkedin.com/showcase/81532759/feed/posts/) to receive daily Instrumentation updates.

> ### You can also follow us on [**ForumElectrical.com**](https://forumelectrical.com/), [**Facebook**](https://www.facebook.com/profile.php?id=100091841583670) and [**Linkedin**](https://www.linkedin.com/showcase/91130242/feed/posts/) to receive daily Electrical updates.

---

<div class="post-metadata">

**Author:** ![MatthewJeschke](https://forumautomation.com/letter_avatar_proxy/v4/letter/m/bbce88/32.png) [@MatthewJeschke](https://forumautomation.com/u/MatthewJeschke)\
**Post date:** [February 19, 2025, 3:43am UTC](https://forumautomation.com/t/net-windows-application-to-communicate-with-plc/12982/3 "2025-02-19T03:43:39Z")

</div>

Excellent thank you! I will be likely utilizing C# (.NET) on the PC. I’ve got ethernet sockets running (TCP/IP) to control the instruments already (SCPI) with PC to Instruments.

I’d like to utilize a protocol for PLC’s that doesn’t require additional licensing if possible. Something I can establish an ethernet connection with and code up in .NET.

I was also looking for an Allen Bradley 5000 series emulator if there is such a thing. Where I could emulate the PLC in software on a PC for development.
