Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
17 Applied Instructions (Data Transfer 2)
17.2 ZPOP / Batch POP of Index Register
437
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)
17.2 ZPOP / Batch POP of Index Register
Outline
This instruction returns the contents of index registers V0 to V7, Z0 to Z7 once retracted by the ZPUSH
instruction to the original state.
As for ZPUSH instruction, refer to section 17.1.
1. Format and operation, execution form
2. Set data
3. Applicable devices
Function and operation explanation
1. 16-bit operation (ZPOP/ZPOPP)
As for the function and operation, refer to section 17.1.
1) The contents of index registers Z0 to Z7, V0 to V7 once retracted after the device specified by by
ZPUSH instruction are restored in the original index register. When the contents of the index register are
restored, the number of retraction of the device specified by is processed by -1.
2) Use ZPUSH instruction for temporary retraction of data.
Use ZPUSH, ZPOP instructions in pair.
FX3U(C) FX3G(C) FX3S FX2N(C) FX1N(C) FX1S FXU/FX2C FX0N FX0(S)
Instruction
name
Operation
Execution
form
Expression in each language
Structured ladder/FBD ST
ZPOP 16 bits Continuous ZPOP(EN, d);
ZPOPP 16 bits Pulse ZPOPP(EN, d);
Variable Description Data type
Input
variable
EN Execution condition Bit
Output
variable
ENO Execution state Bit
Head device once retracting the contents of index registers V0 to V7, Z0 to
Z7 [(1+16 × times of retraction) occupied]
ANY16
Operand
type
Bit Devices Word Devices Others
System user Digit designation
System
user
Special
unit
Index
Con
stant
Real
Number
Character
String
Pointer
XYMTCS
D.b
KnX KnY KnM KnS T C D R
U\G
V Z Modifier K H E
"
"
P
zz
ZPOP
EN ENO
d
ZPOPP
EN ENO
d
Command
input
ZPOP
EN ENO
d
Head device once retracting
the contents of index registers