beautypg.com

Directional non-continuous block transfer example – Rockwell Automation 1747-SN Remote I/O Scanner User Manual

Page 140

background image

Publication 1747-UM013B-EN-P - January 2005

D-12 Block Transfer Examples for Earlier Processors

Directional Non-Continuous Block Transfer Example

The following rungs demonstrate a directional non-continuous block
transfer. The block transfer executes once for every false-to-true
transition of the input. Please note that the input bit I:2.0/0 was
chosen randomly for this example and can be any address in your
program used to initiate a BTR. Also note that this same method may
be used for a BTW.

Rung 2:5
BLOCK TRANSFER READS WILL REPEAT AS FAST AS POSSIBLE AS LONG AS THESE RUNGS
ARE SCANNED.
| | | |
| | | |
| VIRTUAL |VIRTUAL |VIRTUAL |
| BTR ENABLE|BTR DONE |BT ERROR BTR |
| BIT |BIT |BIT PENDING |
| B3 B3 B3 B3 |
|----]/[--------]/[--------]/[----------------------------------+----(L)-----+-|
| 1615 13 12 | 80 | |
| | | |
| | | |
| | VIRTUAL | |
| | BTR ENABLE | |
| | BIT | |
| | B3 | |
| +----(L)-----+ |
| 1615 |
Rung 2:6
MOVE THE VIRTUAL CONTROL WORD TO THE M0 FILE FOR THE SN MODULE WHILE A BTR IS
IN PROGRESS AND CONTINUE DOING SO UNTIL THE SCANNER TURNS THE DONE/ERROR BIT
OFF.
| |
| |
| VIRTUAL |
| BTR ENABLE |
| BIT |
| B3 +MOV---------------+ |
|-+----] [-----+------------------------------------------+MOVE +-|
| | 1615 | |Source B3:100| |
| | | | 0000000000000000| |
| | | |Dest M0:1.100| |
| | | | *| |
| | | +------------------+ |
| | | |
| | | |
| | VIRTUAL | |

|

| BTR DONE | |

| | BIT | |
| | B3 | |
| +----] [-----+ |
| | 13 | |
| | | |
| | | |
| | VIRTUAL | |
| | BT ERROR | |
| | BIT | |
| | B3 | |
| +----] [-----+ |
| 12 |
Rung 2:7
| |
|-------------------------------------+END+------------------------------------|
| |