In the following example, channel CH1 is set to voltage output, while CH2 is set to current output. The FX-
2DA unit is connected at the position of special function block No.1. If the programmable controller is
changed to the STOP mode, the last data sent will remain and the outputs will hold.
Output
range
normal
5
EXAMPLE PROGRAM
5.1 Basic program
The ID code for the special function block at position
“1”is read from BFM #30 of that block and stored at
D4 in the FX base unit. This is compared to check the
block is an FX-2DA, if OK M1 is turned ON. These
two program steps are not strictly needed to perform
an analog output. They are however a useful check
and are recommended as good practice.
The analog output channels (CH1, CH2) are set up
by writing H10 to BFM #0 of the FX-2DA.
Output data normal
The operational status of the FX-2DA is read from
BFM #29 and output as bit devices at the FX base
unit.
(D0
→
BFM #1 (output to CH1))
(D1
→
BFM #2 (output to CH2))
M8000
RUN
monitor
K1
M0
D4
D4
K30
K3010
K1
CMP
FROM(P)
K1
H10
K0
K1
TO(P)
K2
K1
D0
K4M10
K1
K29
K1
K1
TO
FROM
M18
M10
NO
error
READY
M20
M3
M1
●
Set CH1 setting to D0
(-2,000 to +2,000)
●
Set CH2 setting to D1
( 0 to +1,000)
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com