xLadder user manual-V2.0.0.6

6.8.3 MUL & DIV

Input/output Operand

Data type

IN1, IN2

VW, IW, QW, MW, SW, SMW, T, C, LW, AC, AIW,constant, *VD, *LD, *AC Integer

OUT

VD, ID, QD, MD, SMD, SD, LD, AC, *VD, *LD, *AC

Double Integer

MUL:IN1 X IN2= OUT Input 16 bits integers and output

32 bits integer.

DIV : IN1/IN2= OUT Input 16 bits integers and the

output result is 32 bits.The result includes a 16 bits

remainder (high) and a 16 bits quotient (low).

IN1 * IN2 = OUT

IN1 / IN2 = OUT

SM1.1 is used for indicating overflow errors and illegal values.

error conditions:

Indirect address

0006

overflow

SM1.1

The divisor is 0

SM1.3

Special memory bit:

Zero result

SM1.0

overflow

SM1.1

Negative result

SM1.2

The divisor is 0

SM1.3

134

Made with FlippingBook - Online magazine maker