101BExtended instructions
8.6 Pulse
The pulse width will be set to the initial value configured in device configuration when the
CPU first enters RUN mode. You write values to the Q-word location specified in device
configuration ("Output addresses" / "Start address:") as needed to change the pulse width.
You use an instruction such as a move, convert, math, or PID box to write the desired pulse
width to the appropriate Q word. You must use the valid range for the Q-word value (percent,
thousandths, ten-thousandths, or S7 analog format).
Note
Digital I/O points assigned to PWM and PTO cannot be forced
The digital I/O points used by the pulse-width modulation (PWM) and pulse-train output
(PTO) devices are assigned during device configuration. When digital I/O point addresses
are assigned to these devices, the values of the assigned I/O point addresses cannot be
modified by the Watch table force function.
Table 8- 119 Value of the STATUS parameter
STATUS
0
80A1
Table 8- 120 Common condition codes
Condition code
1
8022
8023
8024
8025
8028
8029
8030
803A
If one of these errors occurs when a code block is executed, the CPU goes to STOP mode unless you use the GetError
1
or GetErrorID instructions within that code block to create a programmed reaction to the error.
288
Description
No error
PWM identifier does not address a valid PWM.
Description
Area too small for input
Area too small for output
Illegal input area
Illegal output area
Illegal input bit assignment
Illegal output bit assignment
Output area is a read-only DB.
DB does not exist.
S7-1200 Programmable controller
System Manual, 11/2011, A5E02486680-05