B-53
7 Examples of Practical Programs
7.2 Program That Uses Convenient Functions
A
Common Items
B
FX
3UC
-4AD
C
FX
3U
-4AD-ADP
D
FX
3U
-4DA-ADP
E
FX
3U
-4AD-PT
-ADP
F
FX
3U
-4AD-TC
-ADP
G
PID Instruction
(FNC 88)
FX
3U
/FX
3UC
Series PLC User's Manual - Analog Control Edition
FX3UC-4AD (4-channel Analog Input)
2. Example of sequence program
*1. After setting the input mode, set the data writing time (waiting time) of 5 seconds or more for each
setting.
After this, if the same input mode is used, it is not necessary to set the input mode and the waiting
time (T0 K50) again.
*2. The set input mode, convenient functions, upper/lower limit error status data automatic transfer-to
data register number, over-scale status data automatic transfer-to data register number, and error
status data automatic transfer-to data register number are retained in the EEPROM of 4AD. For this
reason, even if the sequence program is deleted, the previously set functions will still be valid.
M8002
FNC 12
MOV
H3300 U1\G0
P
M8000
K50
T0
*1
T0
Input modes of channels 1 to 4 will be
specified.
The convenient functions will be set.
Initial pulse
The upper/lower limit error status data automatic
transfer-to data register will be set to D100.
FNC 16
BMOV
U1\G10 D0 K4
RUN monitor
Reads the digital values of channels 1 to 4 from
BFM#10 to #13 into D0 to D3.
FNC 12
MOV
H01A2 U1\G22
P
FNC 12
MOV
K100 U1\G126
P
FNC 12
MOV
K101 U1\G128
P
FNC 12
MOV
K102 U1\G129
P
The over-scale status data automatic transfer-to data
register will be set to D101.
The error status data automatic transfer-to data register
will be set to D102.
X000
FNC 12
MOV
H0003 U1\G99
P
Clearance of upper/
lower limit error data
Clearance of over-scale
data
X001
FNC 12
MOV
K0 U1\G28
P
Clearance of error
status data
X002
FNC 12
MOV
K0 U1\G29
P
Clearance of upper/lower limit error data
Clearance of over-scale data
Clearance of error status data
M8000
FNC 12
MOV
D100 K2Y000
The upper/lower limit error status data of each channel
will be output to Y000 to Y007.
RUN monitor
FNC 12
MOV
D101 K2Y010
The over-scale status data of each channel will be
output to Y010 to Y017.
D102.0
The error detection signal will be output to Y020.
Y020
Error detection
D102.8
Y021
Setting error detection
The setting error detection signal will be output to Y021.
*2
*2
*2
*2
*2