Mitsubishi Electric MELSEC-Q Structured Programming Manual page 138

Hide thumbs Also See for MELSEC-Q:
Table of Contents

Advertisement

FXCPU Structured Programming Manual
[Device & Common]
Display example of the timer current value
A sequence to display the current value of timers T0 to T9 can be programmed using index registers.
M8000
RUN
monitor
In the case of constants
The right figure shows an example of the indexing
operation in which the transfer source in the MOV
instruction is indexed with the index register V6.
Transfer K0 or K20 to the index register V6 in
advance.
When X005 is set to ON and if V6 is "0", K6 (=
K(6+0))is transferred to D10.
When X005 is set to ON and if V6 is "20", K26 (=
K(6+20))is transferred to D10.
136
BIN
EN
ENO
s
d
K1X000
Z0
BCD
EN
ENO
s
d
T0Z0
K4Y000
3 How to Specify Devices and Constants in Instructions
(X003 to X000)BCD
(Z0)BIN
(T0Z0)BIN
(Y017 to Y000)BCD
"T0Z0 = T0 to T9" in accordance
with "Z0 = 0 to 9"
X004
X004
K20
X005
K6V6
V6=0
: K6(K6+0)
V6=20 : K26(K6+20)
Digital switch inputs
X003 to X000 for
5
setting the timer
number
PLC
Seven-segment display
unit outputs X017 to
Y000 for displaying
the timer current value
MOVP
EN
ENO
K0
s
d
K0
V6
MOVP
EN
ENO
K20
s
d
V6
MOVP
EN
ENO
s
d
D10
D10
D10
3.7 Indexing
V6
V6

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec-lMelsec-fFx3sFx3gFx3gcFx3u ... Show all

Table of Contents