
4. Applications
■
Example 1: A/D program example of simple temperature control
• Compares the analog data from channel 0 of analog control board No. 0 (DT9080) with preset values (K100 and
K110). The compared result is stored in special internal relays R900A and R900C.
- When the contents of DT9080 < K100, external output relay Y0 (heater) goes ON.
- When the contents of DT9080 > K110, external output relay Y0 (heater) goes OFF.
Program
■
Example 2: D/A program example of variable speed control
• Transfer the value of potentiometer V0 on the FP-M control board to channel 0 of analog control board No. 0
(DT9096).
Program
Special internal relay
- R9010: Always ON relay
High-level instruction
- F0 (MV): 16-bit data, move
Special data registers
- DT9040: Manual dial-set register for potentiometer
V0 on FP-M control board
- DT9096: Channel 0 of digital value for specifying
analog data output from analog control
board No. 0
R9010
F0 MV, DT9040, DT9096
Value of DT9096
0
t
Special internal relays
- R9010: Always ON relay
- R900A: > flag
- R900C: < flag
High-level instruction
- F62 (WIN): 16-bit data band compare
Special data register
- DT9080: Channel 0 of converted digital value from
analog control board No. 0
Value of DT9080
R9010
F62 WIN, DT9080, K100, K110
R900C
Y0
R900A
Y0
Heater
0
t
K110
K100
ON
Y0
OFF
147
7-4. Programming for Analog I/O, A/D Converter, and D/A Converter Boards
Summary of Contents for FP-M Hardware
Page 1: ...FP M Hardware ACG M0045 1 94 12 FP M Hardware PROGRAMMABLE CONTROLLER ...
Page 44: ...36 ...
Page 118: ...110 ...
Page 267: ......
Page 268: ......