3-5
Section
Using the Functions
52
3-5-3 Writing Set Values
Analog output set values are written to IR words n+1 through n+8.
Word
Function
Stored value
n+1
Output 1 set value
16-bit binary data
n+2
Output 2 set value
y
n+3
Output 3 set value
n+4
Output 4 set value
n+5
Output 5 set value
n+6
Output 6 set value
n+7
Output 7 set value
n+8
Output 8 set value
For the IR word addresses, n = 100 + 10 x unit number.
For Units #A to #F (10 to 15), n = 400 + 10 x (unit number – 10).
Use MOV(21) or XFER(70) to write values in the user program.
In this example, the set value from only one input is read. (The unit number is
#0.)
MOV (21)
DM0001
101
Input condition
The set value stored in DM 0001
is written to IR word 101 (output
number 1).
In this example, multiple set values are written. (The unit number is #0.)
XFER(70)
#0004
DM0001
101
Input condition
The set values stored in DM 0001
to DM 0004 are written to IR words
101 to 104 (outputs 1 to 4).
For details regarding set value scaling, refer to page 118,
Sample Program 5:
Scaling Function
.
Note
Turn ON the Conversion Enable Bit for converting set values into analog output.
3-5-4 Starting and Stopping Conversion
To begin analog output conversion, turn ON the corresponding Conversion En-
able Bit (word n, bits 00 to 07) from the user’s program.
15
14
13
12
11
10
09
08
07
06
05
04
03
02
01
00
Bit
Output 8
Output 7
Output 6
Output 5
Output 4
Output 3
Output 2
Output 1
Analog conversion is executed while
these bits are ON. When the bits are
turned OFF, the conversion is stopped
and the output data is held. (Refer to
3-5-2 Output Hold Function
.)
Word n
For the IR word addresses, n = 100 + 10 x unit number.
For Units #A to #F (10 to 15), n = 400 + 10 x (unit number – 10).
Example 1
Example 2