EasyManua.ls Logo

Cognex DataMan - Pass Weight String Input Along with Decode String

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...
function onResult (decodeResults, readerProperties, output)
{
//assuming single code
var content = cmf400_protocol_stx+decodeResults[0].content+cmf400_protocol_etx;
output.content = content;
}
Pass weight string input along with decode string
// the constructor:
var input_string = "";
function CommHandler()
{
// private properties and methods:
var num_trigger = 0;
var my_name;
var num_send = 99;
function privFunc ()
{
}
// public properties and methods:
return {
onConnect: function (peerName)
{
my_name = peerName;
num_send = this.send(my_name + ": connected\r\n");
num_send = this.expectFramed("\x02", "\x03", 128);
return true;
},
onDisconnect: function ()
{
},
onExpectedData: function (inputString) {
input_string = inputString;
return true;
},
onUnexpectedData: function (inputString) {
return true;
}
};
}
63
DataMan Application Development

Table of Contents

Other manuals for Cognex DataMan

Related product manuals