7.13 Data Control Instructions
7.13.1 Upper and lower limit controls of 16-/32-bit BIN data
7-303
7
APPLI
C
A
T
IO
N
INSTRUCTIONS
LI
MIT
, DLI
M
T
LIMIT, DLIMT
(2) In the following program, the limit control from 10000 to 1000000 is performed on the data
set in BCD values from X20 to X3F when X0 turns ON, and the result is stored to Var_D10.
[Structured ladder]
[ST]
IF X0 THEN
DBINP(TRUE,K8X20,Var_D0);
DLIMIT(TRUE,10000,1000000,Var_D0,Var_D10);
END_IF;
[Operation]
• Var_D10 becomes 10000 if Var_D0 are less than 10000.
Var_D0 400 Var_D10 10000
• Var_D10 becomes the value of Var_D0 if 10000 Var_D0 1000000.
Var_D0 345678 Var_D10 345678
• Var_D10 becomes 1000000 if 1000000 Var_D0.
Var_D0 9876543 Var_D10 1000000
Example
Example
Example
Содержание MELSEC Q Series
Страница 1: ...Structured Programming Manual Mitsubishi Programmable Controller QCPU Common Instructions ...
Страница 2: ......
Страница 14: ...A 12 MEMO ...
Страница 340: ...6 178 MEMO MTR ...
Страница 708: ...7 368 MEMO ...
Страница 776: ...8 68 MEMO ...
Страница 796: ...9 20 MEMO ...
Страница 804: ...App 8 MEMO ...
Страница 812: ...Index 8 MEMO ...
Страница 815: ......