You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Reply
 
Thread Tools Display Modes
Old October 2nd, 2004, 06:50 AM   #1
Goody
Member
United Kingdom

Goody is offline
 
Goody's Avatar
 
Join Date: Apr 2002
Location: Huddersfield W Yorks UK
Posts: 1,081
A new hobby - C C+

I feel I need to try stretch my brain again!

I was intruiged by the last few posts on the massive thread about paying for software and the subject of programming in C.

I suddenly thought ' Hmmm, I would like to learn/teach myself this as a new project/hobby '

But where do I begin?

I have several plc programing softwares and a programing rig (plc's, hmi's and cables all permanently connected)set up at my home office desk.

So.... where do I start?

What software, what books, what hardware, what.........

I would like to sit here with books - software and make an output on my plc turn on at my bidding with my C+ code and shout Eureka.


Any tips and help will be appreciated
  Reply With Quote
Old October 2nd, 2004, 09:09 AM   #2
jimbo3123
Member
United States

jimbo3123 is offline
 
Join Date: Sep 2003
Location: Detroit Area
Posts: 550
It really depends on your budget, and how big you want to go.
If you're planning on developing graphically rich windows programs, then MS's Visual studio is probably the way to go.

If you just want to hit the ground tinkering, There are some good freeware IDE/compiler packages out there. I like Dev-C++ http://www.bloodshed.net/devcpp.html

I have quite a few C/C++ books from college and personal use.
I would reccomend the C++ for dummies book to learn the basics of the language. Amazon link


BTW, the language is called C++. This is a little joke amongst developers. The ++ operator is a shortcut for incrementing a variable. Instead of typing C = C + 1, you can write C++. When time came to name the Object Oriented enhanced version of the C language, they called it C++ (or the next C). There are also --, +=, and -= operators as well. I'll leave it to you learn how those work.

Good luck.

Last edited by jimbo3123; October 2nd, 2004 at 09:14 AM.
  Reply With Quote
Old October 2nd, 2004, 10:45 AM   #3
Peter Nachtwey
Member
United States

Peter Nachtwey is offline
 
Peter Nachtwey's Avatar
 
Join Date: Apr 2002
Location: Vancouver, WA, US
Posts: 6,761
If you want to learn C++

The 'must have' book is the C++ Programming Language by Bjarne Stroustrup. ISBN 0-201-88954-4. Note this book covers C++. Not windows programming.

