Question: Remote Assignment 3 The following document outlines the required prelab activities, main lab task, and file submission required for this remote assignment. Prelab Before you
Remote Assignment
The following document outlines the required prelab activities, main lab task, and file submission
required for this remote assignment.
Prelab
Before you can begin the main lab task, you must:
Sign in to PLC Fiddle, navigate to code school, and complete
a Intro to Timers Lesson
Lab Task
You will create a clock module that keep track of hours, AMPM status, and number of hour days
passed. Three days will equal month, and months will be the maximum limit of our clock. It will do
this by alternating AMTimer and PMTimer once each day, like the setup in Timers Lesson You will
create the following tags:
ClockStart A Boolean that controls if the clock is counting ON or not OFF
AMTimer a Timer that counts for seconds. We will use second hour for this project.
PMTimer a Timer that counts for seconds. We will use second hour for this project.
AMPM a Boolean where OFF AM ON PM
DaysPassed a Counter that keeps track of the number of days that have passed. Assume days
per month for this assignment so we can reasonably test the clock.
MonthsPassed a Counter that keeps track of how many months have passed. Assume a
maximum value of for this assignment.
Your program will need to meet the following criteria:
When ClockStart is turned ON AMTimer should begin counting. Once it reaches the
maximum, PMTimer should start counting.
When PMTimer reaches its max then DaysPassed should increment and the counting
cycle starts over.
AMPM needs to accurately reflect which timer is active.
DaysPassed and MonthsPassed should reset of ClockStart is turned OFF.
Also, AMTimer should not be enabled if MonthsPassed is at clock stops counting
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
