Indexing Example For Instruction With Limited Number Of Use - Mitsubishi FX3G Series Programming Manual

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

Advertisement

FX
/FX
/FX
/FX
3G
3U
3GC
3UC
Programming Manual - Basic & Applied Instruction Edition
5.7.3

Indexing example for instruction with limited number of use.

By modifying the target device numbers using index registers V and Z, the target device numbers can be changed
using the program. In this way, an instruction with a limited number of uses per program can be used with multiple
devices.
Example using the TKY instruction (FNC 70)
Two groups of key entries (numeric keypad from 0 to 9)
store the input data to D0 and D2. Although the TKY
instruction (FNC 70) can only be programmed once,
modifying the head device number of the input data,
storage destination and pressed key information, the
information can be input from the two groups of keys
(numeric keypad from 0 to 9). Furthermore, even if V is
changed while this instruction is being executed, this
change is invalid.
The change is invalid until the instruction is no longer
being driven.
Series
5 How to Specify Devices and Constants to Instructions
X010
FNC 12
K0
MOVP
FNC 12
K0
MOVP
FNC 12
K0
MOVP
X012
FNC 12
K16
MOVP
FNC 12
K2
MOVP
FNC 12
K20
MOVP
X013
FNC 70
X000V0
TKY
TKY
Input Data
Instruction
Head
Device
Number
5.7 Indexing
(K0) → (V0)
V0
V1
(K0) → (V1)
(K0) → (V2)
V2
(K16) → (V0)
V0
V1
(K2) → (V1)
(K20) → (V2)
V2
D0V1
M0V2
Data
Head Device
Storage
Number of
Destinati
Pressed Key
on
Information
10
159
1
2
3
4
5
6
7
8
9

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3u seriesFx3gc seriesFx3uc series

Table of Contents