Siemens SIMATIC S7-200 System Manual page 268

Programmable controller
Hide thumbs Also See for SIMATIC S7-200:
Table of Contents

Advertisement

S7-200 Programmable Controller System Manual
PWMx_RUN Instruction
The PWMx_RUN instruction allows you to control the duty
cycle of the output by varying the pulse width from 0 to the
pulse width of the cycle time.
The Cycle input is a word value that defines the cycle time
for the PWM output. The allowed range is from 2 to 65535
units of the time base (microseconds or milliseconds) that
was specified within the wizard.
The Duty_Cycle input is a word value that defines the pulse
width for the PWM output. The allowed range of values is
from 0.0 to 65535 units of the time base (microseconds or
milliseconds) that was specified within the wizard.
The Error is a byte value returned by the PWMx_RUN
instruction that indicates the result of execution. See Table
for a description of the possible error codes.
Table 9-1
Parameters for the PWMx_RUN Instruction
Inputs/Outputs
Cycle, Duty_Cycle
Error
Table 9-2
PWMx_RUN Instruction Error Codes
Error Code
0
1
254
Data Types
Operands
Word
IW, QW, VW, MW, SMW, SW, T, C, LW, AC, AIW, *VD, *AC, *LD,
Constant
Byte
IB, QB, VB, MBV, SMB, LB, AC, *VD, *AC, *LD, Constant
Description
No error, normal completion
Immediate STOP issued during move. STOP command completed successfully

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents