PDA

View Full Version : Object time retaining



heko11
03-03-2008, 03:23 AM
Hello
I have the following problem with 840D. Can I retain the object time in a mask? The controller is 2004. There isn’t such a mask in Shop Mill view. In 840C that can be made with M function. Is there anything like that in 840D?

Hori_1969
03-07-2008, 06:11 AM
Try that

%_N_ZEIT_START_SPF
;$PATH=/_N_CUS_DIR

$AC_TIMER[1]=0

R10=$AC_TIMER[1]

RET

%_N_ZEIT_STOP_SPF
;$PATH=/_N_CUS_DIR

DEF INT _EC

$AC_TIMER[1]=-1

WRITE(_EC,"LAUFZEIT","LAUFZEIT AM "<<$A_DAY<<"."<<$A_MONTH<<".0"<<$A_YEAR<<" "<<R10<<"SEC")

RET

Sit22
03-08-2008, 08:50 AM
Is it possible?

Hori_1969
03-26-2008, 07:21 AM
Yes, call subprogram “ZEIT_START”, time will be started. “ZEIT_STOP” will be stopped.
Then a folder with time capture will be created.

Sit22
03-28-2008, 11:34 AM
%_N_ZEIT_SPF
;$PATH=/_N_SPF_DIR
DEF STRING[70] Zeit_Dat="/_N_WKS_DIR/_N_PROTOKOLL_WPD/_N_ZEITEN_MPF"
DEF INT error

R99=$AC_CYCLE_TIME ; = LAUFZEIT IN SEKUNDEN

R98= TRUNC(R99/3600) ; = STUNDEN
R97= TRUNC(TRUNC(R99-R98*3600)/60) ; = MINUTEN
R96= R99-R97*60-R98*3600 ; = SEKUNDEN

Write (error,Zeit_Dat,"Prog: "<<$P_PROG[0]<<" - "<<$A_DAY<<":"<<$A_MONTH<<":"<<$A_YEAR<<" - LAUFZEIT = "<<R98<<":"<<R97<<":"<<R96<<"")

M17

hannes123
08-16-2008, 10:14 AM
Can I also see the time with MSG?
How long will the message stay?

Thanks

onkel-howdy
08-16-2008, 01:11 PM
As far I know, until it’s overwritten.