Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Your task You will need the following: 2BC9000%u2019s 2 KL2012%u2019s, 2KL1012,

ID: 3537112 • Letter: Y

Question

Your task

You will need the following: 2BC9000%u2019s 2 KL2012%u2019s, 2KL1012, 2 KL9010 1 PC with TwinCAT.

Each BC runs a parking lot, one lot holds 10 cars one lot holds 2 cars.

Each lot has a sensor counting cars into it.

Each lot has a sensor counting cars out of it.

When a lot has a vacancy, one digital output turns on the Vacancy Sign

If the lot is full the Lot Full sign is lit.

The lot cannot have a negative number of cars, but it can be over full (cars driving around)

When a car enters the lot, send the master PC Program the following information: Number of cars in the lot and the Name of the lot as a string. This should be done via a structure which contains an integer value and a string value.

Explanation / Answer

ANSWER


THIS WILL HELP YOU


On the one side, they have a huge selection of reasonably priced I/O and drive hardware covering pretty much every fieldbus you%u2019d ever want to connect to. All of their communication technologies are built around EtherCAT, an industrial fieldbus of their own invention that then became an open standard. EtherCAT, for those who haven%u2019t seen it, has two amazing properties: it%u2019s extremely fast, compared with any other fieldbus, and it%u2019s inexpensive, both for the cabling and the chip each device needs to embed for connectivity. It%u2019s faster, better, and cheaper. When that happens, it%u2019s pretty clear the old technologies are going to be obsolete.

On the other side, they%u2019re a PC-based controls company. Their PLC and motion controllers are real-time industrial controllers, but you can run them on commodity PC hardware. As long as PCs continue to become more powerful, Beckhoff%u2019s hardware gets faster, and they get those massive performance boosts for free. Not only that, but they get all the benefits of running their PLC on the same machine as the HMI, or other PC-based services like a local database. As more and more automation cells need industrial PCs anyway, integrators who can deliver a solution that combines the various automation modules on a single industrial PC will be more competitive.

Next year Beckhoff is planning to release TwinCAT 3, a serious upgrade from their existing TwinCAT 2.11. The biggest news (next to support for multiple cores) is that the IDE (integrated development environment) is going to be built around Microsoft%u2019s Visual Studio IDE. That%u2019s a pretty big nod to the PC programmers%u2026 yes you can still write in all the IEC-61131-3 languages, like ladder, function block, etc., but you can also write code in C/C++ that gets compiled down and run in the real-time engine.

Though it hasn%u2019t been hyped as much, I%u2019m pretty excited that you can have a single project (technically it%u2019s called a %u201Csolution%u201D) that includes both automation programming, and programming in .NET languages like C# or VB.Net. While you can%u2019t write real-time code in the .NET languages, you can communicate between the .NET and real-time parts of your system over the free ADS communication protocol that TwinCAT uses internally. That means your system can now take advantage of tons of functionality in the .NET framework, not to mention the huge amount of 3rd party libraries that can be pulled in. In fact, did you know that Visual Studio has a Code Generation Engine built in? It would be pretty cool to auto-generate automation code, like ladder logic, from templates. You%u2019d get the readability of ladder logic without the tedious copy/paste/search/replace. (Plus, Visual Studio has integrated source control, but I digress%u2026