Parameter Data Records Of The High-Speed Counters - Siemens Simatic S7-1500 Manual

Hide thumbs Also See for Simatic S7-1500:
Table of Contents

Advertisement

Parameter data records
B.7 Parameter data records of the high-speed counters
B.7

Parameter data records of the high-speed counters

You can change the parameters of the High Speed Counter in RUN mode. The WRREC
instruction is used to transfer the parameters to the High Speed Counter using data
record 128.
If errors occur when transferring or validating parameters with the WRREC instruction, the
High Speed Counter continues operation with the previous parameter assignment. The
STATUS output parameter then contains a corresponding error code. If no error has
occurred, the length of 
 t he data actually transferred is entered in the STATUS 
 output
parameter.
You will find a description of the "WRREC" instruction and the error codes in the STEP 7
(TIA Portal) online help.
Data record structure
The following table shows you the structure of data record 128 with the counter channel. The
values in byte 0 to byte 3 are fixed and must not be changed. The value in byte 4 may only
be changed by parameter reassignment and not in RUN mode.
Table B- 11
Parameter data record 128 - HSC parameter header
Bit →
7
Byte
0
1
2
3
Reserved bits must be set to 0
1)
Table B- 12
Parameter data record 128 - operating mode
Bit →
7
Byte
4
Reserved = 0
1)
Reserved bits must be set to 0
1)
162
6
5
Major Version = 1
Length of parameter data of the channel = 48
6
5
4
3
Reserved = 0
1)
4
3
Operating mode
Operating mode:
0000
: Deactivated
B
0001
: Counting
B
0010
: Measuring
B
0011 to 1111
: Reserved
B
2
1
Minor Version = 0
2
1
CPU 1512C-1 PN (6ES7512-1CK00-0AB0)
Manual, 09/2016, A5E35306440-AB
0
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents