Maple Systems MAPware-7000 User Manual

Page 61

Advertising
background image

53

MAPware-7000 Ladder Logic Guide

1010-1041 rev. 00

Instruction 29-

Unsigned Divis

ion (continued)

Expression:

Space Requirement: 1 line x 6 column Location Requirement: Middle, Right rail

Function:

When the input is ON, the unsigned data of A is divided by the unsigned data of B, and the
quotient is stored in C and the remainder in C+1. The data range of A and B is 0 to 65535
(unsigned 16-bit data).

Execution Condition:

Input

Operation

Output

ERF

OFF

No execution

OFF

---

ON

Normal Execution (B ≠ 0)

ON

---

No execution ( B = 0)

OFF

Set

Operand:

Coil or Bit

Register

Constant

Index

Name

X

Y B

S

T.

C.

M

X
W

Y
W

B
W

S
W

T C

D

I

J

K

M
W

A

Dividend

√ √

B

Divisor

√ √

C

Quotient

√ √

Example:

When B010 is ON, the data of D0030 is divided by the constant data 300, and the quotient is
stored in D0050 and the remainder is stored in D0051.

If the data of D0030 is 54321, the quotient 181 is stored in D0050 and the remainder 21 is
stored in D0051.

Advertising