Pulse output instructions
1207
Part IV Tool Instructions
PulseControl_Elapsed
ValueReset
Sets elapsed value to 0
See also:
Pulse output tool instructions in the online help
PulseInfo_IsElapsedValueReset (see page 1226)
PulseCo
ntrol_ElapsedValueContinue (see page 1204)
PulseCo
ntrol_WriteElapsedValue (see page 1216)
To add an enable inp
ut and enable output to the instruction, select [With EN/ENO] from the
"Instructions" pane (LD, FBD or IL editor). To reuse an instruction select "Recently used" from the
context menu or press <Ctrl>+<Shift>+<v> in the programming window.
PLC types see page 1329
Variable Data type Function
iChannel INT Pulse output channel:
FP
: 0, 2
FP-X R: 0, 1
FP-X 16K C14T: 0, 1, 2
FP-X 32K C30T, C60T: 0, 1, 2, 3
FP0R: 0, 1, 2, 3
FP0: 0, 1
FP-e: 0, 1
Description
This instruction sets the elapsed value of the pulse output channel specified by iChannel to 0. Bit 0
of the pulse output control code (see page 1021) is set to TRUE. Use
PulseCon
trol_ElapsedValueContinue (see page 1204) to continue counting on the pulse output
channel. Use PulseInfo_
IsElapsedValueReset (see page 1226) to check the current state. Pulse
output continues whe
n resetting the elapsed value.
Data types
Example
In this example the function has been programmed in ladder diagram (LD) and structured text (ST).
The same POU header is used for all programming languages.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
Body
LD