Ladder Diagram Basics

Home / Micro800 / Micro800 Programming

Description
A video walk thru on creating a simple Ladder Diagram (LD) program using the Connected Components Workbench (CCW) software and the Micro850 Simulator.


Transcript
(00:02) okay i just want to show the lab number two and how it worked i didn’t get to show that in my other video i didn’t get to show it actually connected to a controller and how the logic actually works if you were using the real controller there is a way to force the inputs on i have to you may not have figured that out i’ll have to show that still to you i don’t have a real controller with me i have so what i’m going to use right now is the simulator and the simulator uh is built into studio or in this ccw software and we can actually just create a
(00:41) simulator project and and do do the same stuff in the simulator um so this is of course the logic from the project and this is the simulator so it’s a separate window here i had to open it and i had to turn it on and then i was able to download my logic into the simulator so just like the micro h20 you know we have a row of inputs up top and we have a row outputs on the bottom now the simulator uses the micro 850 controller which is a larger controller so there are more inputs and more outputs on this particular unit
(01:23) so but basically the numbering is the same this is i o e m d i zero zero this is i o e m d o zero zero so we start with the same numbering so here’s the logic and i have my start switch and i have my stop switch and i have my pump start and then i have my pump start working as the latch and i also have a contact from the pump start here that will turn on the pump running indicator so i am connected online and connected to the simulator and this would be the same exact look and feel if you are connected to the real controller
(02:09) the the background turns yellow that’s a default color which you can change and my contact here is showing as a red and some return is blue so when it’s showing as red it basically means that it is uh what we will term use the term passing power even though it’s digital and it’s you know there’s no power so so to speak um we or another term you might hear in the alan burleigh world especially is examine when off and examine when on on um x i o um so sometimes you’ll see examine when off and uh examine when on but um
(02:57) anyway the the point of this is that when it’s red consider that state as on or a one and passing power on to the next part of the rung so this is true basically right now and would satisfy this this circuit whenever one of these two things became true now the cool thing with the simulator is this is an actual input the ioemdi00 start switch this is an output so i can force the input on for testing to do that i can simply click on the input on the simulator so when i clicked on zero zero that turned orange it also turned orange here on the face
(03:46) which would happen on the real controller that would light up then i also wound up getting two oranges on the outputs so zero zero and zero one both turned orange and their two indicator lights turned orange as well and up in the logic you can see everything turned red the start switch is on the pump start contact is on because the relay here is picked up and then of course the same contact is used here in this rung and it is also turning on the pump running now what we talked about was that you know our push buttons are
(04:24) typically momentary so what’s going to happen is i would have actually just pressed this and i would uh then i would undo it when i undo this you can see this went back to blue which means this is not passing power anymore but i still have my latch path my latched in path around this switch or this push button using the pump start coil so i still have a path through the stop button to the pump start so my two outputs stayed on even though i no longer had my input then the way we break this latch was to change the state of the stop switch
(05:06) and that is tied to ioemdi01 so i’m going to basically simulate pushing the stop button by clicking on the stop now when i do that we broke power we broke power to the pump start so that dropped off the coil it dropped out the second rungs coil we turned off our two outputs our two indicator lights went out and then i let my finger off the stop switch and everything stayed off which was the key here because we wanted everything we wanted the pump to turn off and stay off until an operator comes back and presses the
(05:46) on button when the operator presses the on button then we turn the pump back on again it stays running until i press the stop button okay so that’s how we can test our logic we can see it executing right here on the screen we could use a simulator we can use the real controller but the key is we want to be able to actually look at the logic and look at all these you know the elements changing their colors and and seeing how the the program and the logic actually works