beautypg.com

Yaskawa MP920 User's Manual Design User Manual

Page 60

background image

2 MP920 Specifications and System Configuration

2.1.3 Function Lists

2-34

Numeric
Operation
Instructions
(cont’d)

EXTENDED
SUBTRACTION

- -

Closed numeric subtraction (without operation error)
0

→ 32768 → -32767 → 0

INTEGER ENTRY

Starts an integer operation.

REAL NUMBER
ENTRY

Starts a real number operation.

STORE

Stores the operation result in the designated register.

MULTIPLICATION

×

For integer and long integers, use

× and ÷ in combination.

DIVISION

÷

INCREMENT

INC

Adds 1 to the designated register.
INC MW00100

DECREMENT

DEC

Subtracts 1 from the designated register.
DEC MW00100

MOD

MOD

Gets the remainder of the division result.

REM

REM

Gets the remainder of the division result.
MF00200 REM 1.5

⇒ MF00202

ADD TIME

TMADD

Addition of hours, minutes, and seconds
TMADD MW00000, MW00100

SUBTRACT TIME

TMSUB

Subtraction of hours, minutes, and seconds
TMSUB MW00000, MW00100

SPEND TIME

SPEND

Calculates the elapsed time between two times.
SPEND MW00000, MW00100

Numeric
Conversion
Instructions

SIGN INVERSION

INV

MW00100 INV

If MW00100 = 99, the operation result = -99.

1’S COMPLEMENT COM

MW00100 COM

If MW00100 = FFFFH, the operation result = 0000H.

ABSOLUTE VALUE
CONVERSION

ABS

MW00100 ABS

If MW00100 = -99, the operation result = 99.

BINARY
CONVERSION

BIN

MW00100 BIN

If MW00100 = 1234H (hexadecimal), the operation result = 1234
(decimal).

BCD CONVERSION BCD

MW00100 BCD

If MW00100 = 1234 (decimal), the operation result = 1234H (hexa-
decimal).

PARITY
CONVERSION

PARITY

Calculates the number of binary bits that are ON.
If MW00100 = F0F0H, the operation result = 8.

ASCII
CONVERSION 1

ASCII

The designated character string is converted to ASCII code and sub-
stituted in the register.
MW00200 “ABCDEFG”

Table 2.23 Ladder Instructions (cont’d)

Type

Name

Symbol

Description

MW00280 + 00100

MW00220

MW00280 + 00100

MW00220

MW00100

× 00100 ÷ 00121

MOD

MW00101