
Chapter 21 Vision Control (Option)
21-5
Related Terms
CAMIN, VISSTATUS
Example
CAMMODE 1, 0, 0 'Sets the function of camera 1 to normal and sets the storage
'method to frame.
I1 = VISSTATUS(0) 'When normal, I1=0
IF I1 = 0 THEN
CAMIN 1 'Converts an image from camera 1 with table 0 (with the same
'brightness as of the camera image) and stores it in storage
'memory 0.
VISPLNOUT 0 'Outputs an image (still image) in storage memory 0 on the
'monitor.
VISLOC 10, 10 'Sets the position to display.
VISPRINT “Reading normal”
'Displays characters on the screen.
ELSE
VISLOC 10, 10 'Sets the position to display.
VISPRINT “camera malfunction”
'Displays characters on the screen.
END IF
Commenti su questo manuale