Mitsubishi Electronics FX3G User Manual

Page of 964
91
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.2 I/O Relays [X, Y]
1
Introdu
ction
2
Ov
ervi
ew
3
Instruction 
Li
st
4
D
evices 
in Det
ai
l
5
Specifi
ed the
De
vice
 &
 
C
onst
ant
6
Bef
ore
 
Pr
og
ra
mmi
ng
7
Bas
ic 
Instruction
8
FN
C00-FN
C0
9
Program Fl
ow
9
FNC
10-FN
C19
Mov
e & Com
pare
10
FNC
20-FNC
29
Arith. & Lo
gi
Operati
on
4.2.3
Operation timing of I/O relays
The PLC executes sequence control by repeatedly executing the following processing procedure. In this batch I/O
method, not only are there driving times of input filters and output devices but also response delays caused by
operation cycles. (Refer to Section 6.3.)
Input processing
In
put
 ter
m
in
al
Input
 Image
Memory
1) Read-in
X000
X001
X002
Program processing
Device
Image
Memory
Output processing
O
u
tpu
t te
rmina
l
Output
Latch
Memory
6) Output
Y000
Y001
Y002
X000
M 0
4) Read-
     out
Y000
Auxiliary
relay
2) Read-out
R
e
pe
ated
 op
eratio
n
[T
he 
tim
e
 requi
red f
o
r a cycli
c
oper
a
tion i
s c
a
lled 
operati
o
cycle
(scan t
im
e
).
]
Y000
Input processing
Before executing a program, the PLC reads the ON/
OFF status of all input terminals inside the PLC into
the input image memory.
Even if inputs change while the program is
executed, the contents of the input image memory
remain unchanged, but the changes in inputs are
read during the input processing in the next cycle.
Even if an input contact changes from ON to OFF or
from OFF to ON, its ON/OFF status is judged after
the response delay (approximately 10 ms) caused
by the input filter.
(When the input filter is a digital type input terminal ,
its value can be overwritten by a sequence
program.)
Program processing
The PLC reads the ON/OFF status of each device
from the input image memory and other device
image memories according to the contents of
instructions in the program memory, executes
operations in sequence from step 0, and then writes
the operation result to the image memory.
Accordingly, the contents of the image memory  for
each device change as the program is executed.
The operation of a contact inside an output relay is
determined by the contents of the output image
memory.
Output processing
When execution of all instructions is finished, the
ON/OFF status of the image memory of outputs (Y)
is transferred to the output latch memory.  This is
the actual output of the PLC.
External output contacts inside the PLC operate
after the response delay time of the output devices.
The above method is called the batch I/O method (or refresh method).
1) 2) 3) .... 6) indicate the processing order.
3) Write
5) Write