EasyManua.ls Logo

Cognex DataMan - Page 69

Cognex DataMan
76 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
if (inputString.length >= 11)
{
var new_match_string = inputString.substr(11,
inputString.length);
for (var i = 1; i <= 3; i++) {
dmccSet("DVALID.PROG-TARG", i);
dmccSet("DVALID.MATCH-STRING", new_match_
string);
}
// The following DMCC command resets all statistic values
// the CR reset only a view of them
dmccCommand("STATISTICS.RESET");
}
this.send("DEBUG: "+inputString + "\r\n");
return true;
},
onUnexpectedData: function (inputString) {
return true;
},
onTimer: function (inputString) {
}
};
}
Data formatting delegates output to communication handler objects
var comm_handler = new Array(0);
// Converts read data to all upper case. Single code only.
function onResult (decodeResults, readerProperties, output)
{
output.content = '';
output.SetupTool = decodeResults[0].content;
if (decodeResults[0].decoded) {
for (var i = 0; i < comm_handler.length; i++)
{
comm_handler[i].sendResultTelegram(decodeResults);
}
}
}
69
DataMan Application Development

Table of Contents

Other manuals for Cognex DataMan

Related product manuals