Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
29 Applied Instructions (Data Table Operation)
29.1 LIMIT / Limit Control
679
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)
29.1 LIMIT / Limit Control
Outline
This instruction provides the upper limit value and lower limit value for an input numeric value, and control the
output value using these limit values.
1. Format and operation, execution form
2. Set data
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
LIMIT 16 bits Continuous LIMIT(EN,s1,s2,s3,d);
LIMITP 16 bits Pulse LIMITP(EN,s1,s2,s3,d);
DLIMIT 32 bits Continuous DLIMIT(EN,s1,s2,s3,d);
DLIMITP 32 bits Pulse DLIMITP(EN,s1,s2,s3,d);
Variable Description
Data type
16-bit
operation
32-bit
operation
Input
variable
EN Execution condition Bit
Lower limit value (minimum output value) ANY16 ANY32
Upper limit value (maximum output value) ANY16 ANY32
Input value controlled by the upper and lower limit values ANY16 ANY32
Output
variable
ENO Execution state Bit
Head device storing the output value controlled by the upper and
lower limit values
ANY16 ANY32
LIMIT
EN ENO
d
s1
s2
s3
LIMITP
EN ENO
d
s1
s2
s3
DLIMIT
EN ENO
d
s1
s2
s3
DLIMITP
EN ENO
d
s1
s2
s3