Instruction 72- ascii conversion – Maple Systems MAPware-7000 User Manual

Page 122

Advertising
background image

MAPware-7000 Ladder Logic Guide

114

1010-1041 rev. 00

Instruction 72- ASCII Conversion

Expression:

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

Function:

When the input is ON, this instruction converts the alphanumeric characters into the ASCII
codes, and stores them in the register table starting with B. (16 characters maximum).

Execution Condition:

Input

Operation

Output

OFF

No execution

OFF

ON

Execution

ON

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

Characters

B

Start of

Destination

√ √

Example:

When B030 is ON, the characters ‘ABCDEFGHIJKLMN’ is converted into the ASCII codes, and the
result is stored in 8 registers starting with lower 8 bits (byte) of D0200 (D0200 to D0207).

The Previous Data remains

Note:

Only the number of bytes converted are stored. The rest are not changed. In the above example,
14 characters are converted into 14 bytes of ASCII code, and these ASCII codes are stored in 7
registers (D0200 to D0206). The data of D0207 remains unchanged.

Advertising