DirectLOGIC PLCs - the most practical PLCs in the industry......from AutomationDirect go back to Do-more home AutomationDirect online store

Spend Less; Do More

Do-more™ PLC: Video - Accurate Simulator

Video Transcript:

The Do-more simulator is a great way to test your ladder code in a safe environment without the need for hardware.

The key thing to using the simulator is to think of it as an actual PLC – don't think of it as part of the Do-more Designer. Let's do a quick example to see how that works.

There are a couple different ways to approach starting a simulator project… For this one we'll treat it just like any other PLC project and click on NEW project. Give it a name – Let's call it SimTest. Choose the Do-more simulator as the destination, and say OK. And up pops our blank project.

Let's enter a few lines of code. Let's have X0 drive the Y0 output. And let's have an analog input – how about WX0. When he is larger than oh let's say 2500 … he'll drive output Y3.

Let's have contact C0 enable a timer. Great, there's our little project.

The yellow bar reminds me I need to accept it, the green bar reminds me I need to save it. Now we connect the project to the simulator just like any other PLC. We say PLC, Connect. We select the simulator link. And up pops our simulator. Let me re-arrange some things here so we can see everything at once. It's warning me that the PLC is not in terminal mode, that's ok.

It tries to set the PLC clock – I don't care about that. Do I want to update the system configuration? No. And here we are. Let's move some things around so we can see what's going on here.

And here we are. As you can see the whole process works just like a real PLC. If we drive X0 then Y0 lights up. And just like a real PLC I can turn on the status for this ladder logic and watch it there also.

Let's see, what else do we have? If the analog input WX0 gets greater than 2500. Well, here's my analog inputs, if I crank that up to bigger than 2500 – I'm watching y3 right here – as soon as it gets bigger than 2500 Y3 turns on. Perfect.

Let's see, C0 is controlling this timer right here. Well, you can't control C0 from a PLC, right? These are just indicators. You have to do it just like we always do it. Bring up a Data View. We want to watch C0. Let's bring that over here so we can see it. And we want to be able to change that so I turn on the edit mode. And from here I can enable C0. C0 turns on and the timer starts running which I can see here and down here in the simulator. When C0 turns off, the timer turns off.

As you can see, the simulator allows you to view and control a sample of pretty much everything in the PLC, so the key is to develop each of your ladder functions to use about this amount of resources. That keeps your code small enough to test in the simulator and also has the side benefit of keeping your code blocks a manageable size!

One caveat here, because the simulator is acting like a PLC, we need to be able to control the external inputs here so we can monitor the external outputs. What if I want to control the External inputs from within Do-more designer? Can I do that? If I bring up X0 right here, and I say I want to turn it off, nothing happens. On, Off. Nothing Happens. Why is that? That's because the external input is being driven by the Simulator. If I want to turn that off, I can de-select "enable inputs" and now this X0 has no effect, but this one does. So keep that in mind – you can control the external inputs here or here, but not both.

Well, that should be enough to get you going with the Do-more simulator. The bottom line is just treat it like a real PLC and everything will fall into place.

Check out the other videos in this series for more ways to get up and running quickly with the DoMore PLC. And as always, please send us any topics you would like to see covered – or - any other comments for that matter – we appreciate the feedback!

Spend Less. Do More. From Automation Direct.




 

Check-out all the Do-more™ Videos

  The Do-more Way
  Do-more Designer Software
  Do-more Ethernet I/O
  Do-more Motion Control Videos
  Do-more with ViewMarq Message Display

User Application Stories
Encompassing all AutomationDirect PLCs


Helpful PLC guides

 

 

Copyright © AutomationDirect.com. All rights reserved.All prices are U.S. list prices.