Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
8 Applied Instructions (Move and Compare)
8.2 ZCP / Zone Compare
137
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
1
Outline
2
Instruction List
3
Configuration of
Instruction
4
How to Read
Explanation of
Instructions
5
Basic Instruction
6
Step Ladder
Instructions
7
Applied Instructions
(Program Flow)
8
Applied Instructions
(Move and
Compare)
9
Applied Instructions
(Arithmetic and
Logical Operation)
10
Applied Instructions
(Rotation and
Shift Operation)
Function and operation explanation
1. 16-bit operation(ZCP, ZCPP)
The lower comparison value specified by and the upper comparison value specified by are
compared with the contents of the comparison source specified by . According to the result (smaller,
within zone or larger), any of the three points of the devices specified by turns ON.
Comparison is executed algebraically. Example: -10 < 2 < 10
2. 32-bit operation(DZCP, DZCPP)
The lower comparison value specified by and the upper comparison value specified by are
compared with the contents of the comparison source specified by . According to the result (smaller,
within zone or larger), any of the three points of the devices specified by turns ON.
Comparison is executed algebraically. Example: -125400 < 22466 < 1015444
(Lower comparison value specified by ) > (Comparison source specified by )
ZCP
EN
s1
s2
ENO
d
s3
Command input
Lower comparison
value
M100
M100
M101
M102
Comparison
source data
Upper comparison
value
Even if the command input turns OFF and ZCP instruction is not executed,
to +2 latch the status just before the command input turns OFF from ON.
d
s3
(Comparison source specified by ) > (Upper comparison value specified by )
s2
s1
(Lower comparison value specified by ) (Comparison source specified by )
(Upper comparison value specified by )
d
s3
s1 s3
s2
Lower comparison
value
Comparison
source data
Upper comparison
value
Command input
M100
M100
M101
M102
DZCP
EN
s1
s2
ENO
d
s3
Even if the command input turns OFF and DZCP instruction is not executed,
to +2 latch the status just before the command input turns OFF from ON.
d d
(Lower comparison value specified by ) > (Comparison source specified by )
s3
(Comparison source specified by ) > (Upper comparison value specified by )
s2
s1
(Lower comparison value specified by ) (Comparison source specified by )
(Upper comparison value specified by )
s3
s1 s3
s2