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 3
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:
1. Sign in to PLC Fiddle, navigate to code school, and complete
a. Intro to Timers Lesson 0-6
Lab Task
You will create a clock module that keep track of 24 hours, AM/PM status, and number of 24-hour days
passed. Three days will equal 1 month, and 3 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 3. 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 12 seconds. We will use 1 second =1 hour for this project.
PMTimer a Timer that counts for 12 seconds. We will use 1 second =1 hour for this project.
AM/PM a Boolean where OFF = AM, ON = PM
DaysPassed a Counter that keeps track of the number of days that have passed. Assume 3 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 3 for this assignment.
Your program will need to meet the following criteria:
1. When ClockStart is turned ON, AMTimer should begin counting. Once it reaches the
maximum, PMTimer should start counting.
2. When PMTimer reaches its max then DaysPassed should increment and the counting
cycle starts over.
3. AM/PM needs to accurately reflect which timer is active.
4. DaysPassed and MonthsPassed should reset of ClockStart is turned OFF.
5. Also, AMTimer should not be enabled if MonthsPassed is at 3(clock stops counting).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!