GE 90-30/20/Micro Universal Remote User Manual


 
GFK-0467K Chapter 4 Series 90-30/20/Micro Instructions Set 4-79
4
Example 1:
In the following example, the shift register operates on register memory locations %R0001 through
%R0100. When the reset reference CLEAR is active, the shift register words are set to zero.
When the NXT_CYC reference is active and CLEAR is not active, the word from output status
table location %Q0033 is shifted into the shift register at %R0001. The word shifted out of the shift
register from %R0100 is stored in output %M0005.
| _____
|NXT_CYC | |
|——| |———|SHFR_|—
| | |
| | WORD|
| CLEAR | |
|——| |———|R Q|—%M0005
| | LEN |
| |00100|
| | |
| | |
| | |
| %Q0033—|IN |
| | |
| | |
| %R0001—|ST |
| |_____|
|
Example 2:
In this example, the shift register operates on memory locations %M0001 through %M0100. When
the reset reference CLEAR is active, the SHFR function fills %M0001 through %M0100 with
zeros.
When NXT_CYC is active and CLEAR is not, the SHFR function shifts the data in %M0001 to
%M0100 down by one bit. The bit in %Q0033 is shifted into %M0001 while the bit shifted out of
%M0100 is written to %M0200.
| _____
|NXT_CYC | |
|——| |———|SHFR_|—
| | |
| | BIT |
| CLEAR | |
|——| |———|R Q|—%M0200
| | LEN |
| |00100|
| | |
| | |
| | |
| %Q0033—|IN |
| | |
| | |
| %M0001—|ST |
| |_____|
|