FAQs about TCP ASCII Communication
Questions about Trigger Command
Why Did Mech-MSR Return Only “1” Instead of Measurement Data After a Trigger Command Was Sent?
The trigger command is only used to trigger a project to run. Returning 1 indicates that the project has been triggered successfully and the command execution has completed.
Why Did Mech-MSR Return the Status Code “-1” After a Trigger Command Was Sent?
The returned -1 is an error code indicating that the specified project ID does not exist. For the possible causes and solutions, see Error Codes.
Questions about Return Command
When Can the Return Command Be Sent?
-
Under normal conditions, after sending the
triggercommand and receiving the returned status code1, the TCP client can send thereturncommand to obtain the measurement results and inspection results. -
If the project normally takes more than 10 seconds to run, sending the
returncommand immediately after thetriggercommand may cause a timeout error. In this case, send thereturncommand after an appropriate wait time.
Why Did Mech-MSR Return the Status Code “-2” After a Return Command Was Sent?
The returned -2 is an error code indicating that no result is available.
Possible causes:
-
The
returncommand was sent before the project was triggered to run through thetriggercommand. -
Mech-MSR is running abnormally.
For more information, see Returned Results of Return Command.