Before the function block is enabled, the inputs i_sIPAddress, i_uiPort, i_sUser and i_sPassword should be filled with valid values. If the values are not correct, the function block returns an error.
For Cognex cameras, the default values are:
Port: 23
User: admin
Password: empty string
With the correct parameterization for the camera, the function block connects automatically to the camera. As long as the Telnet connection is established, the output q_xReady is set to TRUE.
While a command is being processed, the output q_xBusy is set to TRUE. When q_xBusy is TRUE, the input i_xExecute is ignored.
You can send other Native Commands to the camera. These commands are specified by the manufacturer of the camera.
Set the command you want to send at i_sNativeCmd, and set the input i_xExecute.
The command is sent directly to the camera. When the function block has received the response , the output q_xDone is set to TRUE. The response of the camera is shown line by line at the output q_sResponse, the complete response is shown at the output q_asMessage.