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 074 SR Shift register<br />

Expression<br />

Data input − D SR Q − Output<br />

Shift input − S (n)<br />

Enable input − E A<br />

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

6F3B0253<br />

Function<br />

While the enable input is ON, this instruction shifts the data of the bit table, size n starting with A,<br />

1 bit to the left (upper address direction) when the shift input is ON. The state of the data input is<br />

stored in A. The pushed out bit state is stored in the carry flag (CF = S050).<br />

When the enable input is OFF, all bits in the table and the carry flag are reset to OFF.<br />

Execution condition<br />

Enable<br />

input<br />

Operation Output CF<br />

OFF Resets all bits in the bit table OFF Reset<br />

ON When the shift input is ON Shift execution Last bit Set or reset<br />

When the shift input is OFF No execution state −<br />

Operand<br />

Name Device Register Constant Index<br />

X Y R S T. C. XWYWRWSW T C D I J K<br />

A Leading device √ √ √<br />

n Device size 1 - 64<br />

Example<br />

32 devices starting with R100 (R100 to R11F) is specified as a shift register.<br />

When R010 is OFF, the data of the shift register is reset to 0. (R100 to R11F are reset to OFF)<br />

The carry flag (CF = S050) is also reset to OFF.<br />

While R010 is ON, the data of the shift register is shifted 1 bit to the upper address direction<br />

when X009 is changed from OFF to ON. At the same time, the state of X008 is stored in the<br />

leading bit (R100).<br />

The output (R011) indicates the state of the last bit (R11F).<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!