Mitsubishi Electronics MELSEC-F Home Theater Server User Manual


 
E-61
8 Examples of Practical Programs
8.3 Example of Program for Table Output Operation (Pattern Output Operation)
A
Common Items
B
FX
3U
-4AD
FX
3UC
-4AD
C
FX
3U
-4AD-ADP
D
FX
3G
-2AD-BD
E
FX
3U
-4DA
F
FX
3U
-4DA-ADP
G
FX
3G
-1DA-BD
H
FX
3U
-3A-ADP
I
FX
3U
-4AD-PT
-ADP
J
FX
3U
-4AD-PTW
-ADP
FX
3G
/FX
3U
/FX
3UC
PLC User's Manual - Analog Control Edition
FX3U-4DA (4-channel Analog Output)
* Execute the data table transfer command as a pulse execution type instruction.
FNC 12
MOV
K1 U0\G81
P
T0
Channel-1 output pattern
Number of repetitions of output of table
from channel 1
FNC 12
MOV
K2 U0\G83
P
X000
FNC 12
MOV
H0101 U0\G80
P
FNC 12
MOV
H0000 U0\G80
P
Start table output function (channel 1)
Turning-off of M1 when output of table from
channel 3 is stopped
Turning-on of M1 when table is output from
channel 3
Completion of table output from channel 1
Output to Y000
Y001
FNC 12
MOV
H0100 U0\G80
P
D101.0
Y000
Number of repetitions of output of table
from channel 3
Number of head device in data table
Data table transfer command
Readout of data table transfer command
Turning-on of M0 At the completion of transfer
of data table
Start table output function (channel 3)
Turning-on of M1 when table is output from
channel 3
Stop table output function
Readout table output completion flag and table
output error
Restart of table output function (channel 3)
FNC 12
MOV
K5 U0\G85
P
FNC 12
MOV
K0 U0\G87
P
FNC 12
MOV
K5000 U0\G98
P
FNC 12
MOV
H0001 U0\G99
P
D100.0
SET M0
FNC 79
FROM
K0 K99 K1D100
SET M1
M1
M1
RST M1
FNC 12
MOV
H0100 U0\G80
P
X002
M1
SET M1
FNC 79
FROM
K0 K89 K2D101
M1
FNC 228
LD< >
K0 D102
Channel-3 output pattern
Output to Y001 when table output error occurs
X001
X000
*