1. Home
    1. Dashboard
    2. Search
  2. Forum
    1. Unresolved Threads
    2. Members
      1. Recent Activities
      2. Users Online
      3. Team Members
      4. Search Members
      5. Trophys
  3. Articles
  4. Blog
  5. Videos
  6. Jobs
  7. Shop
    1. Orders
  • Login or register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • Blog Articles
  • Products
  • More Options
  1. Robotforum - Support and discussion community for industrial robots and cobots
  2. Forum
  3. Industrial Robot Support and Discussion Center
  4. Fanuc Robot Forum
Your browser does not support videos RoboDK Software for simulation and programming
Visit our Mainsponsor
IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Sponsored Ads

Part count per shift

  • Amsterdam
  • October 30, 2015 at 9:48 PM
  • Thread is Resolved
  • Amsterdam
    Reactions Received
    10
    Trophies
    4
    Posts
    10
    • October 30, 2015 at 9:48 PM
    • #1

    Good afternoon,

    I am trying to get a production count for each shift. I have a stand alone R30iB with the PMC option.
    I could use 3 different registers (1 for each shift) that would reset with a timer in the PMC. But then, I would have to start the timer exactly at the begining of a shift to get everything timed correctly. So I was wondering if there is a way to use the internal clock of the robot, in the PMC or elsewhere? So I could automatically reset my part count registers for each shift.
    (Or there is a completely different way to do this, I am open to ideas/advices)

    Thank you.

    Gilles

  • ESIELI
    Reactions Received
    10
    Trophies
    5
    Posts
    275
    • November 2, 2015 at 3:41 PM
    • #2
    Quote from grenard


    Good afternoon,

    I am trying to get a production count for each shift. I have a stand alone R30iB with the PMC option.
    I could use 3 different registers (1 for each shift) that would reset with a timer in the PMC. But then, I would have to start the timer exactly at the begining of a shift to get everything timed correctly. So I was wondering if there is a way to use the internal clock of the robot, in the PMC or elsewhere? So I could automatically reset my part count registers for each shift.
    (Or there is a completely different way to do this, I am open to ideas/advices)

    Thank you.

    Gilles


    I've never actually tried this, but I looked up the variable for you.

    Try
    R:[1] = $SYS_TIME.$HOUR

    Then you can be creative and write the logic for deciphering where it goes from there based on the value of the register.

  • ESIELI
    Reactions Received
    10
    Trophies
    5
    Posts
    275
    • November 2, 2015 at 3:43 PM
    • #3

    Then the Variable for Minutes would be

    $SYS_TIME.$MINUTE

    Just in case they start at a half hour mark

  • Amsterdam
    Reactions Received
    10
    Trophies
    4
    Posts
    10
    • November 20, 2015 at 8:54 PM
    • #4

    Thank you for your answer, sorry for taking so long to reply.
    After reading your message, I tried to access that variable but was unable to do so. So I started looking for another solution. In case some people have the same problem in the future, this is what I did:

    I actually have a HMI with GE Proficy View connected to the robot. I used the Proficy System Variable #CurrentTime in a script to set 6 registers on the robot (Year, month, day, hour, minutes, sec). It copies the time on the HMI to register and updates it every 200ms. This is what the (simple) script looks like:

    R_41 := #CurrentTime.YR
    R_42 := #CurrentTime.MO
    R_43 := #CurrentTime.DAY
    R_44 := #CurrentTime.HR
    R_45 := #CurrentTime.MIN
    R_46 := #CurrentTime.SEC


    And then I created some background logic in the robot to reset the Shift counter and record the part count for the past 7 days as well. This si what the background logic code looks like.

    2: IF (R[44:Hour]=23 AND R[45:Minute]=30 AND R[46:Second]=0),DO[170:SHIFT 1 RESET]=PULSE ;
    3: ;
    4: IF (DO[170:SHIFT 1 RESET]=ON) THEN ;
    6: R[79]=R[78] ;
    6: R[78]=R[77] ;
    6: R[77]=R[76] ;
    6: R[76]=R[75] ;
    6: R[75]=R[74] ;
    6: R[74]=R[73] ;
    6: R[73]=R[72] ;
    6: R[72]=R[71] ;
    7: R[71]=0 ;
    8: ENDIF ;
    3: ;
    3: ;
    2: IF (R[44:Hour]=7 AND R[45:Minute]=30 AND R[46:Second]=0),DO[171]=PULSE ;
    3: ;
    4: IF (DO[171]=ON) THEN ;
    6: R[89]=R[88] ;
    6: R[88]=R[87] ;
    6: R[87]=R[86] ;
    6: R[86]=R[85] ;
    6: R[85]=R[84] ;
    6: R[84]=R[83] ;
    6: R[83]=R[82] ;
    6: R[82]=R[81] ;
    7: R[81]=0 ;
    8: ENDIF ;
    3: ;
    3: ;
    2: IF (R[44:Hour]=15 AND R[45:Minute]=30 AND R[46:Second]=0),DO[172]=PULSE ;
    3: ;
    4: IF (DO[172]=ON) THEN ;
    6: R[99]=R[98] ;
    6: R[98]=R[97] ;
    6: R[97]=R[96] ;
    6: R[96]=R[95] ;
    6: R[95]=R[94] ;
    6: R[94]=R[93] ;
    6: R[93]=R[92] ;
    6: R[92]=R[91] ;
    7: R[91]=0 ;
    8: ENDIF ;


    I am sure there are easier/better ways to do this, but it worked for me.
    Thanks for your help anyways. Hopefully this can be useful to someone later on.

Advertising from our partners

IRBCAM
Robotics Channel
Robotics Training
Advertise in robotics
Advertise in Robotics
Advertise in Robotics

Job Postings

  • Anyware Robotics is hiring!

    yzhou377 February 23, 2025 at 4:54 AM
  • How to see your Job Posting (search or recruit) here in Robot-Forum.com

    Werner Hampel November 18, 2021 at 3:44 PM
Your browser does not support videos RoboDK Software for simulation and programming

Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000

Thread Tag Cloud

  • abb
  • Backup
  • calibration
  • Communication
  • CRX
  • DCS
  • dx100
  • dx200
  • error
  • Ethernet
  • Ethernet IP
  • external axis
  • Fanuc
  • help
  • hmi
  • I/O
  • irc5
  • IRVIsion
  • karel
  • kawasaki
  • KRC2
  • KRC4
  • KRC 4
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • robodk
  • roboguide
  • robot
  • robotstudio
  • RSI
  • safety
  • Siemens
  • simulation
  • SPEED
  • staubli
  • tcp
  • TCP/IP
  • teach pendant
  • vision
  • Welding
  • workvisual
  • yaskawa
  • YRC1000
  1. Privacy Policy
  2. Legal Notice
Powered by WoltLab Suite™
As a registered Member:
* You will see no Google advertising
* You can translate posts into your local language
* You can ask questions or help the community with your knowledge
* You can thank the authors for their help
* You can receive notifications of replies or new topics on request
* We do not sell your data - we promise

JOIN OUR GREAT ROBOTICS COMMUNITY.
Don’t have an account yet? Register yourself now and be a part of our community!
Register Yourself Lost Password
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on Google Play
Robotforum - Support and discussion community for industrial robots and cobots in the WSC-Connect App on the App Store
Download