RobotStudio event

ResultSpec - Resolved [WebWare SDK]

Hi!

I tried some S4 commands and did not find out, what that ResultSpec parameter does.

Could someone provide detailed informations?

fe. S4Dump(DirName,ResultSpec,ResultID) as Integer

thx

mathric38400,5316666667
--------
01000111

Comments

  • Hello,

    Here's an excerpt from the SDK Help. Basically you enter a value from 0 to 3, depending on your needs. If you for instance want to use the S4Backup method, and want to make sure that the backup is actually fully completed before you do something else in your code, you would probably want to use 3 as a ResultSpec value.

    ______________________________
    Anders Dannberg
    ABB Automation Technologies
    Support Engineer

    When an application method cannot be serviced immediately because it must communicate with the S4 controller, the caller is provided a mechanism to control how the result of the method execution is returned to the calling program. There is a integer parameter called ResultSpec included in these methods that is used to specify how this is done.

    The supported result specifications values are as follows:

    0 - NO_NOTIFY: The function immediately returns to the caller after the pulse request has been queued and no result is returned to the caller after the function has executed.

    1 - NOTIFY_IF_ERROR: The function immediately returns to the caller after the pulse request has been queued and a RequestComplete event is triggered only if the function encounters an error during its execution.

    2 - NOTIFY: The function immediately returns to the caller after the pulse request has been queued and a RequestComplete event is triggered after the pulse has been completed.

    3 - WAIT: The function does not return control to the caller until the pulse has been completed. This form should be used when the execution order is important. This is ideal when the timing of several methods being called needs to be control e.g. performing a spot weld.