omron — 6.2. Switching Scenes on the Vision Sensor

For a processing to switch scenes on the Vision Sensor, follow the procedures below. 31 6.2. Switching Scenes on the Vision Sensor Set a scene number for the switching destination to a variable. ';;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ' (1) Change the scene of the FH ' You have to select a scene No. ';;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; SET S089 "FHRUNSENDCMD" SET B097 1 SET S090 "SCENE" SET S091 "0" Scene Number SET B098 1 WAIT B098=0 1 Set the scene switching command in the argument of the nonprocedural command transmission function (FHRUNSENDCMD) for the Vision Sensor, execute the function.

SET S089 "FHRUNSENDCMD" Nonprocedural command transmission function SET B097 1 SET S090 "SCENE" Scene Switch Command SET S091 "0" SET B098 1 WAIT B098=0 IFTHENEXP I099 0 JUMP *EXIT ENDIF 2 SET S090 "SCENE" Executes the command response reception function (FHRUNRECVRES) for the Vision Sensor. SET S089 "FHRUNRECVRES" Command response reception function SET B098 1 WAIT B098=0 IFTHENEXP I099 0 JUMP *EXIT ENDIF IFTHENEXP R090 1 JUMP *EXIT ENDIF 3