03.01.2013 Views

Toshiba PROSEC T1-16S PLC User's Manual - CTi Automation

Toshiba PROSEC T1-16S PLC User's Manual - CTi Automation

Toshiba PROSEC T1-16S PLC User's Manual - CTi Automation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

FUN 180 ABS Absolute value<br />

Expression<br />

Input −[ A ABS B ]− Output<br />

6F3B0253<br />

7. Instructions<br />

Function<br />

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

Execution condition<br />

Input Operation Output<br />

OFF No execution OFF<br />

ON Execution ON<br />

Operand<br />

Name Device Register Constant Index<br />

X Y R S T. C. XWYWRWSW T C D I J K<br />

A Source √ √ √ √ √ √ √ √ √ √ √<br />

B Destination √ √ √ √ √ √ √ √ √<br />

Example<br />

When X006 is ON, the absolute value of RW38 is stored in D0121.<br />

For example, if RW38 is -12000, the absolute value 12000 is stored in D0121.<br />

-32767<br />

12000<br />

D0121<br />

32767<br />

-12000<br />

0 32767<br />

RW38<br />

Note<br />

• The data range of A is -32768 to 32767. If the data of A is -32768, 32767 is stored in B.<br />

Basic Hardware and Function 231<br />

<strong>CTi</strong> <strong>Automation</strong> - Phone: 800.894.0412 - Fax: 208.368.0415 - Web: www.ctiautomation.net - Email: info@ctiautomation.net

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!