S4c+: Store value outside of PRG

  • morning,


    Been awhile since I used the S4c+ platform, and I'm trying to record robot idle time. Right now, all production programs are stored as separate PRG files (>30 in total) and they're all qualified so I don't want to try moving them all into modules.. as I know if they were modules I could just make a persistent and be done with it - I'm just trying to check a varaible, and then update it's time so I can record the robot down time. I have all the clock stuff working and I'm writing to a log fine. I'm sure this is something simple I'm missing


    Thanks!

    Taylor Guitars - Robotics Engineer
    - IRC5 IRB4400
    - IRC5 IRB2400
    - S4C+ IRB4600
    - S4 IRB2400
    - Epson G3-351 RC180

  • Low brow solution, I just started writing the time into a data file and then I read the last stored time in there and take the difference. It's working now, but I want to display my seconds as minutes and I wish RAPID had a modulus% that I knew about..


    edit: and there is, lets see if MOD does the trick :smiling_face:


    edit edit: Great it did, just had to remember it only does rounded integers

    Taylor Guitars - Robotics Engineer
    - IRC5 IRB4400
    - IRC5 IRB2400
    - S4C+ IRB4600
    - S4 IRB2400
    - Epson G3-351 RC180

    Edited once, last by Tyler Robertson ().

  • Anyone know how to refer to a module or PRG's name programatically?


    ie: I want to output the PRG/module therein name in a log file but call the same program from different PRG files and not have to edit each time

    Taylor Guitars - Robotics Engineer
    - IRC5 IRB4400
    - IRC5 IRB2400
    - S4C+ IRB4600
    - S4 IRB2400
    - Epson G3-351 RC180

Advertising from our partners