101BExtended instructions
8.6 Pulse
S7-1200 Programmable controller
288
System Manual, 11/2011, A5E02486680-05
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
Description
0
No error
80A1
PWM identifier does not address a valid PWM.
Table 8- 120 Common condition codes
Condition code
1
Description
8022
Area too small for input
8023
Area too small for output
8024
Illegal input area
8025
Illegal output area
8028
Illegal input bit assignment
8029
Illegal output bit assignment
8030
Output area is a read-only DB.
803A
DB does not exist.
1
If one of these errors occurs when a code block is executed, the CPU goes to STOP mode unless you use the GetError
or GetErrorID instructions within that code block to create a programmed reaction to the error.