beautypg.com

Yaskawa MP940 User Manual

Page 39

background image

Specifications and Functions

2.3.4 Ladder Instructions and Standard System Functions

2-16

Numeric Conver-
sion Instructions

SIGN INVER-
SION

INV

MW00100 INV

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

1'S COMPLE-
MENT

COM

MW00100 CON

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

ABSOLUTE
VALUE CON-
VERSION

ABS

MW00100 ABS

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

BINARY CON-
VERSION

BIN

MW00100 BIN

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

BCD CONVER-
SION

BCD

MW00100 BCD

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

PARITY CON-
VERSION

PARITY

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

ASCII CON-
VERSION 1

ASCII

The designated character string is converted to ASCII code and substi-
tuted in the register.

MW00200

"ABCDEFG"

ASCII CON-
VERSION 2

BINASC

Converts 16-bit binary data to 4-digit hexadecimal ASCII code.

BINASC

MW00100

ASCII CON-
VERSION 3

ASCBIN

Converts the numeric value indicated by a 4-digit hexadecimal ASCII
code to 16-bit binary data.

ASCBIN

MW00100

Numeric Com-
parison Instruc-
tions

<

<

Leaves ON/OFF in B register for comparison instruction results.

=

=

>

>

RANGE
CHECK

RCHK

Checks whether or not the value in the A register is in range.

MW00100 RCHK -1000, 1000

Type

Name

Symbol

Description

⊥⊥⊥

MW00000 < 10000

MB000010

MB000010

IFON