Switching Scenes on the Vision Sensor The following describes a program that switches the scene to a Camera Calibration AOS scene. Acquiring the Camera Status from the 3D Vision Sensor The following describes a program that acquires the camera status of the 3D vision sensor and checks if the warmup of the camera is completed. 44 1 Set the scene number of the Camera Calibration AOS as a variable. With the variable set as an argument, execute the scene switching function (fhsample chgscn). _ scene_no = 127 Scene number CALL fhsample_chgscn(socket_no, retry_count, time_out, scene_no, err_no) Scene switching command execution sample function ; Error check IF err_no success THEN TYPE "ERROR:
fhsample_main():Change scene No. failed. Exit :", err_no GOTO 10 END 1 To send the camera status acquisition command to the vision system, set the nonprocedural command name to RBCOM GET CAMERA STATUS and execute the _ _ _ nonprocedural command transmission function (fhrunsendcmd). ;Get Camera Status WHILE warmup_flg == 0 DO $cmd_name = "RBCOM_GET_CAMERA_STATUS" $cmd_arg[0] = "" $cmd_arg[1] = "" $cmd_arg[2] = "" $cmd_arg[3] = "" $cmd_arg[4] = "" cmd_arg_num = 0 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