Page 252 - Programmable Logic Controllers, Fifth Edition - Mobile version
P. 252
Ladder logic program
L1 Inputs GRT Output L2
S1 PL1
GREATER THAN
Source A N7:112
S1 PL1
Source B 12
N7:112
Thumbwheel switch
Figure 10-52 Program for Problem 5.
7. Write a program that will copy the value stored at 11. Write a program that will cause a light to come on
address N7:56 into address N7:60. only if a PLC counter has a value of 6 or 10.
8. Write a program that uses the mask move instruc- 12. Write a program that will cause a light to come on if
tion to move only the upper 8 bits of the value a PLC counter value is less than 10 or more than 30.
stored at address I:2.0 to address O:2.1 and to 13. Write a program for the following: The tempera-
ignore the lower 8 bits. ture reading from a thermocouple is to be read and
9. Write a program that uses the FAL instruction to stored in a memory location every 5 minutes for
copy 20 words of data from the integer data file, 4 hours. The temperature reading is brought in con-
starting with N7:40, into the integer data file, tinuously and stored in address N7:150. File #7:200
starting with N7:80. is to contain the data from the last full 4-hour
10. Write a program that uses the COP instruction to period.
copy 128 bits of data from the memory area, start-
ing at B3:0, to the memory area, starting at B3:8.
Data Manipulation Instructions Chapter 10 233
pet73842_ch10_207-233.indd 233 03/11/15 4:03 PM