Sequence Program - Mitsubishi Electric MELSEC FX Series User Manual

Programmable controllers
Hide thumbs Also See for MELSEC FX Series:
Table of Contents

Advertisement

FX
-4LC User's Manual
3U
9.2.4

Sequence program

The sequence program for the example program with the FX
unit No.0 to match the actual system configuration to be used.
The FROM/TO instructions are used for read/write of buffer memory.
→ For details on the how to read/write from/to buffer memory, refer to Subsection 9.1.2.
M8002
Initial pulse
M8000
RUN monitor
X000
M15
Temperature
control ready
flag
X000
M100
M14
Initialization
completed
flag
To next page
→ For details on the unit No., refer to Subsection 9.1.1.
→ For details on the system configuration, refer to Subsection 9.2.1.
→ For details on the conditions of operation, refer to Subsection 9.2.2.
→ For details on the device assignments, refer to Subsection 9.2.3.
MOV
K1000
MOV
K1000
TO
K0
K48
TO
K0
K88
TO
K0
K208
P
TO
K0
K214
P
TO
K0
K240
P
TO
K0
K255
P
TO
K0
K57
P
TO
K0
K97
P
TO
K0
K62
P
TO
K0
K102
P
TO
K0
K75
P
TO
K0
K115
P
TO
K0
K79
P
TO
K0
K119
P
TO
K0
K86
P
TO
K0
K126
P
9.2 Example of a Program for PID Control
-4LC as unit No. 0 is shown below. Change
3U
D0
100.0
set value.
D1
D0
K1
Writes set values.
D1
K1
K1
K1
Input type selection:
Type K -100.0 to 400.0
K1
K1
Control mode switch:
K0
K1
0 (initial value)
Initialization command
K2
K1
2
SET
M100
RST
M100
K3
K1
Operation mode:
3:Monitor+Alarm+Control
(initial value)
K3
K1
K1
K1
Control response parameter:
1:Medium
K1
K1
K1
K1
Normal operation/reverse
operation:
1:Reverse operation (initial value)
K1
K1
K100
K1
Loop breaking alarm dead zone
±
10.0
K100
K1
K0
K1
Transistor output selection:
0 (initial value)
K0
K1
To next page
9 Program Examples
C
set to D0 and D1 as a
C
C
133
1
2
3
4
5
6
7
8
9
10

Advertisement

Table of Contents
loading

Table of Contents