Mitsubishi Electronics MELSEC-F Home Theater Server User Manual


 
E-58
8 Examples of Practical Programs
8.2 Example of Program using Useful Functions
FX
3G
/FX
3U
/FX
3UC
PLC User's Manual - Analog Control Edition
FX3U-4DA (4-channel Analog Output)
2. Example of sequence program
•For FX3U, FX3UC Series PLCs
*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).
M8002
FNC 12
MOV
H2200 U0\G0
P
M8000
K50
T0
T0
Output modes of channels 1 to 4 will be specified
Upper/lower limit function setting
Initial pulse
RUN monitor
FNC 12
MOV
H1122 U0\G38
P
X000
FNC 12
MOV
H0003 U0\G40
P
X001
FNC 12
MOV
K0 U0\G29
P
X002
FNC 12
MOV
K0 U0\G28
P
Clearance of upper/lower limit function status data
Clearance of disconnection detection status data
M8000
RUN monitor
Output of upper/lower limit error status of channels to
Y000 to Y007
D202.3
Error detected Output to Y011
D200.0
Y011
*1
FNC 16
FMOV
K-3200 U0\G41 K2
P
FNC 16
FMOV
K6400 U0\G43 K2
P
FNC 16
FMOV
K28800 U0\G45 K2
P
FNC 16
FMOV
K25600 U0\G47 K2
P
FNC 12
MOV
H0011 U0\G50
P
FNC 16
FMOV
K5000 U0\G51 K2
P
FNC 12
MOV
H0007 U0\G60
P
FNC 15
BMOV
D10 U0\G1 K4
FNC 12
MOV
D201 K2Y000
D202.2
Y010
Setting of lower limit values for channels 1 and 2
Setting of lower limit values for channels 3 and 4
Setting of upper limit values for channels 1 and 2
Setting of upper limit values for channels 3 and 4
Corrective function setting by load resistance
Setting of load resistance values for channels 1 and 2
Status automatic transfer function setting
(The initial setting of destination data registers is used,
and the sequence program for this function is omitted.)
Clearance of error status data
Disconnection detected in channels 3 and 4
Output to Y010
Transfer of data that will be output from channels 1 to 4
*2
*1
*1
*1