<< Click to Display Table of Contents >> Navigation: 3. Script Language > XML-Parser > XML. - after parse > XML-Parser * XML. (after Parse) |
MiniRobotLanguage (MRL)
XML.Down Open Bracket
XML.dnob
Move position to open bracket in down direction
Intention
This command is used to move the actual position to the next < Open bracket in down direction.
Usage:
' The new position will be in $$ERG
' if nothing found $$ERG=0
XML.dnob|$$ERG
' One Parameter will also work.
XML.dnob
XML.get pos|$$POS
PRT.Actual Position is: $$POS
Syntax
XML.Down Open Bracket[|P2]
Parameter Explanation
P2 - (optional) Variable to return the result, that is the new position or zero,
if nothing was found. . The result is 0 in case nothing was found.
If something was found, the actual position will be set to this new position.
If P2 is omitted the result is been placed on TOS.
Example
'***********************************
'
'***********************************
'Prototype für IML.
$$PRO=Open Bracket
$$TXT=a real Open Bracket
$$XMF=?pfad\SQ_XML.txt
NEF.$$XMF
MBX.File $$XMF was not found!
GTO.enx
EIF.
' Now we are going to parse it
XML.Load File|$$XMF
' We check if there are errors
JIT.Lab_Err
' We get the "actual position" - after parsing.
XML.get pos|$$POS
PRT.Actual Position after Parsing is: $$POS
' Hier gehts los
PRT.------------------------
XML.dnob|$$ERG
XML.get pos|$$POS
PRT.Actual Position is: $$POS
PRT.------------------------
PRT. We are going to Dump these Bytes.
PRT.-------------------------
XML.Dump|($$ERG-5)|($$ERG+5)
PRT.------------------------
MBX.!
:enx
ENR.
'-----------------------------------------------------------
' Error Handler
:Lab_Err
XML.get error|$$ERT
DBP.$$ERT
ENR.
ENR.
This is the result of the sample script:
Remarks
-
Limitations:
-
See also:
• ! Smart Package Robot 's XML-Features
• XML. - eXtended Markup Language