Answered step by step
Verified Expert Solution
Question
1 Approved Answer
LAB 2 : Creating a parking lot using ladder logic. Goal of the experiment: To test your TwinCAT knowledge to see if you can build
LAB : Creating a parking lot using ladder logic.
Goal of the experiment: To test your TwinCAT knowledge to see if you can build a parking lot system.
Experiment:
Using TwinCAT Ladder logic create a parking lot system, this system must have the following qualities:
Sensors that detect a car has arrived or left.
A maximum capacity of
LEDs to indicate if the lot is full or empty.
Rise Trigger
Up and Down Counter
EXPLANATION:
For this experiment you will create a new TwinCAT project and in said project you will create a new PLC
project. In this PLC project you will create your ladder logic program file, create the variables and the
logic blocks.
In your declarations section you will need to create variables for the in and out sensors Initialization
Maximum capacity, space available, red LED, green LED, and Reset. These variables will be declared as
BOOLS or Integers depending on their function. You will also need declare variables for the Rise Trigger
and the Count Up and Down boxes you will use in the experiment.
For this experiment you will need to create your logic blocks using the Insert Box, Insert Empty Box, and
Insert Empty Box with ENENO Each of these blocks will be given its own network rung. These boxes
are:
Riser Trigger
Count Up and Down
GT
NE
You will know if your project was successful once you are able to change the car in or out sensor and you
see the number of available spaces go up or down. Also, when there is at least one spot open in the lot
one of your LEDS should be on and when the lot is full the other LED should turn on
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started