Write Initial Count - Siemens Simatic S5 IP 240 Manual

Counter/positioning/position decoder module
Hide thumbs Also See for Simatic S5 IP 240:
Table of Contents

Advertisement

Direct Data Interchange with the 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
or 21
H
H
Table 11-10. Contents of the Transfer Buffer on Writing the Initial Count, Counting Mode
Offset
transfer
7
6
buffer
0
1
2
3
0
0
4 to 14
0
Write control bits
To reinitialize control bits, you must enter the new control bits in the transfer buffer and write job
number 1A
or 2A
in the job request register.
H
H
Table 11-11. Contents of the Transfer Buffer on Writing Control Bits, Counting Mode
Offset
transfer
7
6
buffer
0
0
0
1
AMSK
0
2 to 14
0
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
in the job request register.
Bit
5
4
3
2
1
10
3
10
0
0
0
0
0
. . .
0
0
Bit
5
4
3
2
0
STRT
0
0
0
0
0
0
. . .
0
0
1
0
0
10
2
10
0
Sign of the initial count
0
SG
SG=1
The initial count value is negative
SG=0
The initial count value is positive
. . .
0
1
0
0
0
DA1F DA1S
. . .
0
IP 240
Description
Initial count
Description
Control bits
EWA 4NEB 811 6120-02a

Advertisement

Table of Contents
loading

Table of Contents