Quantcast

Maximum PC

It is currently Mon Sep 15, 2014 2:47 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Ladder Logic programming
PostPosted: Wed Dec 19, 2012 6:05 pm 
Million Club - 10 Plus
Million Club - 10 Plus

Joined: Mon May 23, 2005 12:27 pm
Posts: 675
Location: Taken it Easy
I know that this is a subject that might not get any answers from this forum. I wanted to see if anyone had experience programming in ladder logic. If you have, have you been able to bring any of this type of programming into V Basic or C+ ?

Thanks,

E


Top
  Profile  
 
 Post subject: Re: Ladder Logic programming
PostPosted: Thu Dec 20, 2012 8:31 am 
Smithfield
Smithfield

Joined: Sun Jun 18, 2006 7:37 pm
Posts: 5234
A quick glance on Wikipedia makes me think this looks like LabView.

But considering the operations are straight forward and binary, it would be a matter of translating what each component is supposed to do and return a value.


Top
  Profile  
 
 Post subject: Re: Ladder Logic programming
PostPosted: Thu Dec 20, 2012 12:49 pm 
Clawhammer
Clawhammer
User avatar

Joined: Fri Sep 23, 2005 6:22 pm
Posts: 4406
Location: In the closet
There is no C+ language. As for Ladder Logic in C++ or VB, don't know but it looks like you will probably be better off converting instead of trying to intermix things.

I worked with machines years ago that used Allen Bradley PLCs, and the guys who set up the units worked in Ladder Logic. I was always sort of curious about it, but when I looked at the code it was like nothing I'd ever seen. I'm curious as to what aspects of it you would replicate in a procedural C-like language. If there's a mapping that makes sense then I wouldn't be surprised if it's already been done.


Top
  Profile  
 
 Post subject: Re: Ladder Logic programming
PostPosted: Sun Dec 23, 2012 10:04 am 
Bitchin' Fast 3D Z8000
Bitchin' Fast 3D Z8000
User avatar

Joined: Wed Oct 27, 2004 12:43 pm
Posts: 4171
Location: Richmond, TX
Ladder logic can provide actions for certain conditions (ie high oil temperature alarm). You can also perform standard logic gate functions like a an "and" or "or" gate. I would think these these can be easily replicated in VB or C++. Most PLC's these day can be programmed in either Ladder Logic, Function Block, or Structured Text. Or a combination of all three.

I know that there are some cards that allow for C++ programming to be embedded into the PLC and can have inputs/outputs to/from the ladder logic.


Top
  Profile  
 
 Post subject: Re: Ladder Logic programming
PostPosted: Tue Dec 25, 2012 9:18 pm 
Million Club - 10 Plus
Million Club - 10 Plus

Joined: Mon May 23, 2005 12:27 pm
Posts: 675
Location: Taken it Easy
Thanks everyone for the reply.

I have found that (for me) keeping ladder and basic programming code separate with discreet options. I needed to get RS232 Ascii code from a computer that would be transferred to a PLC with a triggered time frame. I need to get this info from a VB program and send it to the PLC.


Thanks

E


Top
  Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group