Input Description

../_images/1407baf6e38acc0b0a33139000eba54e

EN

Data_Type Default_Value Range Unit
BOOL FALSE TRUE/FALSE -

The input EN has to be driven in level triggered mode.

In order to enable the execution of the Function Block the input EN has to be set to value TRUE. It keeps on executing until the input EN is set back to value FALSE.

While it is executed its inputs are continuously evaluated.

EN_PWM

Data_Type Default_Value Range Unit
BOOL - - -

If EN_PWM = TRUE, the pulse-width modulator is enabled. If EN_PWM = FALSE, no pulse-width modulation is performed.

Input EN_PWM corresponds to output bit 7 in “control byte PWM x “.

CHANNEL

Data_Type Default_Value Range Unit
BYTE - - -

Input CHANNEL is used to select the input for the counter. Currently the only valid value is 0. The device occupies the inputs I0…I1. If an invalid value is entered at input CHANNEL or if the selected channel is not configured as a counter, the Function Block is aborted with DONE=ERR=TRUE and a corresponding error number at ERNO.

CHANNEL contains the channel number managed by the Function Block:

  • CHANNEL = 0: the output O2 is managed
  • CHANNEL = 1: the output O3 is managed

CYCLE_TIME

Data_Type Default_Value Range Unit
WORD - 50 µs (20 kHz) - 8000 µs (125 Hz) µs (Hz)

The input CYCLE_TIME is used to specify the cycle time of PWM. The unit can be also set as “ms” by configuring the input variable UNIT=TRUE.

Input CYCLE_TIME corresponds to output word “PWM x -Frequency/Cycle time”.

CYCLE_DUTY

Data_Type Default_Value Range Unit
WORD - - -

Input CYCLE_DUTY is used to preset the duty time for the output. The input CYCLE_DUTY is used to specify the time of TRUE signal. By normal operation mode, the value of CYCLE_DUTY should be smaller or equal to the value of  CYCLE_TIME.

On fast outputs O2 and O3 the brightness of the yellow LED depends on the value of duty time specified.

The last entered valid value will be used or the value ‘0’ if no value has been entered before.

Input CYCLE_DUTY corresponds to output word “PWM x - Duty cycle/Duty time”.

UNIT

Data_Type Default_Value Range Unit
BOOL - - -

Input UNIT is used to preset the timebase for the PWM output. FALSE sets the timebase to µs and TRUE to ms.