Cycle time

  • "You need to write down below code:"


    TIMER[V1!] - FN650, Initial timer value
    NOP - FN600
    CALLP[11] - FN80, Your desired program
    NOP - FN600
    TIMER[V2!] - FN650, Timer value after program ends
    SUBVF[V2!,V1!] - FN640, This performs V2! - V1! and store values in V2!


    "V2! value can be seen in Real Variable"
    "For sending timer values to PLC/HMI, use this code afterwards"


    LETVI[V2%, V2!/100] - FN75, Converts V2! to sec and store in V2%
    MULTIM[05101,V2%] - FN264, V2% value can be send to PLC/HMI
    NOP


    You can select any variable no. as per availability
    Hope this will work for you

  • You have 2 choice.


    User FN835 MSRTM


    ■ Example of operation

    1 MSRTM 1,1,V1!

    2 DELAY 1

    3 MSRTM 1,0,V1!


    'FN650 TIMER- Returns the time (in milliseconds) which has elapsed since the power was turned on.

    'FN310 INH- Inhibit to wait till program to move to this step


    TIMER V1! ' Grab time from system when starting process

    DELAY 2 'delay time or you can have your motion or process

    INH 'make sure system wait till this line before grabbing the information again. Without INH you may grab time too early as pointer and

    TIMER V2! 'Grab time from system again

    V3!=V![2]-V![1] 'Calculate how much time in ms the difference in timing

    delay .5

    END


    or like what the Roboter did using FN650.

Advertising from our partners