<< Click to Display Table of Contents >> Navigation: 3. Script Language > Background Operation > IRS. / NRS. - If Result available |
MiniRobotLanguage (MRL)
IRS. Conditional Statement
If Result available
Intention
Conditional Statement.
Test if a specified Parallel-Robot or Background Operation has released a Result.
IRS. does not really check if the Operation is ongoing. It will just check if there is a Result from that "Ticket Number" available.
IRS. will accept only one "Ticket Number" to test for the result. If you want to wait for multiple running Background- or Parallel Robots to finish, use WRS.
IRS. will drop the Result of the Ticket on the Stack, if there is one. Therefore you do not need to call GRS., just take the result from the Stack.
You should anyway call DRS. to Drop the Result, when you do not need it anymore.
NRS. is the negative Form of this statement.
Syntax
IRS.[P1] … ELS. … EIF.
Parameter Explanation
P1 - (optional) Is the "Ticket Number" of a running Parallel Robot or background Operation. It can be omitted then the last "Ticket Number" that was emitted is been taken.
IRS. can be nested to unlimited Depth, and they can also enclose Sub-Programm Calls or FEX. (Enumerations) to unlimited Depth.
Example
'***********************************
' IRS.-Sample
'***********************************
SMP.
SMB.
:retry
IRS.
DBV.Yes, we have the result! its $$000
DRS.
ELS.
PAU.1
GTO.retry
EIF.
ENR.
'***********************************
' NRS.-Sample
'***********************************
SMB.
:Loop
'
NRS.
PAU.0.1
GTO.Loop
EIF.
ENR.
Remarks
-
Limitations:
-
See also:
• ! Smart Package Robot 's Parallel Robot Operations