Rockwell Automation 1403-NSC Smart Communication Card Instruction Sheet User Manual

Page 73

Advertising
background image

D–23

Sample Ladder Listing

Publication 1403-5.1

BT Preparation ( File 5 )

Rung 5:0
| Clear |
| BT |
| File |
| +SBR–––––––––––––––+ +FLL–––––––––––––––+ |
|–+SUBROUTINE +––––––––––––––––––––––––––––––––+–+FILL FILE +–+–|
| +––––––––––––––––––+ | |Source 0| | |
| | |Dest #N15:0| | |
| | |Length 7| | |
| | +––––––––––––––––––+ | |
| | Move | |
| | BT Data | |
| | Location | |
| | Into BT | |
| | File | |
| | +MOV–––––––––––––––+ | |
| +–+MOVE +–+ |
| | |Source N[N9:0]:3| | |
| | | | | |
| | |Dest N15:7| | |
| | | 70| | |
| | +––––––––––––––––––+ | |
| | BT | |
| | Initiate | |
| | Bit | |
| | N15:6 | |
| +––––(L)–––––––––––––––+ |
| | 0 | |
| | BT enable | |
| | bit | |
| | N[N9:0]:0 | |
| +––––(U)–––––––––––––––+ |
| 15 |
Rung 5:1
| +RET–––––––––––––––+ |
|–––––––––––––––––––––––––––––––––––––––––––––––––––––––––+RETURN +–|
| +––––––––––––––––––+ |
Rung 5:2
| |
|–––––––––––––––––––––––––––––––––––––+END+––––––––––––––––––––––––––––––––––––|
| |

Rung 5:0

In preparation for execution of a
block transfer, this rung clears
the 8 words of file N15, moves
the BT data table location into
word N15:7, latches the BT
initiate bit and unlatches the BT
enable bit.

Rung 5:1

Return from subroutine.

Rung 5:2

End of file.

Advertising