Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
29 Applied Instructions (Data Table Operation)
29.1 LIMIT / Limit Control
680
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
3. Applicable devices
Function and operation explanation
1. 16-bit operation (LIMIT/LIMITP)
Depending on how the input value (16-bit binary value) of the device specified by compares to the upper
and lower limit range between the devices specified by and , the output value stored in the device
specified by is controlled.
The output value is controlled as shown below.
Operand
type
Bit Devices Word Devices Others
System user Digit specification
System
user
Special
unit
Index
Cons
tant
Real
Number
Character
String
Pointer
XYMTCS
D.b
KnX KnY KnM KnS T C D R
U\G
VZModifierKH E
""
P
zzzzzzzz z z zz
zzzzzzzz z z zz
zzzzzzzz z z
zzzzzzz z z
Specified value
Input
value ( )
Output value ( )
Specified
value
Input
value
Output value
d
s1
s2
s3
LIMIT
EN ENO
d
s1
s2
s3
Input value controlled by the
upper and lower limit values
Command
input
Lower limit value
Upper limit value
Head device storing the output value controlled
by the upper and lower limit values
When controlling the output value using only the upper limit value, set "-32768" to the lower
limit value of the device specified by .
s1
4)
When controlling the output value using only the lower limit value, set "32767" to the upper
limit value of the device specified by .
s2
5)
ds1 s1
1)
In the case of " > " ................................
lower limit
value
lower limit
value
input
value
output
value
s3
s2 s2 d
2)
In the case of " < " ................................
upper limit
value
upper limit
value
input
value
output
value
s3
s1
lower limit
value
s2
upper limit
value
d
3)
In the case of " " ...
input
value
input
value
output
value
s3 s3