Ny-Series Instructions Reference Manual (W560 - Omron NY532-5400 Reference Manual

Ny-series
Hide thumbs Also See for NY532-5400:
Table of Contents

Advertisement

The MulOU instruction multiplies In1 to InN.
The product of the two values (40,000) exceeds the valid range of INT data, so the value of P_CY changes to TRUE.
In1
INT#20000
Differences in Specifications between Ladder Diagrams and ST
There are no differences in the specifications of this instruction regardless of whether it is used in a lad-
der diagram or ST. In ladder diagrams, there are no differences in the specifications of the MulOU
instruction and the *OU instruction.
Related System-defined Variables
Name
P_CY
Additional Information
• When you calculate real numbers, use the CheckReal instruction (page 2-237) to see if Out is
positive infinity, negative infinity, or nonnumeric data.
• Use the MUL (*) instruction (page 2-181) if there is no need for an overflow check. It will reduce pro-
cessing time.

NY-series Instructions Reference Manual (W560)

Multiplied.
× In2
INT#2
The product of the two numbers exceeds the valid range of INT data,
so the value of P_CY changes to TRUE.
Meaning
Data type
Carry (CY) Flag
BOOL
2 Instruction Descriptions
20000 × 2 = the value of the lower 16 bits of 40,000
(INT data size = 16 bits)
Out=abc
INT#-25536
P_CY
TRUE
TRUE: Overflow occurred for integer calculations.
FALSE: Overflow did not occur for integer calcula-
tions.
Description
2-187
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents