
3.5 Using analog input
The buffer memories (BFM#) of the FX0N-3A are written to, or read from by the FX0N PC. The
following program reads the analog input from channel 1 of the FX0N-3A when M0 is ON, and the
analog input da ta of cha nnel 2 when M0 is OFF.
(H00) is written to BFM #17 select ing A/D inp ut channel 1.
(H02) is written to BFM #17 starting the A/D conversion process
for channel 1. BFM #0 is read, storing the current value of
channel 1 in register D00.
(H01) is writ ten to BFM #17 n ow selectin g A/D in put cha nnel 2.
(H03) is written to BFM #17 to re-start the A/D conversion
process but for channel 2. BFM #0 is read, storing the current
value of cha nnel 2 in registe r D01.
The time T
AD
required to read an analo g inp ut channel is calcu lat ed as follo ws:
T
AD
= (TO command processing time) ✕2 + (FROM command processing time )
Note: The 3 (TO/FROM) command format shown above should always be used when reading data
from the FX0N-3A’s analog input channels.
M 0
M 0
TO
FROM
K0 K17 H 00 K1
TO K0 K17 H 02 K1
K0 D 00 K1K0
TO
FROM
K0 K17 H 01 K1
TO K0 K17 H 03 K1
K0 D 01 K1K0