EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 666

Mitsubishi Electric MELSEC-Q/L
1084 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
664
7 APPLICATION INSTRUCTIONS
7.13 Data Control Instructions
Program example
The following program conducts limit controls from 500 to 5000 on the data set as BCD values from X20 to X2F, and stores
the result at D1 when X0 is turned ON.
The following program conducts limit value controls from 10000 to 1000000 on the data set as BCD values from X20 to X3F
when X0 is turned ON.
[Ladder Mode] [List Mode]
[Operation]
D1 becomes 500 if D0 < 500. (example: D0 = 400 D1 = 500)
D1 becomes the value of D0 when 500 D0 5000. (example: D0 = 1300 D1 = 1300)
D1 becomes 5000 when 5000 < D0. (example: D0 = 9600 D1 = 5000)
[Ladder Mode] [List Mode]
[Operation]
(D11, D10) become 10000 if (D1, D0) are less than 10000. (example: (D1, D0) = 400 (D11, D10) = 10000)
(D11, D10) become the value of (D1, D0) if 10000 (D1, D0) 1000000. (example: (D1, D0) = 345678 (D11, D10) = 345678)
(D11, D10) become 1000000 if 1000000 < (D1, D0). (example: (D1, D0) = 9876543 (D11, D10) = 1000000)
Step Instruction Device
Step Instruction Device

Table of Contents

Related product manuals