Panasonic FP Series Programming Manual page 901

Hide thumbs Also See for FP Series:
Table of Contents

Advertisement

High-speed counter instructions
ST
When programming with structured text, enter the following:
IF
(sys_bIsFirstScan)
sys_diHscChannel0ElapsedValue:=0;
END_IF;
IF
DF(bStartCam)
F165_HighSpeedCounter_Cam(iHscChannel
s_dutDataTable
dutBitOutputs
END_IF;
Example 2: Without maximum target value control
In this example the function has been programmed in ladder diagram (LD) and structured text (ST).
Example 2
The DUT F165_HighSpeedCounter_Cam_8_Values_DUT is predefined in the FP Library and can
DUT
be used as a sample.
All input and output variables used for programming this function have been declared in the POU
POU header
header.
When the variable bStartCam is set to TRUE, the function is carried out.
Body
LD
When programming with structured text, enter the following:
ST
IF
(sys_bIsFirstScan)
sys_diHscChannel0ElapsedValue:=0;
END_IF;
IF
DF(bStartCam)
F165_HighSpeedCounter_Cam(iHscChannel
s_dutDataTable
dutBitOutputs
END_IF;
900
THEN
THEN
:= dut_F165_CAM_Example1,
=> WR0_bits_F165_CAM_Examples);
THEN
THEN
:= dut_F165_CAM_Example2,
=> WR0_bits_F165_CAM_Examples);
:= 0,
:= 0,

Advertisement

Table of Contents
loading

Table of Contents