News:

  • December 05, 2024, 04:10:53 AM

Login with username, password and session length

Poll

Which combination of programming languages would you prefer to use in a future PLC?

Relay Ladder Logic
193 (34.1%)
Stage
93 (16.4%)
Sequential Function Charts (SFC)
65 (11.5%)
Structured Text/Basic
68 (12%)
Mnemonics/Assembly
17 (3%)
C/C++
27 (4.8%)
Java
10 (1.8%)
Function Block Diagram (FBD)
39 (6.9%)
Lua
1 (0.2%)
C#/VB.NET
35 (6.2%)
Other (please post a comment)
18 (3.2%)

Total Members Voted: 230

Author Topic: New Poll! Programming Language of Choice?  (Read 151041 times)

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3703
    • Host Engineering
Re: New Poll! Programming Language of Choice?
« Reply #30 on: November 24, 2008, 09:41:17 AM »
The function is just a box, and the elements going into the box are just that elements, along with some lines.

With Ladder, you have to display the contact AND the element for EVERY element in the rung.  Lots of overhead for the contact, vs. one & or >=1 box (that is OR)

+-----+
|     |
|  &  |
|     |
+-----+

+-----+
|     |
| >=1 |
|     |
+-----+

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3581
  • Darth Ladder
Re: New Poll! Programming Language of Choice?
« Reply #31 on: November 24, 2008, 12:01:56 PM »
Still not quite getting it.  Are you saying a single AND box, for example, will take more than two inputs?  I thought in most implementations, you had to do n/2 boxes, then AND those results, then those results, etc.
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3703
    • Host Engineering
Re: New Poll! Programming Language of Choice?
« Reply #32 on: November 24, 2008, 02:16:32 PM »
Yes, that's why it's more compact, you can have 2..N inputs to a single & box.  Same with "add", so you can add 20 numbers with a single + FBD box.

Vernon Leeper

  • Full Member
  • ***
  • Posts: 49
Re: New Poll! Programming Language of Choice?
« Reply #33 on: November 24, 2008, 09:31:51 PM »
Some of you are over my head with this programming. I vote for the Stage, then ladder. One because I cut my teeth on the AB SLC100, did some real elimentry ladders and rewrites from some older TI units when they would crap out( years ago) .
I recently learned how to do the stage, I like it, I don't mind learning anything new.This function box, block, is that what is used for robotics or is it the flow charts? Either way I wouldn't mind learning it.
 I would like to learn what is used for CNC machines, lates, mills, ect. I plan to build a table top CNC machine for myself, been researching steppers, servos, and how to control them with the printer port from my PC.
 I would like to see ADC to come up with a DRUM that you can change timer values on the fly via HMI, that would useful to me, I could use that today at work on about 25 machines.....
Give a man a fish and he eats for a day, teach him to fish and he eats for the rest of his life.

jimispeed

  • Newbie
  • *
  • Posts: 2
Re: New Poll! Programming Language of Choice?
« Reply #34 on: December 30, 2008, 05:56:21 PM »
I think stage is the best for most uses. Standard RLL works for simple projects (light on/light off). But having an electronics background, I REALLY enjoy Function Block Programming. I used it on a few seimens PLC projects and it was like drawing a schematic and putting it in a box and voila, project done. ;D

Loren Jones

  • Newbie
  • *
  • Posts: 1
Re: New Poll! Programming Language of Choice?
« Reply #35 on: January 21, 2009, 03:12:44 PM »
While I love Function Block Diagram in modicon Concept, there is one drawback: What about the poor bastich electrician trying to figure it out at zero-dark-thirty in the morning who has never seen it befoe and doesn't know what that little circle on the input means? Don't scoff. I've been there and been called in to explain to the _Electrical Superintendant_ what was going on because _he_ had not bothered to learn anything but RLL. For simplicity and uninterupted nights, I'll take RLL.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3703
    • Host Engineering
