76
Application Programming Examples
Publication 1746-UM614B-EN-P - September 2007
Program
The first six rungs change channel configurations based on the
position of the two selector switches.
Rung 2.0
If the degrees selector switch is switched to Fahrenheit, configure all four channels to read in
degrees Fahrenheit. The default for channel 0 is to read the ambient temperature thermocouple.
Degrees Selector
Switch =
Fahrenheit
I:2.0
B3
] [
OSR
0
Rung 2.1
If the ambient/cabinet selector switch is switched to ambient, and the degrees selector switch is
switched to Fahrenheit, configure channel 0 to read the ambient temperature thermocouple in
degrees Fahrenheit.
Degrees Selector
Ambient/Cabinet
Switch =
Selector Switch =
Fahrenheit
Ambient
I:2.0
I:2.0
] [
] [
0
Rung 2.2
If the ambient/cabinet selector switch is switched to cabinet, and the degrees selector switch is
switched to Fahrenheit, configure channel 0 to read the CJC sensor in degrees Fahrenheit.
Degrees Selector
Ambient/Cabinet
Switch =
Selector Switch =
Fahrenheit
Ambient
I:2.0
I:2.0
] [
]/[
0
Rung 2.3
If the degrees selector switch is switched to Celsius, configure all four channels to read in
degrees Celsius. The default for channel 0 is to read the ambient temperature thermocouple.
Degrees Selector
Switch =
Celsius
I:2.0
B3
]/[
OSR
0
Configure Channels
COPY FILE
Source
0
Dest
Length
Configure Channels
B3
MOVE
OSR
Source
1
1
Dest
Configure Channels
B3
MOVE
OSR
Source
1
2
Dest
Configure Channels
COPY FILE
Source
3
Dest
Length
COP
#N10:0
#O:1.0
4
MOV
N10:0
O:1.0
MOV
N10:8
O:1.0
COP
#N10:4
#O:1.0
4