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 188 BIN Binary conversion<br />

Expression<br />

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

6F3B0253<br />

7. Instructions<br />

Function<br />

When the input is ON, this instruction converts the 4 digits of BCD data of A into binary, and stores<br />

in B. If any digit of A contains non-BCD code (other than H0 through H9), the conversion is not<br />

executed and the instruction error flag (ERF = S051) is set to ON.<br />

Execution condition<br />

Input Operation Output ERF<br />

OFF No execution OFF −<br />

ON Normal execution ON −<br />

BCD data error OFF Set<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 (BCD) √ √ √ √ √ √ √ √ √ √ H0000 -<br />

B Destination<br />

(Binary)<br />

Example<br />

√ √ √ √ √ √ √ √ √<br />

H9999<br />

When R017 is ON, the BCD data of RW28 is converted into binary data, and the result is<br />

stored in D0127.<br />

For example, if RW28 is H1234, the binary data 1234 is stored in D0127.<br />

RW28 BCD to Binary D0127<br />

H1234 1234<br />

Note<br />

• If any digit of operand A contains non-BCD data, e.g. H13A6, the conversion is not executed<br />

and the instruction error flag (ERF = S051) is set to ON.<br />

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