Arithmetic Error - Mitsubishi Electric M800VW Series Programming Manual

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
6 Explanation of Instructions and Functions

6.5 Arithmetic Error

6.5 Arithmetic Error
An arithmetic error occurs in the following cases during executing a basic instruction or function instruction.
 In the case where an error described in each instruction's explanation page has occurred:
 Device range check
The range check for the devices to be used in basic instruction and function instruction is as shown below.
 If instruction handles a fixed length of device (MOV, DMOV, etc.), device range check will not be performed.
In case that the relevant device range has exceeded, the data is written into another device.
For example, in a case indicated below, where D device is with the maximum 2048 points, error will not occur even if
D2047 has been exceeded.
Device range check will not be performed when index Modification is carried out.
Also, device range check will not be performed at the bit device digit designation.
For example, in a case indicated below, error will not occur even if X1FFF has been exceeded.
MOV
 If instruction handles a variable length of device (BMOV, FMOV, etc. that would specify the number of transfers), device
range check will not be performed. In case that the relevant device range has exceeded, the data is written into another
device.
For example, in a case indicated below, where D device is with the maximum 2048 points, error will not occur even if
D2047 has been exceeded.
BMOV K100
 Device data check
Device's data check used for the basic instruction and function instruction is as shown below.
BIN data
 Error does not occur even if the operation result is overflowed or underflowed.
At this time, carry flag does not turn ON either.
BCD data
 Checking as to whether each digit is BCD value (0/ to 9) is performed.
If the digit is other than 0 to 9 (A to F), an arithmetic error will occur.
 Error does not occur even if the operation result is overflowed or underflowed.
At this time, carry flag does not turn ON either.
DMOV K100
D2047
D2047 and D2048 are supposed to be the targets; 
however, since D2048 does not exist, the contents 
of the other device will be destroyed.
K100
K4X1FFF
X1FFF to X200E are supposed to be the targets; 
however, since X2000 and above does not exist, 
the contents of the other device will be 
destroyed.
D2047 K2
D2047 and D2048 are supposed to be the 
targets; however, since D2048 does not exist, 
the contents of the other device will be 
destroyed.
111
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents