
3–4
Programming Your Pulse Counter Module
Publication 1794-6.5.16 – September 1998
Figure 3.1
SLC Programming for the 1794-IP4 Pulse Counter Module
PowerUp Bit
0000
Program Action
S2:1
15
BTR_CONTROL
COP
COPY FILE
SOURCE
DEST
#B3:100
#M0:1.100
LENGTH
3
BTW_CONTROL
COP
COPY FILE
SOURCE
DEST
#B3:110
#M0:1.200
LENGTH
3
COP
COPY FILE
SOURCE
DEST
#M1:1.100
#B3:0
LENGTH
4
0001
BTR PENDING
B3:5
0
This rung configures the block transfer operation
type, length, and RIO address at power-up. Bit
B3:100/7 must be set to 1 to indicate a BTR and
bit B3:110/7 must be 0 to indicate a BTW.
U
BTR DONE BIT
B3:0
13
CHECK BTR STATUS
B3:5
1
BTR ERROR BIT
B3:0
12
0002
B3:5
1
COP
COPY FILE
SOURCE
DEST
#M1:1.200
#B3:10
LENGTH
4
0003
BTW PENDING
B3:15
0
CHECK BTW STATUS
B3:15
1
BTR status is copied to the B3:0 area when a BTR
is in progress.
Unlatch the bit that continues to check the BTR status.
BTW status is copied to the B3:100 area when a
BTW is in progress.
To next page.
0004
U
BTW DONE BIT
B3:10
13
BTW ERROR BIT
B3:10
12
B3:15
1
Unlatch the bit that continues to check the BTW status.
CHECK BTW STATUS
CHECK BTR STATUS
The 1794-IP4 module is located in remote I/O rack 1, group 0, slot 0. The 1747-SN scanner module is located in slot 1 of the SLC chassis. This program enables
1 BTW to configure the 1794-IP4 module at power-up. Thereafter, BTrs will be performed continuously to obtain data from the 1794-IP4 module.
TRIGGER FOR BTW
N7:20
0