Smart component timerquestion

Hi everybody.
IA’m quit new in Robotstudio, but i learn everyday.
But now am i stuck with a problem i dont now of to deal with.
IA’l try to explain.
I have a machine that produce a detail for every 60 secund. When the machine is done, i want to have a signal that tells the robot to go and get the detail. And i also want the detail to be visible in the machine.

  1. Empty machine (timer starts 60s)
  2. Visible detail in the machine. Trigger signal to robot.
    3 Robot gets detail.
    4 Timer starts again (no visible detail in machine.
    How do i do that? Best solution.
    Can i use the timer in smart components?
    Thanks in advance.
    BR Fredrik EkstrA?m.