
Chapter 21 Vision Control (Option)
21-31
VISPTP (Statement)
Function
Draws a line connecting two points on the screen.
Format
VISPTP <Start point X coordinate >, <Start point Y coordinate >, <End point X
coordinate >, <End point Y coordinate >
Explanation
<Start point X coordinate > Designates the start point of the X coordinate of
the line to be drawn.
<Start point Y coordinate > Designates the start point of the Y coordinate of
the line to be drawn.
<End point X coordinate > Designates the end point of the X coordinate of
the line to be drawn.
<End point Y coordinate > Designates the end point of the Y coordinate of
the line to be drawn.
Note (1): The values of the X and Y coordinates are not checked. Even
if they are out of the permissible drawing range, no error will
result.
Note (2): The object screen is the screen set with VISSCREEN.
Note (3): The brightness value for drawing is the same as the
brightness designated with VISBRIGHT.
Note (4): For this instruction, a µ
µµ
µVision board (option) is required.
X axis
axis
(Start X coordinate, start Y coordinate)
(End X coordinate, end Y coordinate)
Related Terms
VISSCREEN, VISBRIGHT
Example
VISPLNOUT 0 'Displays storage memory 0 (processing screen).
VISSCREEN 0,0,1 'Instantaneously draws on processing screen 0.
VISCLS 0 'Clears the screen.
VISBRIGHT 255 'Sets the brightness value for drawing.
FOR I1 = 200 TO 300 '
FOR VISPTP 100,100,200,I1 'Draws a line connecting two points.
NEXT I1 '
Komentáře k této Příručce