Re: New Poll! Programming Language of Choice?
« Reply #36 on: January 21, 2009, 03:21:57 PM »
While I love Function Block Diagram in modicon Concept, there is one drawback: What about the poor bastich electrician trying to figure it out at zero-dark-thirty in the morning who has never seen it befoe and doesn't know what that little circle on the input means? Don't scoff. I've been there and been called in to explain to the _Electrical Superintendant_ what was going on because _he_ had not bothered to learn anything but RLL. For simplicity and uninterupted nights, I'll take RLL.
We will NEVER drop RLL.  However, we would LOVE to add other languages, but "all of them" is not the right answer.  ;D

dschlic1

  • Newbie
  • *
  • Posts: 2
Re: New Poll! Programming Language of Choice?
« Reply #37 on: February 17, 2009, 09:22:26 AM »
I also vote for Function Block Programming! Another feature, while related to programming but not, is how variables/tags are declared and used. The ability to define user data structures is very powerful. Another item is the ability to define a program hierarchy. A main program has several subroutines in it, and each subroutine has subroutine within it etc. The ability to see this graphically is very powerful especially for large programs. Stage programming does some of this, however many programs are not suited for stage programming.

PLCJoe

  • Newbie
  • *
  • Posts: 1
Re: New Poll! Programming Language of Choice?
« Reply #38 on: February 27, 2009, 12:06:41 PM »
Function Block is nice and usefull. However when doing a lot of math or more complex equations structured text seems to work well as long as no data conversions are required while doing the structured text. How about allowing the user to create custom iboxes with the programming language of choice. And like some of the other users I'c like to see more structure options, Main program with other subtitled programs. They wouldn't even have to be subroutines just a way to divide the program up into subsections for ease of troubleshooting.
But those who trust int he LORD will find new strength. They will soar high on wings like eagles. They will run and not grow weary. They will walk and not faint.

uman

  • Newbie
  • *
  • Posts: 4
Re: New Poll! Programming Language of Choice?
« Reply #39 on: July 22, 2009, 06:55:26 PM »
Definitely FBD!
Please add this feature to the DirectSoft program.  FBD is among my top consideration, when selecting a PLC.
Is there any chance FBD will be included in the next version of DirectSoft or CLICK in the near future?

Jeff in Florida

uman

  • Newbie
  • *
  • Posts: 4
Re: New Poll! Programming Language of Choice?
« Reply #40 on: July 22, 2009, 06:57:23 PM »
The results of this poll are meaningless without FBD as a choice.
How about a redo?

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3703
    • Host Engineering
Re: New Poll! Programming Language of Choice?
« Reply #41 on: July 22, 2009, 07:13:05 PM »
The results of this poll are meaningless without FBD as a choice.  How about a redo?
I definitely see your point, but the sample survey data is still somewhat valid due to having the "other" category.  If we assume all (currently) 14 "other" votes are for FBD (out of 140 current participants), it shows us the general popularity, which is all you can hope for in a random sample poll anyway.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6052
  • Yes Pinky, Do-more will control the world!
Re: New Poll! Programming Language of Choice?
« Reply #42 on: July 22, 2009, 07:22:36 PM »
Meaningless? Nah...just incomplete.

Probably would be good to add it, though, if we can do so without losing our statistics. I think there will be a few folks that vote for it, but I wouldn't anticipate it being in the top 3. But hey...I've been wrong before.  :o
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3703
    • Host Engineering
Re: New Poll! Programming Language of Choice?
« Reply #43 on: July 22, 2009, 07:29:01 PM »
Probably would be good to add it, though, if we can do so without losing our statistics
All you can do is start over with a new poll and delete this one  ::)

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6052
  • Yes Pinky, Do-more will control the world!
Re: New Poll! Programming Language of Choice?
« Reply #44 on: July 22, 2009, 07:34:20 PM »
Then again, some of those options aren't exactly going gang-busters. Might make sense to refactor and relaunch, making note of what we learned. In v2, we probably should have all of the 61131 languages represented. Our FBD fans will be thrilled. ;)
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO