Cognex DataMan Communications And Programming Manual page 68

Hide thumbs Also See for DataMan:
Table of Contents

Advertisement

var msg = 'D' + packageID + ',S,W,V';
if (my_decode_results.length == 0)
{
msg += ',?';
output.content = "no result";
}
else
{
for(var i = 0; i < my_decode_results.length; i++)
{
msg += ',' + getFixedPsocId(decodeResults
[i].symbology.id);
switch (my_decode_results[i].symbology.name)
{
}
}
}
packageID = "000000000"; // reset the package id
output.Telnet = output.Serial = msg + '\r\n';
}
Input match string, output from script (30x)
function CommHandler()
{
return {
onConnect: function (peerName)
{
this.expectFramed('\x02', '\x03', 256);
return true;
},
onDisconnect: function ()
{
},
onExpectedData: function (inputString) {
case 'Data Matrix':
case 'PDF417':
msg += encode_base64(my_decode_results
[i].content);
break;
case 'POSTNET':
case 'PLANET':
case 'XYZ OneCode':
case 'Interleaved 2 of 5':
default:
msg += my_decode_results
[i].content;
DataMan Application Development
68

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DataMan and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF