Panasonic FP Series Programming Manual page 1158

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

HscInfo_GetCurrent
Speed
This instruction returns the current speed in Hz of the high-speed counter channel specified by
Description
iChannel.
see page 1327
PLC types
Data types
Input variable
iChannel
dutMemory
Output variable
diCurrentSpeed
In this example the function has been programmed in ladder diagram (LD) and structured text (ST).
Example
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)
HscInfo_GetCurrentSpeed(iChannel
dutMemory
diCurrentSpeed =>
end_if;
Returns current speed of high-speed counter channel
Data type
Function
INT
High-speed counter channel:
FP
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
DUT (see
HscInfo_GetCurrentSpeed_DUT
page 51)
DINT
Stores the current speed of the channel specified by iChannel
then
:= Memory_DUT,
diCurrentSpeed);
High-speed counter instructions
: 0, 2
:= iChannel,
1157

Advertisement

Table of Contents
loading

Table of Contents