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 183 DNEG Double-word 2’s complement<br />

Expression<br />

Input −[ A+1⋅A DNEG B+1⋅B ]− Output<br />

6F3B0253<br />

7. Instructions<br />

Function<br />

When the input is ON, this instruction finds the 2’s complement value of double-word data A+1⋅A,<br />

and stores it in B+1⋅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 X007 is ON, the 2’s complement value (sign inverted data) of double-word register<br />

RW41⋅RW40 is stored in double-word register D0151⋅D0150.<br />

For example, if RW41⋅RW40 is -1234567890, the 2’s complement value 1234567890 is stored<br />

in D0151⋅D0150.<br />

Note<br />

• The data range of A+1⋅A is -2147483648 to 2147483647. If the data of A+1⋅A is -2147483648,<br />

the same data -2147483648 is stored in B+1⋅B.<br />

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