;(1=360Basic,2=360B or AWD,3=360C)
def int error
def string ld_name
if ($p_subpar==false) or (type<1) or (type>3)
ld_name=("<Unknown>")
endif
if type==1
ld_name=("<360Basic>")
endif
if (type==2) and (r99==57529)
ld_name=("<360B>")
endif
if (type==2) and (r99==1359)
ld_name=("<360AWD>")
endif
if type==3
ld_name=("<360C>")
endif
write (error,"/_n_spf_dir/_n_cycle_timer_spf",""<<ld_name<<" Running:"<<$a_year<<"."<<$a_month<<"."<<$a_day<<""<<$a_hour<<":"<<$a_minute<<":"<<$a_second )
r600=$a_hour*3600+$a_minute*60+$a_second+$a_msecond/1000-r600
if r600<0
r600=r600+24*3600
endif
if r600>3600
r600=0
endif
r600=round(r600)
write (error,"/_n_spf_dir/_n_cycle_timer_spf","Cycle time :"<<r600<<" Sec")
write (error,"/_n_spf_dir/_n_cycle_timer_spf","Machining Time:"<<round($ac_timer)<<" Sec " )
r600=$a_hour*3600+$a_minute*60+$a_second+$a_msecond/1000
ret
页:
1
[2]