Denso RC5 Specifications Page 574

  • Download
  • Add to my manuals
  • Print
  • Page
    / 692
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 573
21-22
WINDREF (Function)
Function
Obtains window information.
Format
WINDREF (<window number>, <Item>)
Explanation
This statement designates the window number with <Window number>(0 to
511).
Designates the number to obtain the data with <Item>(0 to 7).
Item number 0: Presence of the
Item number 0: window setting
Return value Present = 0
Not present = -1
Item number 1: Window shape Return value
(Refer to the table below.)
Item number 2: Window reference point X coordinates
Item number 3: Window reference point Y coordinates
Item number 4~9: Window’s each
Item number 4~9: setting data
Return value for each setting
data (Refer to the table below.)
Item
Window shape1456789
Line (2 Point
Designation)
0 Start Point X
Coordinate
Start Point Y
Coordinate
End Point X
Coordinate
End Point Y
Coordinate
-1 -1
Line (Length and Angle
Designation)
1 Length Angle -1 -1 -1 -1
Circle 2 Radius -1 -1 -1 -1 -1
Ellipse 3 Width Height -1 -1 -1 -1
Sector 4 Outer
diameter
Inner
diameter
Start angle End angle Partition
angle
Mode
Rectangle 5 Width Height Angle Mode -1 -1
Note (1): If nothings is set,
a return value of -1 is set as the default.
Note (2): Data obtained is not the initially set data but the current set
data.
Note (3): To execute this instruction,
a µ
µµ
µVision board (option) is
required.
Related Terms
WINDMAKE
Example
VISSCREEN 1, 0, 1'
VISCLS 0 '
VISCAMOUT 1 '
WINDMAKE R, 1, 50, 100, 0, 2'
FORI1=0TO7 '
FOR I2 = WINDREF(1, I1) 'Obtains window number 1 data.
FOR VISLOC 0, I1 'Sets the display position.
FOR VISPRINT “Data”;I1;“=”;I2 'Displays the window.
NEXT I1 '
Page view 573
1 2 ... 569 570 571 572 573 574 575 576 577 578 579 ... 691 692

Comments to this Manuals

No comments