Question: Question 1) Write a program in (C++) to control a set of 10 motors ; the motors are operating under load balancing mechanism as follows
Question 1) Write a program in (C++) to control a set of 10 motors ; the motors are operating under load balancing mechanism as follows :
Motors operate in pairs as follows: 1,10 then 2,9 then 3,8 then 4,7 then 5,6 then repeat .
The operating duration for each pair is 10,000 milliseconds.
After each operating cycle, all motors must be off for 10,000 milliseconds then a new cycle starts.
The operating sequence is running 24/7 .
it is required to print the motors status in each operating duration.
Hint : you may use the function __delay _ms( milliseconds ) for the delay operations .
Please explain the steps Thanks .
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
