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 027 + Addition<br />

Expression<br />

Input −[ A + B → C ]− Output<br />

6F3B0253<br />

7. Instructions<br />

Function<br />

When the input is ON, the data of A and the data of B are added, and the result is stored in C.<br />

If the result is greater than 32767, the upper limit value 32767 is stored in C, and the output is<br />

turned ON. If the result is smaller than -32768, the lower limit value -32768 is stored in C, and the<br />

output is turned ON.<br />

Execution condition<br />

Input Operation Output<br />

OFF No execution OFF<br />

ON Execution (normal) OFF<br />

Execution (overflow or underflow occurred) 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 Augend √ √ √ √ √ √ √ √ √ √ √ √<br />

B Addend √ √ √ √ √ √ √ √ √ √ √ √<br />

C Sum √ √ √ √ √ √ √ √ √ √<br />

Example<br />

When R005 is ON, the data of D0100 and the constant data 1000 is added, and the result is<br />

stored in D0110.<br />

If the data of D0100 is 12345, the result 13345 is stored in D0110, and R010 is turned OFF.<br />

D0100 12345<br />

Constant 1000<br />

+ D0110 13345 R010 is OFF<br />

If the data of D0100 is 32700, the result exceeds the limit value, therefore 32767 is stored in<br />

D0110, and R010 is turned ON.<br />

D0100 32700 Overflow<br />

+ D0110 32767 R010 is ON<br />

Constant 1000<br />

Basic Hardware and Function 143<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!