发布于 2013-09-11 14:24:48
12楼
以下是附件Frequency库
网络1
LD SM0.1
MOVR 1.0, Time_interval:VD0
A #Active:L0.0
BITIM BGN_time:VD4
MOVD #Counter:LD1, Last_counter_value:VD8
网络2
LD #Active:L0.0
EU
BITIM BGN_time:VD4
MOVD #Counter:LD1, Last_counter_value:VD8
网络3
LDN SM0.0
= #Trigger:L9.0
网络4
LD #Active:L0.0
CITIM BGN_time:VD4, #Delta_time_DI:LD10
AENO
DTR #Delta_time_DI:LD10, Delta_time_R:VD12
AENO
*R 0.001, Delta_time_R:VD12
网络5
LD #Active:L0.0
AR>= Delta_time_R:VD12, Time_interval:VD0
LPS
MOVD #Counter:LD1, #Delta_counter_value_DI:LD14
AENO
-D Last_counter_value:VD8, #Delta_counter_value_DI:LD14
AENO
DTR #Delta_counter_value_DI:LD14, #Delta_counter_value_R:LD18
AENO
MOVR #Delta_counter_value_R:LD18, #Hz:LD5
AENO
/R Delta_time_R:VD12, #Hz:LD5
AENO
= #Trigger:L9.0
LPP
MOVD #Counter:LD1, Last_counter_value:VD8
AENO
BITIM BGN_time:VD4
网络6
LD #Active:L0.0
ED
MOVR 0.0, #Hz:LD5