EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 235

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...
6 BASIC INSTRUCTIONS
6.2 Arithmetic Operation Instructions
233
6
Operation error
In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
Program example
The following program adds BCD data 5678 and 1234, stores it at D993, and at the same time outputs it to from Y30 to
Y3F.
The following program subtracts the BCD data 4321 from 7654, stores the result at D10, and at the same time outputs it to
Y30 to Y3F.
Error
code
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4100 The (S) or (D) BCD data is outside the 0 to 9999 range. 
[Ladder Mode]
[List Mode]
[Ladder Mode]
[List Mode]
Stores 5678 in BCD to D993.
Adds 1234 in BCD to the value at D993,
and stores the result to D993.
Outputs the data in D993 to Y30 to Y3F.
Step
Instruction
Device
Stores 7654 in BCD to D10.
Subtracts the value in D10 from 4321 in BCD,
and stores the result to D10.
Outputs the data in D10 to Y30 to Y3F.
Step
Instruction
Device

Table of Contents

Related product manuals