Package of commands that operate Keyence IV3 cameras using TCP/IP procedures written in GO!
myCamera := Camera {
Location string,
Description string,
IpAddress string,
Port string, //iv3 defaults to port "8500"
Delimiter string, //iv3 defaults to carriage return "\r\n"
}
var programNumber int
var myCamera Camera
var response string
response = ProgramChange(programNumber, myCamera)
//reads response and returns success/unsuccessful
var myCamera Camera
var response string
response = ReadProgramNumber(myCamera)
two more structs are used in the response for this command:
type CameraResult struct {
resultNumber int
totalPassResult bool
toolResult []ToolResult
}
type ToolResult struct {
toolNumber int
toolPassResult bool
matchingRate int
}
Results are returned in the form of a camera result struct made of summary values and individual tool results
var myCamera Camera
var cameraResult CameraResult
cameraResult = TriggerStatusResult(myCamera)
var operating bool
operating = OperatingStatus(myCamera)
//if camera in "run" mode operating == true
//else operating == false or ("program" mode / not operating)