Mitsubishi Electric MELSEC-Q/L Programming Manual page 666

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

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.
[Ladder 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)
• 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]
[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)
7 APPLICATION INSTRUCTIONS
664
7.13 Data Control Instructions
[List Mode]
Step
Instruction
[List Mode]
Step
Instruction
Device
Device

Advertisement

Table of Contents
loading

Table of Contents