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

Page 71

Advertising
background image

D–21

Sample Ladder Listing

Publication 1403-5.1

Rung 4:3
| Virtual BT Error |
| BT Err Code |
| Bit |
| N15:0 +MOV–––––––––––––––+ |
|––––] [––––––––––––––––––––––––––––––––––––––––––––––+–+MOVE +–+–|
| 12 | |Source N15:3| | |
| | | 0| | |
| | |Dest N15:4| | |
| | | 0| | |
| | +––––––––––––––––––+ | |
| | Service | |
| | The BT | |
| | Status/ | |
| | BT | |
| | Pending | |
| | N15:5 | |
| +––––(U)–––––––––––––––+ |
| | 0 | |
| | BT enable | |
| | bit | |
| | N[N9:0]:0 | |
| +––––(U)–––––––––––––––+ |
| | 15 | |
| | Check BT | |
| | Status | |
| | Until DN | |
| | or ER Bit | |
| | Is Off | |
| | N15:5 | |
| +––––(L)–––––––––––––––+ |
| | 1 | |
| |
| |
| | BT Error | |
| | Bit | |
| | N[N9:0]:0 | |
| +––––(L)–––––––––––––––+ |
| 12 |
Rung 4:4
| BT |BT enable |Virtual |Virtual BT Done |
| Initiate |bit |BT Done |BT Err Bit |
| Bit | |Bit |Bit |
| N15:6 N[N9:0]:0 N15:0 N15:0 N[N9:0]:0 |
|––––] [––––––––]/[––––––––]/[––––––––]/[–––––––––––––+––––(U)–––––––––––––––+–|
| 0 15 13 12 | 13 | |
| | BT Error | |
| | Bit | |
| | N[N9:0]:0 | |
| +––––(U)–––––––––––––––+ |
| | 12 | |
| | +COP–––––––––––––––+ | |
| +–+COPY FILE +–+ |
| | |Source #N[N15:7]:1| | |
| | |Dest #M0:2.210| | |
| | |Length 63| | |
| | +––––––––––––––––––+ | |
| | Service | |
| | The BT | |
| | Status/ | |
| | BT | |
| | Pending | |
| | N15:5 | |
| +––––(L)–––––––––––––––+ |
| | 0 | |
| | BT enable | |
| | bit | |
| | N[N9:0]:0 | |
| +––––(L)–––––––––––––––+ |
| | 15 | |
| | BT | |
| | Initiate | |
| | Bit | |
| | N15:6 | |
| +––––(U)–––––––––––––––+ |
| 0 |

Rung 4:3

If a BTW errors, unlatch the
enable bit, the BTW pending bit
and buffer the BTW error code.
Also, latch the bit that continues
checking the BTW status until
the SN module turns off the
error bit and latch the control
word error bit.

Rung 4:4

When a new BTW is initiated,
copy the data to the M0 file data
area and latch the virtual BTW
enable bit provided that a BTW
is not in progress. As shown,
only 63 words of the BTW data
file are copied to the M file
buffer, beginning at word 1, in
order to match the
Powermonitor II data table
layout. Also, latch the BTW
pending bit, so the BT status
file will be read by the ladder
program. And because this
rung marks the beginning of the
BTW, unlatch the control word
done and error bits and the BT
initiate bit.

Advertising