
Direct Data Interchange with the IP 240 IP 240
Write initial count
To modify the initial count value, you must enter the new value in the transfer buffer and write
job number 11
H
or 21
H
in the job request register.
Table 11-10. Contents of the Transfer Buffer on Writing the Initial Count, Counting Mode
2 00
10
3
10
2
10
1
10
0
Bit
76543210
Description
0
1
Offset
transfer
buffer
Initial count
3 0000000SG
Sign of the initial count
SG=1 The initial count value is negative
SG=0 The initial count value is positive
4 to 14 0 . . . 0 0 . . . 0
Write control bits
To reinitialize control bits, you must enter the new control bits in the transfer buffer and write job
number 1A
H
or 2A
H
in the job request register.
Table 11-11. Contents of the Transfer Buffer on Writing Control Bits, Counting Mode
0 . . . 0 0 . . . 02 to 14
Bit
76543210
Description
0
1
Offset
transfer
buffer
Control bits
0 0 0 STRT 0 0 0 0
AMSK 00000DA1F DA1S
Description of the control bits
AMSK =1 All interrupts for the channel are masked, i.e. lost
=0 Enable interrupts
DA1F DA1S
0 0 Digital output D1 is reset
0 1 Digital output D1 is set and reset on a mode-dependent basis
1 1 Digital output D1 is set irrespective of the actual value
STRT =1 Enable counting
=0 Stop counting
11-16
EWA 4NEB 811 6120-02a
Comentarios a estos manuales