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 121 DEC Decode<br />

Expression<br />

Input −[ A DEC (n) B ]− Output<br />

6F3B0253<br />

7. Instructions<br />

Function<br />

When the input is ON, this instruction sets the bit position which is designated by lower n bits of A<br />

to ON in the bit table, size 2 n bits starting with 0 bit (LSB) of B, and resets all other bits to OFF.<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 Decode source √ √ √ √ √ √ √ √ √ √<br />

n Table size 1 - 8<br />

B Start of table √ √ √ √ √ √<br />

Example<br />

2 5 (=32) bits starting with 0 bit of RW05 (R050 to R06F) are defined as the bit table.<br />

When R011 is ON, the bit position designated by lower 5 bits of D0011 in the bit table is set to<br />

ON, and all other bits in the table are reset to OFF.<br />

The following figure shows an operation example.<br />

F E D C B A 9 8 7 6 5 4 3 2 1 0<br />

D0011 1 1 0 0 0<br />

Ignored H18 (=24)<br />

Sets ON<br />

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 3 2 1 0<br />

0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0<br />

RW06 RW05<br />

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