![background image](http://html.mh-extra.com/html/omron/sysmac-cpm2b/sysmac-cpm2b_operation-manual_1633427131.webp)
113
Application Procedure
Section 6-4
A/D conversion or D/A conversion processing will not be performed until the
range code is correctly set. After being set, the range code cannot be
changed during operation. The following tables show an example of range
code settings and how the range codes are set in the output words.
Ladder Programming Example for Writing Range Codes
Use SR 25315 (First Cycle Flag: Turns ON for 1 cycle at the start of opera-
tion) and the MOV(21) instruction to write the range code settings. Once the
range code settings have been set, they are recorded by the Board when the
power is ON.
Bit
Word n+1
(#8092)
Word n+2
(#8088)
Word n+3
(#8042)
15
14
13
12
11
10
09
1
0
0
0
0
0
0
1
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
1
0
0
0
1
0
0
0
1
0
0
0
1
0
0
0
0
1
0
1
0
0
0
08
07
06
05
04
03
02
01
Analog output 1
Analog input 2
Analog input 1
Analog output 2
Analog input 4
Analog input 3
Analog output 3
Analog input 6 (Not used.)
Analog input 5
00
Analog input 1
I/O range
Range code
Setting location
Word
Bits
Analog input 2
Analog input 3
Analog input 4
Analog input 5
Analog input 6
Analog output 1
Analog output 2
Analog output 3
4 to 20 mA
4 to 20 mA
−
10 to 10 V
0 to 10 V
0 to 5 V
Not used.
4 to 20 mA
4 to 20 mA
0 to 10 V
010
010
000
001
010
---
010
010
001
00 to 02
03 to 05
00 to 02
03 to 05
00 to 02
03 to 05
06 to 08
06 to 08
06 to 08
Word n+1
Word n+2
Word n+3
Word n+1
Word n+2
Word n+3
Analog input/output
Sets the range codes for analog inputs 1 and 2, and analog output 1
in output area word IR 014.
25315
MOV(21)
#8092
014
Sets the range codes for analog inputs 3 and 4, and analog output 2
in output area word IR 015.
MOV(21)
#8088
015
Sets the range codes for analog input 6 (and 5), and analog output 1
in output area word IR 016.
MOV(21)
#8042
016
First Cycle Flag
(turns ON for 1 cycle at
the start of operation)
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com