Perform Jogging by WebSockets

Hello,

I try to do http://localhost/rw/motionsystem?action=jog and get following message:

-1073436652
rws_resource_motionsystem.cpp[405] Change count mismatch code:-1073436652 icode:-1073436652

Robot error list:

  • SYS_CTRL_E_HPJ_CHANGE_COUNT_MISMATCH **-1073436652** Error Change count mismatch.

    Could you clarify what does Change count mismatch mean?

  • Check out this forum post:
    https://forums.robotstudio.com/discussion/12180/how-to-get-started-with-robot-web-services-and-jog-a-robot-via-rest-api-requests#latest

    "
    https://developercenter.robotstudio.com/api/rwsApi/ms_motionsystem_get_page.html

    “change_count = counter to keep count for every change in the motion system(domain)”

    We need to find the correct change count which we need to send to the controller with the jog request.

    So first we GET this resource: http://localhost/rw/motionsystem?resource=change-count

    This will return a 0 which is the value we use in the jog request.
    "