Operands for PWM/Pulse FunctionΒΆ

Input information for the output < Output information for the user program
PWM frequency 0 < Output word 0
PWM duty cycle/pulse C0 < Output word 1
PWM frequency C1 < Output word 2
PWM duty cycle/pulse C1 < Output word 3
PWM Control Byte C0 < Output byte 0
PWM Control Byte C1 < Output byte 1
PWM/Pulse Outputs < Output byte 2
Bit 0 < Output bit 2.0
Bit 4 < Output bit 2.4
Meaning of the input information for the PWM/Pulse function:
PWM Frequency C0 WORD

Frequency of channel O0

Unit: Hz or 10Hz (depending on bit 0 of PWM control byte 0)

PWM Frequency C1 WORD

Frequency of channel O1

Unit: Hz or 10Hz (depending on bit 0 of PWM control byte 1)

PWM Duty cycle/pulse C0 WORD

PWM duty cycle of channel O0 in 1/10 of percentage

or

Number of pulses to be send on channel O0

PWM Duty cycle/pulse C1 WORD

PWM duty cycle of channel O1 in 1/10 of percentage

or

Number of pulses to be send on channel O1

PWM control byte 0 BYTE

Control byte for the PWM/Pulse output O0:

Depending on operating modes, the different bits of PWM control byte 0 are used to manage and control the counting (see below table)

PWM control byte 1 BYTE

Control byte for the PWM/Pulse output O1:

Depending to operating modes, the different bits of PWM control byte 1 are used to manage and control the counting (see below table)

PWM/Pulse Outputs BYTE Outputs for PWM/Pulse output:
Bit 0 Output O0
Bit 1-3 Digital outputs unused
Bit 4 Output O1
Bit 5-7 Digital outputs unused