PLC_NEWBIE said:
I've taken cobol, fortan, pascal, c, visual basic and many other types of programming. I'm having trouble with plc programming in general......normally open, normally closed, examine om, examine off.......these terms are confusing.......i get confused when for example it shows green bars around a contact on a program. does the bar mean its true?........
Can you simplify the symbols and what the green bars mean?...
Since you mentioned xio & xic then I will assume you are working with AB, probably SLC/Micrologix or possibly the trainer from thelearningpit.com
Yes, if it is highlighted in green then it is true but I think using true and false with plc's can make it harder to comprehend. I am not sure I will explain this properly but here goes.
In the industrial field(s), and others, people are making something happen i.e. running a motor, moving ?, hydraulic rams extend/retract, the list goes on. Over all you have to turn things ON and turn them OFF.
That said, as mentioned, a plc input works with certain levels of voltage to determine if it is off or turned on. We will keep it simpler for now though and use 24vdc for input voltage to turn it on, with no voltage the input would be off.
Normally open (N.O.) and Normally closed (N.C.) are terms for contacts, for this Lesson (?) we will think in terms of a relay. Normally open means the contacts are open when the relay is NOT energized and normally closed means the contacts are closed when the relay is NOT energized. This means if you connect power thru the normally closed contacts of a relay then power will flow as long as the relay is OFF, if you turn the relay ON then the normally closed contacts OPEN and the Normally Open contacts close; which allows power to flow through them.
The fact is there are pushbuttons, switches, and more that use N.O and N.C. contacts but I used the relay aspect for another reason.
You can think of plc inputs and outputs as relays, in a sense, for some it may help to understand. Above we used 24vdc for inputs, now look at it in the simplest form. You have a plc powered up with the common connected properly to the input side but nothing yet connected to Input 1. Now you create a single rung:
input1 Out
|------[ ]----------( )----|
If you are online with it nothing will be highlighted because nothing will be ON. If you apply the 24vdc to the input 1 terminal you will see it higlighted (turn green) and the output turn ON. Since [ ] is the similar (same) as a Normally Open contact then you could think of Input1 as being a relay and when you turned it on then the normally open contacts closed allowing power (signal) to turn ON the output (relay).
Take another single rung and change the input instruction:
input1 Out
|------[/]----------( )----|
Now without voltage applied to the input the internal relay is OFF which allows power to flow through the normally closed contacts; which turns on the output (relay). Put 24vdc signal on input1 and the relay turns on which opens the normally closed contacts interupting the power to the output.
For a more in-depth look then checkout this XIO-XIC explained page:
http://www.patchn.com/xio_xic_explained.htm
A little more that may help, on this page I have a very basic motor circuit that is hardwired;
http://www.patchn.com/motors.htm
The Stop button is Normally closed, Start button is normally open, and Ma is a normally open auxillary contact on the side of the starter. Watch because it is animated. This is part of what is probably consfusing you, if you program that control ckt in ladder, how would you do it? Here is how, can you tell me now, why I used the same instruction for the Stop and Start?