VISSCREEN (Statement)


Specify a drawing screen.


VISSCREEN <drawing screen type>, <screen number>[, <drawing mode>]


<drawing screen type>
Specifies the storage memory or overlay memory (screen) (0 or 1).
0: Storage memory (Processing screen)
1: Overlay memory (Draw only screen)
<screen number>
Specifies the screen number
Storage memory (Processing screen): 4 screens, from 0 to 3
Overlay memory (Draw only screen): 2 screens, 0 and 1.
<drawing mode>
Specifies the display drawing method (0 or 1).
0: Instant display OFF
1: Instant display ON
If this is omitted, 1 is set as the default.
  • When you turn ON the power, "VISSCREEN 1, 0, 1" is set as the initial setting.
  • When the system executes the draw instruction with instant display ON, the draw result is displayed on the monitor. However, with instant display OFF, the screen is renewed after the execution of instructions corresponding to the draw object of either VISPLNOUT or VISOVERLAY.
  • With instant draw ON, when the draw instruction is executed, it takes about 0.02 seconds for the system to renew. Therefore, if you frequently repeat drawing, requirement time rapidly accumulates. By setting the instant draw to OFF and displaying all objects once, it is possible to save processing time.
  • For this instruction, a µVision board (option) is required.



VISSCREEN 1,0,1
'Instantaneously draw the drawing screen 0
VISCLS 0
'
FOR I1 = 100 TO 200 STEP 2
'
FOR VISRECT I1,I1,200,200
'Draw a rectangle with a width of 200 and a height of 200
NEXT I1
'
VISCLS 0
'Clear the screen
VISSCREEN 1,0,0
'Draw on drawing only screen 0
FOR I1 = 100 TO 200 STEP 2
'
FOR VISRECT I1,I1,200,200
'Draw a rectangle with a width of 200 and a height of 200
NEXT I1
'
VISOVERLAY 1
'Display (Renew) draw only screen 0 on the monitor


Top