omron — Changing the Calibration Mode of AOS Camera Calibration

The following describes a program that changes the calibration mode of AOS camera calibration to Changing the Calibration Mode of AOS Camera Calibration automatic calibration so that AOS camera calibration can be executed during measurement. 46 2 To receive the response to the calibration date/time comparison result acquisition command from the vision system, execute the numerical sequence receiving function (fhrunrecvval). If the date of calibration of the camera matches the internal date of the FH series, execute the sample program (fhsample main) without executing camera calibration.

_ CALL fhrunrecvval(retry_count, time_out, socket_no, param[], err_no) IF err_no success THEN numerical sequence receiving function GOTO 10 END IF param[0] 0 THEN GOTO 10 END IF param[1] == 1 THEN TYPE "The calibration date and the current date have been matched" TYPE "Calibration is not necessary" GOTO 11 END If calibration is not required, execute the sample program (fhsample main). _ 1 To change the calibration mode of the AOS camera calibration to automatic calibration, set the first nonprocedural command argument $cmd arg[0] to 1.

_ To send the camera calibration mode change command to the vision system, set the nonprocedural command name to RBCOM SET CALIB MODE and execute the _ _ _ nonprocedural command transmission function (fhrunsendcmd). ;Set Calib mode $cmd_name = "RBCOM_SET_CALIB_MODE" Set the camera calibration mode to automatic $cmd_arg[0] = "1" calibration. $cmd_arg[1] = "" $cmd_arg[2] = "" $cmd_arg[3] = "" $cmd_arg[4] = "" cmd_arg_num = 1 CALL fhrunsendcmd(socket_no, cmd_arg_num, $cmd_name, $cmd_arg[], err_no) IF err_no success THEN nonprocedural command transmission function GOTO 10 END