12.05.2014 Views

Automating Manufacturing Systems - Process Control and ...

Automating Manufacturing Systems - Process Control and ...

Automating Manufacturing Systems - Process Control and ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

plc basic functions - 15.35<br />

6. Write ladder logic to calculate the average of the values from N10:0 to N10:99. The operation<br />

should start after a momentary contact push button A is pushed. The result should be stored in<br />

N7:0. If button B is pushed, all operations should be complete in a single scan. Otherwise, only<br />

ten values will be calculated each scan. (Note: this means that it will take 10 scans to complete<br />

the calculation if A is pushed.)<br />

7. Write <strong>and</strong> simplify a Boolean equation that implements the masked move (MVM) instruction.<br />

8. a) Write ladder logic to calculate <strong>and</strong> store the binary sequence in integer memory starting at<br />

N7:0 up to N7:200 so that N7:0 = 1, N7:1 = 2, N7:2 = 4, N7:3 = 8, N7:4 = 16, etc. b) Will the<br />

program operate as expected?

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!