If you want to do windows progamming then buy a standard version of VC.NET. It costs about $109 US list price. (I don't do windows progamming, I consider it fluff.)

However, my bias leans toward embedded C projects. I would consider getting a Z-world or Rabbit semiconductor development system.
You can do small control system with one of these.
  Reply With Quote
Old October 2nd, 2004, 02:38 PM   #4
Doug-P
Member
United States

Doug-P is offline
 
Doug-P's Avatar
 
Join Date: Jun 2003
Location: Pa
Posts: 1,244
There's a nice selection at http://www.fetchbook.info/search_Wai...By_Author.html

The title I was thinking of isn't listed, probably out of print, but it was by Robert Lafore. I found his writing to be more understandable than some others.
__________________
Let's eat Grandma!

Let's eat, Grandma!

Words are very important, but punctuation saves lives...
  Reply With Quote
Old October 2nd, 2004, 08:41 PM   #5
dandrade
Member
Brazil

dandrade is offline
 
Join Date: Jan 2004
Posts: 374
In the first reading, knoe that it looked for PLCs with programming saw C++.
I recommend this,Chis H. Pappas and Willian H. Murray / 770pages ISBN not have.

For automation, I wrote old tools that directly inserted the ladder in the EEPROM of PLC... today it is easy to send for the EdPLC.

First that it makes correct chronological learning...
equal the evolution of the computers...

Glossary: EdPLC -Sw edition PLC.Is possible new word, add dic here.
  Reply With Quote
Old October 2nd, 2004, 09:45 PM   #6
CaseyK
Member
United States

CaseyK is offline
 
CaseyK's Avatar
 
Join Date: Feb 2004
Location: In the cornfields, on the prarie, outside Chi-Town, a few miles beyond the boondocks.
Posts: 1,731
Lightbulb

I have to admire your zeal.

I would have tackled a "basic" "postage stamp" plc, at best.

Hope all goes well, be sure to keep the group posted as to your successes.

best regards.....casey
  Reply With Quote
Old October 2nd, 2004, 11:34 PM   #7
tom_stalcup
Member
United States

tom_stalcup is offline
 
tom_stalcup's Avatar
 
Join Date: Jan 2004
Location: fresno
Posts: 440
Just a side note.... I haven't had a lot of opportunity to do much programming on the controllogix platform yet, but from the classes I've taken, my previous exposure to C/C++ programming was a big help in understanding how and why the data structures, tags, etc. function.
__________________
"If beating your head against the wall doesn't work, try banging a little harder. It won't help you any, but at least I'll be amused"
  Reply With Quote
Old October 3rd, 2004, 12:27 AM   #8
jimbo3123
Member
United States

jimbo3123 is offline
 
Join Date: Sep 2003
Location: Detroit Area
Posts: 550
Quote:
Originally posted by tom_stalcup
Just a side note.... I haven't had a lot of opportunity to do much programming on the controllogix platform yet, but from the classes I've taken, my previous exposure to C/C++ programming was a big help in understanding how and why the data structures, tags, etc. function.
This is very true.
CLX is like a ladder logic version of C, complete with structures, etc. That's exactly what I thought when I started using it.
I think it's pretty
  Reply With Quote
Old October 23rd, 2004, 11:15 PM   #9
MB
Guest
 
Posts: n/a
C+ to PLC?

I can do the programing in C+, but never in PLC. I have a SLC 500 and a Micrologic 1000 PLC catalog, Where should I start?? Books or free software that you can recommend to get me going? I'd love to be able to able to write in C or compiled Basic, and have software to translate it to PLC.
  Reply With Quote
Old October 26th, 2004, 02:51 AM   #10
Fred Raud
Member
United States

Fred Raud is offline
 
Join Date: Jul 2004
Location: San Antonio
Posts: 213
Re: C+ to PLC?

Quote:
Originally posted by MB
I can do the programing in C+, but never in PLC. I have a SLC 500 and a Micrologic 1000 PLC catalog, Where should I start?? Books or free software that you can recommend to get me going? I'd love to be able to able to write in C or compiled Basic, and have software to translate it to PLC.
VB for me is a better platform,,,if you want to learn C,,,try the "learn C in 24 days books"

Fred Raud
__________________
Dont help others because others have helped you,,help others because its the right thing to do!!!
  Reply With Quote
Old October 29th, 2004, 01:49 AM   #11
MB
Guest
 
Posts: n/a
Sorry, must have written the question wrong? I am a C+ programer already. I can do C+ with no problem. But I'd like to stretch my brain, by learning how to do PLC programing. Where is the best place to start? Books? Websites? etc. If there is such a thing, I'd like to be able to write code in C+, and then have a computer translator program to change it into PLC. Am I making better sence? Sorry about the confusion before. Thanks for the help!
  Reply With Quote
Old October 29th, 2004, 02:29 AM   #12
Doug_Adam
Member
Australia

Doug_Adam is offline
 
Doug_Adam's Avatar
 
Join Date: Sep 2002
Location: Perth
Posts: 949
No PLC that I know of uses any type of C for programming.

All of them that I have seen use either one or all of:
1, Ladder logic (Most popular)
2, Instruction list (look and feel similar to assembly)
3, Functional Block Diagram, similar to hardware TTL logic
4, Structured text, not common, most similar to C
5, Sequential Function Chart or Grafect, which programs using flow charts.

Some PLC manufacturers use C to write the programming software and packaged functions such as analogs or maths functions.

Generally, PLC native languages are much easier to implement than C, so you will probably be better off learning ladder and being done with it.

For a simple PLC simulator (written in C, BTW) that could be used as a basic soft PLC for testing, look up "Classic Ladder". It needs a bit of mucking around to get it working, but it does come with source code.

Doug
  Reply With Quote
Old October 29th, 2004, 02:32 AM   #13
Doug_Adam
Member
Australia

Doug_Adam is offline
 
Doug_Adam's Avatar
 
Join Date: Sep 2002
Location: Perth
Posts: 949
Just remembered,

The earlier versions of the Modicon Quantum, programmed with "Concept", allowed you to write your own functions using Borland C++, which were then compiled and run on the Quantum PLC.

So, I was wrong, you can use C to program a PLC.

I don't know if this is still available however.

Doug
  Reply With Quote
Old October 29th, 2004, 04:08 AM   #14
RMA
Member
Scotland

RMA is offline
 
RMA's Avatar
 
Join Date: Sep 2004
Location: North of Hamburg, Germany
Posts: 2,052
Quote:
Functional Block Diagram, similar to hardware TTL logic
Yup and that's why I like it! I started my engineering life after university as a hardware design engineer, except that when I started, it was still DTL - so now you know how old I am!

I've never seen one, never mind worked with them, but I believe the Siemens M7 series uses C/C++.

Last edited by RMA; October 29th, 2004 at 04:10 AM.
  Reply With Quote
Old October 29th, 2004, 12:59 PM   #15
jimbo3123
Member
United States

jimbo3123 is offline
 
Join Date: Sep 2003
Location: Detroit Area
Posts: 550
Quote:
Originally posted by Doug_Adam
Just remembered,

The earlier versions of the Modicon Quantum, programmed with "Concept", allowed you to write your own functions using Borland C++, which were then compiled and run on the Quantum PLC.

So, I was wrong, you can use C to program a PLC.

I don't know if this is still available however.

Doug
I believe Mitsubishi PLCs support a similar thing, subroutines written in C to be called by the main program.
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
2 sensors 1 input ready961 LIVE PLC Questions And Answers 63 April 4th, 2004 09:21 PM


All times are GMT -5. The time now is 01:53 PM.


.