Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


Share this Page URL
Help

Chapter 8 - Application Design > 8.4. Program Implementation - Pg. 174

174 Chapter 8 MOT1 Program to generate PWM output to Motor Initialize Outputs Motor Inputs Speed up Speed down Run enable Registers Count = 128 Start loop IF IF IF IF IF Run enable = off THEN wait Speed up = on THEN inc Count Count = 0 THEN dec Count Speed down = on THEN dec Count Count = 0 THEN inc Count Switch on Motor Delay for Count Switch off Motor