Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
13 Applied Instructions (Handy Instruction)
13.1 IST / Initial State
319
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
11
Applied Instructions
(Data Operation)
12
Applied Instructions
(High Speed
Processing)
13
Applied Instructions
(Handy
Instruction)
14
Applied Instructions
(External FX I/O
Device)
15
Applied Instructions
(External Device
(optional device))
16
Applied Instructions
(External Device)
17
Applied Instructions
(Data Transfer 2)
18
Applied Instructions
(Floating Point)
19
Applied Instructions
(Data Operation 2)
20
Applied Instructions
(Positioning
Control)
5. Program examples
1) Circuit diagram
In the sequence circuit shown below, other portions than the shaded area are routine circuits. You can
program the shaded area circuit according to the content of the control.
a) Initial circuit
During operation of the machine, the operation can be changed over freely within the "automatic
operation' mode (stepping/one-cycle/continuous).
During operation of the machine, if changed over among "individual operation"/ "return home"/
"automatic operation", for safety precaution, all outputs are once reset, and the mode after
changeover is valid.
(You cannot reset when all outputs reset ban M8045 is turned ON.)
b) Individual operation
Program is not required when individual mode is not available.
Initial
state
M8000
RUN
monitor
IST
EN
s
ENO
d1
d2
X020
S20
S27
X004 X002
M8044
Left
limit
Upper
limit
Unclamp
The home position status is detected, and used as the
condition for start of transfer to automatic operation.
Y001
Home position
condition
[Structured ladder/FBD]
M8044:= X004 AND X002 AND NOT Y001;
IST(M8000, X020, S20, S27);
[ ST ]
X012
Clamp command
Clamp
X007
Unclamp command
SET
EN ENO
d
Y001
X005
Ascend
command
Y000
Y002
X010
Descend
command
Y002
Y000
X006
Left move
command
Y003
Y004
X002
X011
Right move
command
Y004
Y003
X002
Ascend
Descend
Left move
Right move
Upper limit
RST
EN ENO
d
Y001
[ ST ]
SET(X012, Y001);
RST(X007, Y001);
Y002:= X005 AND NOT Y000;
Y000:= X010 AND NOT Y002;
Y004:= X006 AND X002 AND NOT Y003;
Y003:= X011 AND X002 AND NOT Y004;
[Structured ladder/FBD]