Instruction 68- absolute value – Maple Systems MAPware-7000 User Manual

Page 117

Advertising
background image

109

MAPware-7000 Ladder Logic Guide

1010-1041 rev. 00

Instruction 68- Absolute Value

Expression:

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

Function:

When the input is ON, this instruction finds the absolute value of operand A, and stores it in B.

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

Source

√ √

B

Destination

√ √

Example:

When X006 is ON, the absolute value of BW38 is stored in D0121.

For example, if BW38 is -12000, the absolute value 12000 is stored in D0121

.

Note:

-

The data range of A is -32768 to 32767. If the data of A is -32768, then 32767 is stored in
B.

Advertising