



output (DQA) of a pulse generator directly via the control program. Select the function for th |
|
DQ direct control by deleting the output control bit of the PWM channel (TM_CTRL_DQ = 0)
in the control interface. |
|
The direct control of the pulse output (DQA) can be helpful when commissioning a control
system for automation. |
|
When you select the direct control of the pulse output (DQA) during a pulse output
sequence, the sequence continues to run in the background so that the output sequence is
continued as soon as the channel takes control again (by setting TM_CTRL_DQ = 1).
You assign the status of the pulse output (DQA) using the control bits SET_DQA.
When you set TM_CTRL_DQ = 1, you deselect the direct control of the pulse output (DQA)
and the channel takes over the processing. If the output sequence is still running
(STS_ENABLE still active), the PWM channel takes over the control of the output again. If
TM_CTRL_DQ = 1 and STS_ENABLE is not active, the module's channel also takes over
processing, but then outputs "0".
Note
Output control signal TM_CTRL_DQ of the PWM channel
• If TM_CTRL_DQ = 1, the technology function takes over the control and generates pulse
sequences at the output PWM DQA.
• If TM_CTRL_DQ = 0, the user program takes over the control and the user can set the
PWM DQA directly using the control bits SET_DQA.Transfer the control for the output to the PWM channel.
2. Set SW_ENABLE so that the output can be started.
3. Set the required on-load factor using OUTPUT_VALUE.
4. If necessary, change the period duration (cyclically 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.The interpretation of the value OUTPUT_VALUE depends on the set operating mode.
OUTPUT_VALUE is always updated. When an invalid value is detected (outside the
permissible range), the error memory bit ERR_OUT_VAL is set until a valid value is
detected. During the error condition, the invalid value is ignored and the PWM channel
continues with the last valid OUTPUT_VALUE. Note that, in the frequency output mode, it is
also possible that no last valid value is available. In this case, the pulse output returns the
value 0, i.e. there is no pulse output.
Please note that the on-load factor is not checked in PWM mode. If the on-load factor is
greater than the format permits, the PWM channel uses a ratio of 100%. For values < 0, 0%
is effective.
SLOT, MODE_SLOT and LD_SLOT
Use these control interface fields if you occasionally change the period duration in PWM
mode before the start of the output sequence or during operation. You can find a description
of the interaction between SLOT, MODE_SLOT and LD_SLOT under Handling the SLOT
parameter (control interface) (Page 65).
SW_ENABLE
If 0 → 1, activate the output sequence.
TM_CTRL_DQ
● If 1, the output is controlled by the PWM channel and generates the pulse sequences
● If 0, the output is controlled directly by the program using the SET_DQA assignments