Mohsen

PLC Programming with C++ or C#

8 posts in this topic

Hi everybody, I have some experience in PLC programming with Ladder and SFC languages but I didn't hear about PLC programming with C++ or C#. One of my customers asked me about that. does anybody have experience about it? If anybody have any link address or book please let me know about that. Thank you.

Share this post


Link to post
Share on other sites
Generally speaking, PLCs aren't programmed in standard computer programming languages. Some PLCs allow programming in Structured Text, which is similar to computer programming, though it's usually a brand-specific variation. Embedded controllers, however, are a different story, but they aren't usually used for industrial applications. Here's a related thread: http://forums.mrplc.com/index.php?showtopic=25984

Share this post


Link to post
Share on other sites
Mitsubishi does offer a C programmable CPU for the Q Series, but I have never seen one in use. Structured text is available in most IEC 61131-3compliant PLC brands. I know I have used structured text in Modicon, Mitsubishi, and Omron controls. It's very similar to C.

Share this post


Link to post
Share on other sites
Thank you for taking time to answer me.

Share this post


Link to post
Share on other sites
Hi Mohsen, ICP DAS USA provides some solutions for different programming languages beside ladder diagram. You can check the different programming languages from the below link. http://www.icpdas-usa.com/advancedsearch.html#shopbyprogramminglanguage?r=Kaan If you have any question, please feel free to call us. +1 310 517 9888

Share this post


Link to post
Share on other sites
There are a few higher tech PLCs like B&R and Beckhoff that offer ANSI C programming standard. I know B&R also offers C++, but that is an add-on more geared for automatically generating code from MatLab/Simulink. ANSI C actually lends itself very well to PLC work, but C++ and C# start getting very object oriented which starts to veer away from the point of hard real time processing that PLCs normally do. That's why you don't typically see newer, high level, PC languages in industrial automation, they are geared around PC type operation with interrupts and events. PLC programs run all the way through, over and over, a completely different type of programming.

Share this post


Link to post
Share on other sites
My background is a mix of electrical and IT software programming.Though,I have a experience in c++,C# and Java, I do not how exactly the software development will be in the automation field. I have a month time to prepare regarding the things I can learn. I have not got any reference or guidance online for a beginner programmer in the factory automation field. Any suggestions would be helpful.. achat housse samsung galaxy s6 etui samsung galaxy s6 folio Edited by gear-bored

Share this post


Link to post
Share on other sites

Hi Mohsen,

Why don't you program using a PC based motion controller. One option is the RMP EtherCAT PC motion controller. The languages supported are C++, C#, and VB. NET. The API is called RapidCode, which is powerful and simple to use.

Here is a link if you want to learn more:
RMP EtherCAT PC motion controller: https://roboticsys.com/rmp-ethercat-motion-controller/

RapidCode API: https://rapidcode.roboticsys.com/

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now