Rockwell Automation 1771-VHSC , D17716.5.74 Very High S User Manual

Page 57

Advertising
background image

Sample Programs

B–4

Addditional Sample Program for PLC-5 Family Processors

EN

BTR

BLOCK XFER READ

RACK:

GROUP:

MODULE:

CONTROL:

0

0

0

N21:0

DN

DATA FILE:

LENGTH:

CONTINUOUS:

N22:101

0

N

ER

EN

BTW

BLOCK XFER WRITE

RACK:

GROUP:

MODULE:

CONTROL:

0

0

0

N21:5

DN

DATA FILE:

LENGTH:

CONTINUOUS:

N22:1

0

N

ER

N21:0

15

N22:101

0

N21:5

15

This block transfer read rung can be used alone or with the block transfer write rung shown below. If used alone, all VHSC counters will operate

in a default mode of outputs disabled, rollover at 999,999 and count mode with pulses counted on channel A, direction sensed at channel B and

the gate is not active.

If the default module operation is acceptable, this rung can be optional. If it is necessary to reconfigure, this rung will automatically send a new

configuration to the module (using the module configured bit N22:101/0 in the BTR file). This will occur on power up and each time the processor

is changed from program to run mode. The optional user bit I:001/07 can also configure the module at any time. Not enabling the BTW can increase

throughput of the read.

VHSC BTR

Enable Bit

VHSC BTR

Control Block

VHSC Module

Configured Bit

VHSC BTW

Enable Bit

VHSC BTW

Control Block

I:001

07

Optional User

Bit

Rung 2:0

Rung 2:1

Rung 2:2

[End of file]

Advertising