Parameter data records
B.8 Parameter data records (PWM)
CPU 1512C-1 PN (6ES7512-1CK00-0AB0)
Manual, 09/2016, A5E35306440-AB
169
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.
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
Length of the parameter data of the channel in bytes = 12
Reserved = 0
1)
Current
Dithering High-speed output Operating mode
0
B
: Deac-
0
B
: Deac-
0
B
: Deactivated 0000
B
: Reserved
1
B
: Re-
served
1
B
: Re-
served
0001
B
: PWM (pulse-width modulation)
B
B
B
B
B
Reserved = 0
1)
Reserved = 0
1)
Diagnostics
Reaction to CPU STOP
0
B
: Deac-
00
B
: DQ substitute value
1
B
: Activat-
ed
10
B
: Operating mode for
continuation of operation
B