Question

1. Would math instructions be classified as input or output instructions? (1 pt.) 2. What will the value of N7:2 be when the
Heading 1 Heading 2 5. What will the value of N7:11 be when the below instruction executes? (2 pts.) -DIV Divide Source A N79
7. What will the value of N7:14 be when the below instruction executes? (1 pt.) CLR Dest 8. A main conveyor has two feeder co
Symbol Name Input/Output Address Notes Conveyor_A_Prox Input 1:1/0 Normally Open Proximity Switch Conveyor_B_Prox Input 1:1/1
Can Count A Integer N7:0 Total count of all cans produced on Line A Can Count B Integer N7:1 Total count of all cans produced
0 0
Add a comment Improve this question Transcribed image text
Answer #1

ANSWER:

1. MATH INSTRUCTIONS ARE OUTPUT INSTRUCTION BECAUSE THE MATH INSTRUCTION GETS EXECUTED WHEN THE RUNG BECOMES TRUE.

2. WHEN ADD INSTRUCTION GETS EXECUTED,

   VALUE AT N7:2 = VALUE AT N7:0 + VALUE AT N7:1

   VALUE AT N7:2 = 12+14 = 26

3. WHEN SUB INSTRUCTION GETS EXECUTED,

   VALUE AT N7:5 = VALUE AT N7:3 - VALUE AT N7:4

VALUE AT N7:5 = 30-35 = -5

4. WHEN MUL INSTRUCTION GETS EXECUTED,

   VALUE AT N7:8 = VALUE AT N7:6 * VALUE AT N7:7

VALUE AT N7:8 = 2*9 = 18

5. WHEN DIV INSTRUCTION GETS EXECUTED,

   VALUE AT N7:11 = VALUE AT N7:9 / VALUE AT N7:10

VALUE AT N7:11 =9/2 = 4.5 = 4

INTEGER N7 DONOT TAKE DECIMAL VALUES. SO THEY CORRECT TO THE NEAREST WHOLE INTEGER.

6. WHEN NEG(NEGATE) INSTRUCTION GETS EXECUTED,

   VALUE AT N7:13 = (-1) * (VALUE AT N7:12)

VALUE AT N7:13 = (-1) * 500 = -500

7. BEFORE EXECUTION OF CLR INSTRUCTION, VALUE AT N7:14 = 15

CLR INTRUCTION CLEARS THE VALUE STORED AT THE DESTINATION TO 0.

AFTER EXECUTION OF CLR INSTRUCTION, VALUE AT N7:14 = 0.

Add a comment
Know the answer?
Add Answer to:
1. Would math instructions be classified as input or output instructions? (1 pt.) 2. What will...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT