Configuring The Pwm And Frequency Output Modes; Assignment Of The Control Interface - Siemens Simatic S7-1500 Manual

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

Advertisement

Technology functions
3.2 Pulse generators
3.2.3

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
7
Byte 0
Byte 1
In PWM mode, the on-load factor uses only the two least significant bytes (byte 2 and byte 3).
Byte 2
Byte 3
Byte 4
Byte 5
Byte 6
Byte 7
Byte 8
Byte 9
Reserved = 0
Byte 10
Byte 11
* The terms "On-load factor", "Pulse duty factor" and "Duty factor" can be used synonymously
Use case
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.
62
6
5
Frequency output: Frequency in Hz (Real)
Reserved = 0
Reserved
= 0
4
3
OUTPUT_VALUE
PWM: On-load factor * (Int)
SLOT
MODE_SL
LD_SLOT
OT
Specifies the meaning of the value under SLOT
0000: No action
0001: Period duration (PWM)
0010 to 1111: Reserved
Reserved
SET_DQA
= 0
Reserved = 0
Reserved = 0
2
1
Reserved
TM_CTRL_
= 0
DQ
CPU 1512C-1 PN (6ES7512-1CK00-0AB0)
Manual, 09/2016, A5E35306440-AB
0
SW_ENA
BLE
RES_ERR
OR

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents