Pulse output instructions
1222
Part IV Tool Instructions
PulseInfo_GetCurrent
Speed
Returns current speed on pulse output channel
See also:
Pulse output tool instructions in the online help
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
dutMemory PulseInfo_GetCurrentSpeed_DUT
diCurrentSpeed DINT Current speed in Hz
Description
This instruction returns the current speed in Hz of the pulse output channel specified by iChannel.
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.
DUT
Use the following predefined DUT: PulseInfo_GetCurrentSpeed_DUT
POU header
All input and output variables used for programming this function have been declared in the POU
header.
Body
LD