beautypg.com

Rockwell Automation 1772-LP3 PLC - 2/30 Programmable Controller Programming and Operations Manual User Manual

Page 256

background image

Bit Shifts

Chapter 14

14Ć4

Figure 14.2

BIT SHIFT LEFT Format

BIT SHIFT SHIFT

COUNTER ADDR: 030
NUMBER OF BITS: 001
FILE: 110- 110
INPUT: 010/00
OUTPUT: 010/00

030

(EN)

17

Numbers shown are default values. Bold numbers must be replaced by userĆentered values. The number of default address digits

initially displayed Ċ 3, 4, or 5 Ċ will depend on the size of the data table. Initially displayed default values are governed by the I/O rack

configuration.

COUNTER ADDRESS : Address of the instruction in the accumulated value area of the data table.
NUMBER OF BITS : Number of bits in the file.
FILE : Starting address of file.
INPUT : Address of input bit.
OUTPUT : Address of output bit.

030

(DN)

15

Figure 14.3 shows the format of Figure 14.2 after the following conditions
have been entered.

COUNTER ADDR – 200
NUMBER OF BITS – 128
FILE – The bit register starts and ends at word 400

8

and 407

8

respectively.
INPUT – The input bit is bit 17 of word 130

8

.

OUTPUT – The output bit is bit 00 of word 420

8

.

The procedure for using the data monitor mode for data entry on the
monitor is presented in Chapter 12. Note that bit 00 is the right side on
the file display and bit 17 is on the left.