Change a channel configuration – Rockwell Automation 1746-INT4 Thermocouple/MV Isolated/ User Manual User Manual
Page 59

Publication 1746-UM614B-EN-P - September 2007
Ladder Programming Examples 59
2. Program a rung of ladder logic to copy the integer file #N10 into
output image file O:3.0 through O:3.3.
Change a Channel
Configuration
The following example explains how to change the channel
configuration word when the channel is currently enabled.
We use #N10:4 to store the new configuration word. Consider input
I:1.0/0 as a push button switch for changing configurations. The
one-shot instruction OSR enables the Copy instruction once no matter
how long the operator presses the push button switch.
] [
COP
COPY FILE
Source
#N10:0
Dest
#O:3.0
Length
4
S:1
15
First Pass Bit
Initialize NT4
When cycling power, bit S:1/15 is set for the first program scan. It enables the Copy
instruction to load configurations into the output image file for transfer to the module in the
EXAMPLE
Change the channel configuration word to read the temperature
inside the control cabinet as read by the CJC thermistor. Then
restore the original channel configuration.