programing a timer
programing a timer
(OP)
hi everyone i have a problem Im trying to program a timer to count how long time the machine its not working i still cant hold the information i try to use TADD and display it in the HMI but it show me others numbers.
what i do was use TRD to read the time and TRDP to read the time when the machine stop and then i used TSUB to get the time the machine its no working , and if I put the result of the TSUB in the HMI its ok it show me seconds, minute, and hours but if i try to put that information in TADD to add the time each time its stop and then display it in the HMI it show me other numbers (start to count very fast) somebody know why.
my HMI its a E300
thanks
what i do was use TRD to read the time and TRDP to read the time when the machine stop and then i used TSUB to get the time the machine its no working , and if I put the result of the TSUB in the HMI its ok it show me seconds, minute, and hours but if i try to put that information in TADD to add the time each time its stop and then display it in the HMI it show me other numbers (start to count very fast) somebody know why.
my HMI its a E300
thanks





RE: programing a timer
Are you sure the instance you are using is in the same units?
RE: programing a timer
/M505/-----------------[TRD D776]
/
/
/M505/// this is normaly closed
/M508/-----------------[TRDP D768] this activate when the
machine stop
M508/----------------[TSUB D779 D771 D784]
/
/--------------[TADD D784 D800 D800]
if i put in the HMI the result of TSUB (D784 D785 D786, hours, minute and second)its ok ahave a good counter but it restart again from 0 each time so I try to use TADD to hold the time but it doesnt work.