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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

7. Instructions<br />

FUN 190 BCD BCD conversion<br />

Expression<br />

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

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

6F3B0253<br />

Function<br />

When the input is ON, this instruction converts the binary data of A into BCD, and stores in B. If the<br />

data of A is not in the range of 0 to 9999, the conversion is not executed and the instruction error<br />

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 />

Binary 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<br />

√ √ √ √ √ √ √ √ √ √ 0 - 9999<br />

(Binary)<br />

B Destination<br />

(BCD)<br />

Example<br />

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

When R019 is ON, the data of D0211 is converted into 4-digit BCD, and the result is stored in<br />

RW22.<br />

For example, if D0211 is 5432, the BCD data H5432 is stored in RW22.<br />

D0211 Binary to BCD RW22<br />

5432 H5432<br />

Note<br />

• If the data of A is smaller than 0 or greater than 9999, the conversion is not executed and the<br />

instruction error flag (ERF = S051) is set to ON.<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!