Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
29 Applied Instructions (Data Table Operation)
29.1 LIMIT / Limit Control
681
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
21
Applied Instructions
(Real Time
Clock Control)
22
Applied Instructions
(External Device)
23
Applied Instructions
(Extension
Function)
24
Applied Instructions
(Others)
25
Applied Instructions
(Block Data
Operation)
26
Applied Instructions
(Character
String Control)
27
Applied Instructions
(Data Operation 3)
28
Applied Instructions
(Data Comparison)
29
Applied Instructions
(Data Table
Operation)
30
Applied Instructions
(External Device
Communication)
2. 32-bit operation (DLIMIT/DLIMITP)
Depending on how the input value (32-bit binary value) of the device specified by compares to the range
between the upper and lower limits specified by and , the output value to be stored in the device
specified by is controlled.
Error
An operation error is caused when the instruction is executed in the setting status shown below. The error flag
M8067 turns ON, and the error code (K6706) is stored in D8067.
"(Contents of the device specified by ) > (contents of the device specified by )
In the case of " > ".....................................
In the case of " < ".....................................
In the case of " "......
1)
output value
d
lower limit value
s1
upper limit value
s2
input value
s3
lower limit value
s1
input value
s3
input value
s3
lower limit value
s1
upper limit value
s2
input value
s3
upper limit value
s2
output value
d
output value
d
2)
3)
Specified value
Input value
Output value ( )
Specified value
()
Input
value
Output value
d
s1
s2
s3
DLIMIT
EN ENO
d
s1
s2
s3
Command
input
Lower limit value
Upper limit value
Input value controlled by the upper and lower limit values
Head device storing the output value controlled
by the upper and lower limit values
4)
s2
When controlling the output value using only the lower limit value,
set "2,147,483,647" to the upper limit value specified in .
5)
When controlling the output value using only the upper limit value,
set "-2,147,483,648" to the lower limit value specified in .
s1