Parameter data records
B.7 Parameter data records of the high-speed counters
CPU 1512C-1 PN (6ES7512-1CK01-0AB0)
180
Manual, 12/2017, A5E40898741-AA
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 the 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
6
5
4
3
2
1
0
Byte
0
Major Version = 1
Minor Version = 0
1
Length of parameter data of the channel = 48
2
Reserved = 0
1)
3
1)
Reserved bits must be set to 0
Table B- 12 Parameter data record 128 - operating mode
Bit →
7
6
5
4
3
2
1
0
Byte
Operating mode
4
Reserved = 0
1)
Operating mode:
0000
B
: Deactivated
0001
B
: Counting
0010
B
: Measuring
0011 to 1111
B
: Reserved
1)
Reserved bits must be set to 0
Summary of Contents for Simatic S7-1500 CPU 1512C-1 PN
Page 1: ......