EasyManua.ls Logo

Panasonic FP Series

Panasonic FP Series
1345 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
High-speed counter instructions
1157
Part IV Tool Instructions
HscInfo_GetCurrent
Speed
Returns current speed of high-speed counter channel
PLC types see page 1327
Input variable Data type Function
iChannel INT High-speed counter 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 DUT (see
page 51)
HscInfo_GetCurrentSpeed_DUT
Output variable
diCurrentSpeed DINT Stores the current speed of the channel specified by iChannel
Description
This instruction returns the current speed in Hz of the high-speed counter 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.
POU header
All input and output variables used for programming this function have been declared in the POU
header.
Body
LD
ST
When programming with structured text, enter the following:
if (bGetCurrentSpeed) then
HscInfo_GetCurrentSpeed(iChannel := iChannel,
dutMemory := Memory_DUT,
diCurrentSpeed => diCurrentSpeed);
end_if;

Table of Contents

Other manuals for Panasonic FP Series

Related product manuals