Technology functions
3.2 Pulse generators
CPU 1512C-1 PN (6ES7512-1CK00-0AB0)
62 Manual, 09/2016, A5E35306440-AB
Configuring the PWM and frequency output modes
3.2.3.1
Assignment of the control interface
The user program influences the behavior of the PWM channel through the control interface.
Control interface per channel
The following table shows the control interface assignment:
Table 3- 5 Assignment of the control interface
OUTPUT_VALUE
PWM: On-load factor * (Int)
In PWM mode, the on-load factor uses only the two least significant bytes (byte 2 and byte 3).
Frequency output: Frequency in Hz (Real)
Byte 1
SLOT
Byte 8 Reserved = 0 MODE_SL
OT
LD_SLOT
Specifies the meaning of the value under SLOT
0001: Period duration (PWM)
Byte 9 Reserved = 0 Reserved
Reserved
SET_DQA Reserved
TM_CTRL_
SW_ENA
Byte 10 Reserved = 0 RES_ERR
* The terms "On-load factor", "Pulse duty factor" and "Duty factor" can be used synonymously
1. Transfer the control for the output to the PWM channel.
2. Set SW_ENABLE, in order that the output can be started.
3. Set the required on-load factor using OUTPUT_VALUE.
4. If necessary, change the period duration (cyclic or once). If you do not change the value,
the period duration from the hardware configuration will be used.
5. With TM CTRL_DQ and SET_DQ set the output from the user program permanently to 1
or 0.
6. Acknowledge any errors that occur using RES_ERROR.
Additional parameters for the output sequence are defined before the start of an output
sequence.
The data record of the parameter assignment is changed in the device configuration in
STEP 7 (TIA Portal) or through WRREC execution.