×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

programing a timer

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

RE: programing a timer

What PLC?

Are you sure the instance you are using is in the same units?

RE: programing a timer

(OP)
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.


 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources