4: A
NALOG
I/O C
ONTROL
Note:
The above ladder diagram is only an example and should be modified as required.
4-20
•
Analog Output Module FC4A-K1A1 on Slot 3
Ladder Diagram
As shown in the ladder diagram below, when initialize pulse special internal relay M8120 is used for the ANST macro in
parallel with another instruction, load M8120 again for the other instruction.
DR Allocation Range
Designation
Description
D760 - D779
—
Automatic range allocation, 20 words
I/O
Channel
Item
Designation
Description
OUT
CH0
Signal Type
0 to 10V DC
Voltage output
Data Type
Binar y data
0 to 4095
M8120 is the initialize pulse special internal relay.
When the CPU starts to run, ANST stores parameters to
data registers to configure analog I/O modules and Q30
is turned on.
When I0 is turned on, analog input data is moved from
D676 to D1000.
The temperature is compared with the alarm tempera-
ture of 100°C.
When the temperature is higher than 100°C, Q30 is
turned off.
When the temperature is not higher than 100°C, Q30 is
turned on.
Analog input data of –500 to +1500 is converted to 0 to
2000.
Analog input data of 0 to 2000 is converted to 0 to
4000.
Analog input data of 0 to 4000 is moved to D772 (ana-
log output data) of the analog output module.
M8120
REP
S1 –
D676
D1 –
D1000
MOV(I)
REP
S1 –
D1000
D1 –
D772
MOV(W)
REP
S1 –
D676
D1 –
M30
CMP>(I)
S2 –
1000
NO.1
J8AT1
NO.3
K1A1
ANST
Q30
S
Q30
R
Q30
S
M30
M30
I0
REP
S2 –
500
D1 –
D1000
S1 –
D1000
ADD(I)
REP
S2 –
2
D1 –
D1000
S1 –
D1000
MUL(W)
M8120
Phone: 800.894.0412 - Web: www.clrwtr.com - Email: [email protected]