EasyManua.ls Logo

Cognex DataMan - Page 66

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...
case 'C':
var match = config_msg_expr.exec(input);
if (match.length == 4)
{
speed = parseInt(match[1], 10);
mode = match[2];
lengthLimit = parseInt(match[3],
10);
}
break;
case 'P':
this.send('Q\r\n');
break;
case 'Q':
// pong response, not used
break;
}
return true;
},
onUnexpectedData: function (input) {
return true;
}
};
}
The data formatting formats the result based on global variables set by the communication handler:
var packageID = "000000000"; // reset the package id
var mode = 'a';
var lengthLimit = 9999;
function getFixedPsocId(id_)
{
var id = id_;
switch (id.charAt(1))
{
case 'd':
id = "[D0";
break;
case 'X':
switch (id.charAt(2))
{
66
DataMan Application Development

Table of Contents

Other manuals for Cognex DataMan

Related product manuals