Download "user manual"

Transcript
FX3U/FX3UC Series PLC User's Manual - Analog Control Edition
FX3U-4DA (4-channel Analog Output)
8 Examples of Practical Programs
8.2 Example of Program using Useful Functions
2. Example of sequence program
Initial pulse
M8002
FNC 12
MOV P
RUN monitor
M8000
H2200
T0
T0
FNC 12
MOV P
K50 *2
H1122
U0\G38
Upper/lower limit function setting
K-3200
U0\G41
K2
Setting of lower limit values for channels 1 and 2
FNC 16
FMOV P
K6400
U0\G43
K2
Setting of lower limit values for channels 3 and 4
FNC 16
FMOV P
K28800 U0\G45
K2
Setting of upper limit values for channels 1 and 2
FNC 16
FMOV P
K25600 U0\G47
K2
Setting of upper limit values for channels 3 and 4
X000
X001
X002
FNC 15
BMOV
FNC 12
MOV P
H0011
U0\G50
K5000
U0\G51
K2
Setting of load resistance values for channels 1 and 2 *1
FNC 12
MOV P
H0007
U0\G60
Status automatic transfer function setting *1
(The initial setting of destination data registers is used,
and the sequence program for this function is omitted.)
FNC 12
MOV P
H0003
U0\G40
Clearance of upper/lower limit function status data
FNC 12
MOV P
K0
U0\G29
Clearance of error status data
FNC 12
MOV P
K0
U0\G28
Clearance of disconnection detection status data
D10
U0\G1
K4
FNC 12
MOV
D201
K2Y000
D202.2
Corrective function setting by load resistance *1
Transfer of data that will be output from channels 1 to 4
Output of upper/lower limit error status of channels to
Y000 to Y007
Y010
Disconnection detected in channels 3 and 4
Output to Y010
Y011
Error detected Output to Y011
D202.3
D200.0
D-58
Output modes of channels 1 to 4 will be specified *1
FNC 16
FMOV P
FNC 16
FMOV P
RUN monitor
M8000
U0\G0
*1.
The output mode setting, setting of corrective function by load characteristics and status automatic
transfer function setting are retained in the EEPROM of FX 3U-4DA. For this reason, even if the
sequence program is deleted, the previously set functions will still be valid.
*2.
After setting the output mode, set the data writing time (waiting time) to 5 seconds or more for each
setting. After the output mode is specified, and the same output mode is used, it is not necessary to
set the output mode and the waiting time (T0 K50).