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.

7. Instructions<br />

FUN 028 − Subtraction<br />

Expression<br />

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

144 <strong>T1</strong>-<strong>16S</strong> User’s <strong>Manual</strong><br />

6F3B0253<br />

Function<br />

When the input is ON, the data of B is subtracted from the data of A, 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 Minuend √ √ √ √ √ √ √ √ √ √ √ √<br />

B Subtrahend √ √ √ √ √ √ √ √ √ √ √ √<br />

C Difference √ √ √ √ √ √ √ √ √ √<br />

Example<br />

When R005 is ON, the constant data 2500 is subtracted from the data of D0200, and the result<br />

is stored in RW50.<br />

If the data of D0200 is 15000, the result 12500 is stored in RW50, and R010 is turned OFF.<br />

D0200 15000<br />

Constant 2500<br />

− RW50 12500 R010 is OFF<br />

If the data of D0200 is -31000, the result is smaller than the limit value, therefore -32768 is<br />

stored in RW50, and R010 is turned ON.<br />

D0100 -31000 Underflow<br />

− RW50 -32768 R010 is ON<br />

Constant 2500<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!