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. KUKA 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

What does the "SYNC( )" command do?

  • mbull
  • September 15, 2017 at 6:38 AM
  • Thread is Resolved
  • mbull
    Reactions Received
    2
    Trophies
    3
    Posts
    43
    • September 15, 2017 at 6:38 AM
    • #1

    I was hoping one of you could give me a little bit of enlightenment as to what the SYNC() command does, why it is needed, and how to get rid of the "SYNC()--CALL NOT PROGRAMMED" message upon shutting down the controller. The controller is a GM spec KRC2 running KSS 4.1.7 SP2.

    The operator control manual states the following in under the section titled "power failure with the system running"

    Quote

    An active application should react to the power failure with the KRL command “SYNC( )”.
    If this message does not appear, a corresponding error message is generated.
    It makes no difference whether the power failure was caused by failure of the mains supply
    or by pressing the main switch during program execution.

    The fault listing manual has the following to say:

    Quote

    Message text SYNC()--CALL NOT PROGRAMMED
    Cause -- In IRSTOPMESS, the user has failed to respond to $Power--Fail by calling the SYNC() function.
    Monitor -- During power failure.
    Effect -- None.
    Remedy -- Correct the application program.

    So does this mean that not calling SYNC() in ir_stopm has no effect? I find it hard to believe that kuka would have said message be displayed if SYNC() doesn't do anything.

    It appears that SYNC( ) is called within my my ir_stopm.src file:

    Code
    &ACCESS  R
    &COMMENT HandlerOnRobotFault
    DEF  IR_STOPM ( )
      ;---------------------------------
      ; Error Handling ROBOT CONTROLER  
      ; Switch OFF and Switch ON process
      ;---------------------------------
      ;FOLD DECLARATIONS;%{PE}%V3.2.0,%MKUKATPBASIS,%CINIT,%VCOMMON,%P
      ;FOLD USER DECL;%{PE}%V3.2.0,%MKUKATPBASIS,%CINIT,%VCOMMON,%P
      ; Please insert user defined declarations
    
    
      ;ENDFOLD (USER DECL)
      ;FOLD BASIS DECL;%{PE}%V3.2.0,%MKUKATPBASIS,%CINIT,%VCOMMON,%P
      BOOL APPL_RUN_L,TMP_$STOPM
      DECL CHAR ID[3]
      ;ENDFOLD (BASIS DECL)
      ;ENDFOLD (DECLARATIONS)
      ;FOLD INIT;%{PE}%V3.2.0,%MKUKATPBASIS,%CINIT,%VCOMMON,%P
      ;FOLD BASIS INIT;%{PE}%V3.2.0,%MKUKATPBASIS,%CINIT,%VCOMMON,%P
      INTERRUPT OFF 3
      STOPM_FLAG=TRUE
      ID[]="CTL"
      IF $STOPMESS==TRUE THEN
        BRAKE
      ENDIF
      ;ENDFOLD (BASIS INIT)
      ;FOLD USER INIT;%{E}%V3.2.0,%MKUKATPBASIS,%CSPS,%VAUTOEXT,%P
      ; Please insert user defined initialization commands
    
    
      ;ENDFOLD (USER INIT)
      ;ENDFOLD (INIT)
    
    
      ;FOLD TOUCH STOP;%{E}%V3.2.0,%MKUKATPTS,%CSTOP,%VSTOP,%P
      IF H70_OPTION THEN
        IF (FG_ON_WORK AND ($OV_PRO==0)) THEN
          H70 (4,CD0 )
        ENDIF
      ENDIF
      ;ENDFOLD (TOUCH STOP)
      ;FOLD ARC10 STOP;%{E}%V3.2.0,%MKUKATPARC,%CSTOP,%VSTOP,%P
      IF A10_OPTION==#ACTIVE THEN
        A10(#IR_ERROR)
      ENDIF
      ;ENDFOLD (ARC10 STOP)
      ;FOLD ARC20 STOP;%{E}%V3.2.0,%MKUKATPA20,%CSTOP,%VSTOP,%P 
      IF ARC20==TRUE THEN
        A20 (TECH_STOP1 )
      ENDIF
      ;ENDFOLD (ARC20 STOP)
      ;FOLD USER STOP;%{E}%V3.2.0,%MKUKATPUSER,%CSTOP,%VSTOP,%P
      ;Make your modifications here
    
    
      ;ENDFOLD (USER STOP)
      ;FOLD BASIS STOP;%{E}%V3.2.0,%MKUKATPBASIS,%CSTOP,%VSTOP,%P
      IF $STOPMESS==TRUE THEN
        TMP_$STOPM=TRUE
        P00 (#EXT_ERR,#PGNO_GET,ID[],128 )
        APPL_RUN_L=FALSE
    
    
        IF (APPL_RUN>0) THEN
          IF $OUT[APPL_RUN] THEN
            APPL_RUN_L=TRUE
            $OUT[APPL_RUN]=FALSE
          ENDIF
        ENDIF
    
    
        REPEAT
          POWER=SYNC()
          HALT
        UNTIL (($STOPMESS==FALSE) AND ($POWER_FAIL==FALSE))
      ELSE
        TMP_$STOPM=FALSE
      ENDIF
      ;ENDFOLD (BASIS STOP)
    
    
      ;FOLD BASIS RESTART;%{E}%V3.2.0,%MKUKATPBASIS,%CRESTART,%VRESTART,%P
      IF TMP_$STOPM THEN
        P00 (#EXT_ERR,#PGNO_GET,ID[],0 )
    
    
        IF (($MOVE_BCO==FALSE) AND ($ON_PATH==FALSE) AND ( NOT ($MODE_OP==#T1)) AND ( NOT ($MODE_OP==#T2))) THEN
          IF (VARSTATE("$AXIS_RET")==#INITIALIZED) THEN
            PTP  $AXIS_RET
          ENDIF
        ENDIF
        IF APPL_RUN_L THEN
          IF (APPL_RUN>0) THEN
            $OUT[APPL_RUN]=TRUE
          ENDIF
        ENDIF
      ENDIF
      TMP_$STOPM=FALSE
      ;ENDFOLD (BASIS RESTART)
      ;FOLD USER RESTART;%{E}%V3.2.0,%MKUKATPUSER,%CRESTART,%VRESTART,%P
      ;Make your modifications here
    
    
      ;ENDFOLD (USER RESTART)
      ;FOLD ARC10 RESTART;%{E}%V3.2.0,%MKUKATPARC,%CRESTART,%VRESTART,%P
      IF (A10_OPTION==#ACTIVE) THEN
        A10(#IR_RESTART)
      ENDIF
      ;ENDFOLD (ARC10 RESTART)
      ;FOLD ARC20 RESTART;%{E}%V3.2.0,%MKUKATPA20,%CRESTART,%CRESTART,%P 
      IF (ARC20==TRUE) AND B_RESTART THEN
        A20 (13)
      ENDIF
      ;ENDFOLD (ARC20 RESTART)
      ;FOLD ;%{H}
      INTERRUPT ON 3
      STOPM_FLAG=FALSE
      ;ENDFOLD
    END
    Display More
  • panic mode
    Reactions Received
    1,297
    Trophies
    11
    Posts
    13,141
    • September 15, 2017 at 8:42 PM
    • #2

    that is a subroutine, not a command. if you want to see what it does, you need to find it first.

    1) read pinned topic: READ FIRST...

    2) if you have an issue with robot, post question in the correct forum section... do NOT contact me directly

    3) read 1 and 2

  • mbull
    Reactions Received
    2
    Trophies
    3
    Posts
    43
    • September 17, 2017 at 5:26 AM
    • #3
    Quote from panic mode


    that is a subroutine, not a command. if you want to see what it does, you need to find it first.

    I was just referring to it as what Kuka called it in the operator control manual. The thing is, I've already searched the contents of all .src files in the KRC folder and its subdirectories. The only occurrence of SYNC() that I can find is the following within ir_stopm:

    Code
    REPEAT
          POWER=SYNC()
          HALT
    UNTIL (($STOPMESS==FALSE) AND ($POWER_FAIL==FALSE))
  • Fubini
    Reactions Received
    283
    Trophies
    9
    Posts
    1,905
    • September 18, 2017 at 7:53 AM
    • #4

    SYNC() is a internal function (like FORWARD(), INVERSE(), ABS(), ATAN2(), ... ), so you will not find it in any source files. It is used for necessary internal synchronisations concerning power outage. So do not bother about ist.

    Fubini

  • matthiasjosef
    Trophies
    2
    Posts
    4
    • July 6, 2021 at 2:48 PM
    • #5
    Quote from Fubini

    SYNC() is a internal function (like FORWARD(), INVERSE(), ABS(), ATAN2(), ... ), so you will not find it in any source files. It is used for necessary internal synchronisations concerning power outage. So do not bother about ist.

    Fubini

    Hello Fubini

    i have the same error message since today.

    i was working for weeks with my krc1 robot and all my programs worked fine. since today every time when i start a program "SYNC()--CALL NOT PROGRAMMED" appears and after a minute the controller shuts down and boots again.

    do you know how to solve this problem?

    best,

    Matthias

  • the leg
    Reactions Received
    4
    Trophies
    4
    Posts
    643
    • July 7, 2021 at 7:57 PM
    • #6

    possible motherboard issue that's the pc rebooting and the sync () is the power down function i believe

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
  • krc5
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • 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
  • krc5
  • KRL
  • KUKA
  • motoman
  • Offset
  • PLC
  • PROFINET
  • Program
  • Programming
  • RAPID
  • 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