Conversion instructions – Maple Systems MAPware-7000 User Manual

Page 16

Advertising
background image

MAPware-7000 Ladder Logic Guide

8

1010-1041 rev. 00

Conversion Instructions

These are instructions which convert the data from one type of format (ex. BCD, Hex, ASCII) to
another format.
Instruction Name

Symbol

Description

Execution
Time (μSec)

Hex to ASCII

The hexadecimal data in a series of
consecutive registers (1 to 32) beginning
with Operand A is converted into ASCII
characters and stored in consecutive
registers starting with Operand B.

5.8 μsec to
87.1 μsec

ASCII to Hex

The ASCII data in a series of consecutive
registers (1 to 64) beginning with
Operand A is converted into hexadecimal
characters and stored in consecutive
registers starting with Operand B.

6.5 μsec to
64.9 μsec

Absolute Value

Computes the absolute value in Operand
A and stores in Operand B.

1.3 μsec

2’s Complement

Computes the 2’s complement value in
Operand A and stores in Operand B.

1.1 μsec

Double-word 2’s
Complement

Computes the 2’s complement value in
Operand A (and register A+1) and stores
in Operand B (and register B+1).

1.6 μsec

7 Segment Decode

Converts the lower 4 data bits of
Operand A into 7 segment code, and
stores it in Operand B. The 7 segment
code is normally used for a numeric
display LED.

1.3 μsec

ASCII conversion

Converts alphanumeric characters (up to
16) into ASCII codes, and stores them in
the designated register table, starting
with Operand B.

1.7 μsec to 5.8
μsec

Binary conversion

Converts 4 digits of BCD data in Operand
A into binary and stores in Operand B.

1.7 μsec

BCD conversion

Converts the binary data in Operand A
into BCD data and stores in Operand B.

11.4 μsec

Integer to Float

NA

Converts integer (16 or 32 bit) value in
Operand A into a floating point value (32
bit) and stores in Operand B.

TBD

Float to Integer

NA

Converts a floating point value (32 bit) in
Operand A into an integer (16 or 32 bit)

TBD

Advertising