fg71
Maybe its true that Ladder Diagram is easier to visual for a person with less or non programming knowledge.
 
This example I like to show 3 different way there the state of output coil is True.
 
The first is Ladder Diagram, next is Function Block Diagram and the last is Ladder Diagram as Arduino Extension.
The if statement in Arduino extension say: If AE is true AND BE is true THEN ABE is true
Simple function like ADD take 2 inputs and if both are TRUE the OUT is TRUE else FALSE
 
For a programmer it maybe are more visual to understand a if/statement and Ladder Diagram.
if (AE && BE) {
    ABE = true;
}

PLC IDE have simulation mode and it also works with Arduino extension.
From OpenPLC we have to change the class for ABE to Local if we like to use Location.
We could not directly assign Location for External so we use output parallell to variable ABE.
 
So you could use OpenPLC there inputs are External and Local for outputs. In this environment the logic function is
C/C++. And assign the Arduino extension outputs to be local and they become inputs to our plc program.
 
ABE_OUT, class Local, type BOOL, Location %QX0.3
[203128%2F9094200%2Fmceclip0]
 
Showing LD, FBD and Arduino Extension
[203128%2F9094111%2Fmceclip0]
 
Arduino extension logic
[203128%2F9094114%2Fmceclip0]
Reply 0 0
CengizY
You have to imagine, the electrican in companies like ladderdiagram is easier to understand
Reply 0 0
fg71
If you have a working plc program and 6 month later there is some issue, it takes skills to know how to solve the problem and its not the plc program and doing a change that is the solution. So when you say electrician need to understand the plc program maybe he/she is not the right person to do the change, solve the task if knowledge is the problem.
 
My point is you do not choose a plc programming language based of user experience, you use the plc program that is the right for the task.
 
I do not think its enough to be a electrician to be plc programmer, that maybe was true 30 years ago but not today.
 
Many times it could take years before someone decide this is a common problem and I like to really know why it happen and make sure it never happen again in future. I have seen this with many things and I have also seen people who do not know what they are doing. To have knowledge in something doesn't mean you are the right person if you lack knowledge or experience how to solve a problem.
 
I have heard strange answer like, we couldn't solve a problem because there is not enough IO to do it. With that kind of thinking they have not understood the problem in the first place. When a problem occurred it will cost lot of money for the company to not fix it. Then expension module for PLC is far more cheaper and not doing anything. 2 Year later they solved the problem. The person who said this have been electrician in many years.
Reply 0 0
Reply