Parameter data records
B.8 Parameter data records (PWM)
CPU 1512C-1 PN (6ES7512-1CK01-0AB0)
Manual, 12/2017, A5E40898741-AA
187
B.8
Parameter data records (PWM)
You have the option of reassigning the pulse width modulation parameters in RUN. The
parameters are transferred with the instruction WRREC via the data record 128 to the PWM
submodule.
If errors occur when transferring or validating parameters with the WRREC instruction, the
module continues operation with the previous parameter assignment. The output parameter
STATUS then contains a corresponding error code. If no error has occurred, the length of
the data actually transferred is entered in the output parameter STATUS.
You can 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 the structure of the data record 128 for the pulse width
modulation. The values in byte 0 to byte 3 are fixed and must not be changed.
Table B- 22 Parameter data record 128
Bit →
7
6
5
4
3
2
1
0
Byte
0
Major Version = 1
Minor Version = 0
1
Length of the parameter data of the channel in bytes = 12
2
Reserved = 0
1)
3
4
Current
control
Dithering
High-speed output
Operating mode
0
B
: Deac-
tivated
0
B
: Deac-
tivated
0
B
: Deactivated
0000
B
: Reserved
1
B
: Re-
served
1
B
: Re-
served
01
B
: Activated
0001
B
: PWM (pulse-width modulation)
10
B
-11
B
: Reserved
0010
B
: Reserved
0011
B
: Reserved
0100
B
: Frequency output
0110
B
to 1110
B
: Reserved
1111
B
: Deactivated
5
Reserved = 0
1)
Reserved = 0
1)
Diagnostics
interrupt
Reaction to CPU STOP
0
B
: Deac-
tivated
00
B
: DQ substitute value
1
B
: Activat-
ed
01
B
: Reserved
10
B
: Operating mode for
continuation of operation
11
B
: Reserved
Summary of Contents for Simatic S7-1500 CPU 1512C-1 PN
Page 1: ......