Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use FB and / or FC s for the main part of your program. Use the methods mentioned in the exercise sessions for programming with
Use FB andor FCs for the main part of your program. Use the methods mentioned in the exercise sessions for
programming with FBs or FCs: SHL
Use as little memory as possible memorywords statics, timers, counters,...
Test each part, a program that doesnt work will not give you a lot of points!
Palindrome
We design an access control that receives a bit code from a barcode reader enter with HMI, put data type in
binary This barcode reader also gives us a short "read" signal at each new pass simulate this signal We check
whether this bit code is a palindrome, so identical when read from left to right or right to left, for example LEVEL.
If the code is a palindrome, we open the door we activate an output for seconds
If one wants to smuggle someone in one will probably scan the same pass twice bits are identical Give
a silent alarm a separate output when this happens, but let the person in
In a shift, there are at least different badges the codes are not fixed, they only should be a palindrome
Make sure that if you try the same card twice in a shift, the silent alarm goes off. Only the passes that lead
to access are stored, not the rejected ones. Add a reset button to start a new shift.
The amount of badges is variable and can be chosen on the HMI maximum When this amount is
reached, a new shift will start automatically
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