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 186 ASC ASCII conversion<br />

Expression<br />

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

236 <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 alphanumeric characters into the ASCII codes,<br />

and stores them in the register table starting with B. (16 characters maximum)<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 Characters √<br />

B Start of<br />

destination<br />

√ √ √ √ √ √<br />

Example<br />

When R030 is ON, the characters ‘ABCDEFGHIJKLMN’ is converted into the ASCII codes, and<br />

the result is stored in 8 registers starting with lower 8 bits (byte) of D0200 (D0200 to D0207).<br />

High Low<br />

F 8 7 0<br />

D0200 H42 (B) H41 (A)<br />

D0201 H44 (D) H43 (C)<br />

D0202 H46 (F) H45 (E)<br />

D0203 H48 (H) H47 (G)<br />

D0204 H4A (J) H49 (I)<br />

D0205 H4C (L) H4B (K)<br />

D0206 H4E (N) H4D (M)<br />

D0207<br />

Previous data is remained<br />

Note<br />

• Only the number of bytes converted are stored. The rest are not changed. In the above<br />

example, 14 characters are converted into 14 bytes of ASCII code, and these ASCII codes are<br />

stored in 7 registers (D0200 to D0206). The data of D0207 remains unchanged.<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!