Output Coil Instruction in LAD

I guess I have it lucky as the mechanical designers have pretty much designed their part of the machine before I get into the act. But I don't ask about inputs or outputs first.

I ask 'what happens first'. I don't ask what causes it (motor, cylinder etc) just what happens. I write that down. Then I ask 'what happens next'. I write that down. Then I ask 'what caused it to stop doing 1 and start doing 2'? This may be 'a sensor detects the work' or 'it has done this 3 times' or 'a certain amount of time has gone by'. You see 'what happens first' is "STATE 1". 'What happens next' is "STATE 2". 'What caused it...' it the "STATE TRANSITION 1-2". We continue on establishing states and transitions until, generally, we get back to the point that "STATE 1" is the next state.

Once we get the entire machine function established with all the states and transitions and only then I ask about the actual input and output devices. Once this information is nailed down I can write the program (thank you AD for STAGE Logic) in an incredibly short amount of time.

Generally the only thing that has to be modified at start-up is if the designers forgot a step. Error detection becomes fairly obvious as 'in state X too long' or 'event X happened (and it shouldn't have) while in this state'.

Of course our machines generally have multiple sequences of states happening at the same time with some interlocking between states. But it's just an extension of this method.
 
Last edited:
Bernie – You need to expand your thinking just a bit. You are in fact asking what the Outputs are and then getting the Inputs. Outputs and Inputs are not limited to physical outputs and inputs.
 
Exactly right-on, Tark. I should have made that clearer earlier. By "outputs" I am talking about generic RESULTS or CONSEQUENCES. These things usually (not always) translate into PLC ladder output functions on the right side of the ladder rung.
 

Similar Topics

Hello to all, is my first post on the forum, I searched everywhere, but I could not find an answer to this problem; I am quite experienced in...
Replies
13
Views
997
Hi All, I just starting out CX-Programmer. I am currently using CPM1A. At first day all is good and I can try different program using basic...
Replies
16
Views
5,277
Hey, I'm having a little trouble answering this question, and was wondering if someone could help: 1- Why should duplicate output coil...
Replies
7
Views
2,135
In about 2 months I will have a very small window to accomplish quite a few projects. To try and speed things up I would like to do most of my...
Replies
8
Views
1,862
During program scan, if an external input changes, it is not noticed by the PLC till the next scan. Similarly, status of external outputs are...
Replies
2
Views
2,487
Back
Top Bottom