When a Pulse instruction is created within a sequence of logic, provide the following
parameters:
- Entity
-
It must be an output signal of the resource (IO or Group IO). Can be a simple
variable or an array element (Index is evaluated when instruction is
reached). Pulse is limited to a single array item. It is impossible to pulse
a set of values.

Select
from the Wizard Edition on Entity Field
or type
in the requirements.
- Value
- The value is evaluated when instruction is reached. If invert mode is selected,
the field is hidden. Invert mode is specific to boolean values and allows
inverting current boolean value.

Select from
the Wizard Edition on Entity Field
, or type in
the requirements.
- Delay
- A delay time after which the pulse is applied on the signal. The default is 0.
It must be positive. The delay is evaluated when instruction is reached.

Select from
the Wizard Edition on Entity Field
, or type in
the requirements.
- Duration
- The duration time during which the signal value is set. If empty, it is treated
as infinite and the pulse behaves like an assignment. Otherwise, it must be
positive. The duration is evaluated when instruction is reached.

Select
from the Wizard Edition on Entity Field
, or type in
the requirements.
A pulse instruction modifies the value of the related signal at two times:
- The first transition happens at the execution of the pulse instruction, or after
a delay if specified. Whatever the previous value of the signal it is set to the
specified value (like an assignment).
- The second transition happens as much time after the first change as specified
in the duration parameter. The change consists of the inversion of the specified
value for Boolean outputs, and of the valuation to 0 for integer outputs. If the
duration is not specified, it is considered as infinite and this second
transition does not happen.
Aside from these changes, a pulse instruction does not affect a signal. It means that
other instructions (assignments or other pulses) can modify the value of the same signal
during the delay or the duration times.
IO is changed before cycle computation, and are changed before executing the second
pulse instruction. This is why the system does not cancel the first pulse instruction.
You cannot change IO values during the cycle.

Instruction consistency is checked when the panel is validated. It means that if
expressions are not consistent or are referencing in existing variables, the instruction
is in error with an explicit message.
