Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

programing a timer

Status
Not open for further replies.

gilgora

Industrial
May 22, 2008
4
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
 
Replies continue below

Recommended for you

What PLC?

Are you sure the instance you are using is in the same units?
 
its a fx2n and yes (I think) if I put the result of TSUB and i display it in the HMI it show me what I want but if I take the result of TSUB for the TADD it show me other numbers, look I try this:

/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.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor