tags:

views:

106

answers:

2

Hi All

Can I Write Programs for PLC Controlling in C Sharp? How?

+3  A: 

Not likely. C# requires an implementation of the Common Language Runtime (CLR) to run applications developed in that language or any .NET language. I would say it is very unlikely that any PLC will ever be manufactured which supports this for various reasons.

Now what you can do is have your C# application read and write data from the PLC using the OPC protocol. There are a few different libraries for using OPC that are available for the .NET Framework.

Here is a pretty good website for laying out the options.

Brian Gideon
A: 

No, at least not now. As for the future? Almost certainly not then either, IMO.

PLC's are just too hardware specific to have a program written using the CLR.

If you are interested in writing code that is portable across different types of PLC's, the closest you will get right now is by using IEC 6113-3 Structured Text code.

Most, if not all the leading PLC manufacturers are able to use this now, including Omron, Siemens, Allen Bradley, Mitsubishi, Telemecanique and probably more.

Andy