Question: Shown is part of a temperature control program with math instructions. Start and PB _ Set are normally open switch and push button respectively. The

Shown is part of a temperature control program with math instructions. Start and PB_Set are normally open switch and push button respectively. The desired temperature is given by Local:4:I.Ch0Data and the measured temperature is given by Local:4:I.Ch1Data, they are both in normal decimal form and in range of 0 to 1000C(??F), a) Explain how the program works, b) If the desired temperature is entered as 7500 instead of 750 accidently, which math instruction will cause an error? What type of error is it and how can it be detected? All numeric tags are of type INT (16 bit integer).
op
0
PB_Set
Local:2:I.Da
=0
??
Subtract
Source A Local:4:I.ChOData
Source B
0
PB_Set
Local:2:1.Data.1
1
PB_Set
Local:2:I.Data.1
2
3
4
Light_high
Light_low
\table[[Divide,],[Source A,Value_2],[Source B,0+
Shown is part of a temperature control program

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!