
5 Script Coding Examples
20-56
WindO/I-NV4 User’s Manual
●
Drawing
Script
Operation description
Draws a line connecting the start coordinates X=20, Y=20 and the end coordinates X=60, Y=60 on the screen where
the script is running. The line has a line width of 3 (3 pixels), line type of 1 (solid line), and line color of 20 (red).
Script
Operation description
Draws a line connecting the start coordinates X=0, Y=0 and the end coordinates X=150, Y=100 on the screen where
the script is running. The line width, line type, and line color have been omitted, so the line's line width is 1 (1 pixel),
the line type is 1 (solid line), and the line color is 255 (white).
Script
Operation description
Draws a rectangle with the start coordinates (the coordinates of the rectangle's upper-left corner) X=20, Y=20 and
the end coordinates (the coordinates of the rectangle's lower-right corner) X=100, Y=60 on the screen where the
script is running. The rectangle's line width is 1 (1 pixel), line type is 2 (dotted line), foreground color is 24 (green),
background color is 22 (yellow), pattern is 13 (tint), rounding type is 2 (curve), and rounding radius is 5 (5 pixels).
Script
Operation description
Draws a rectangle with the start coordinates (the coordinates of the rectangle's upper-left corner) X=0, Y=0 and the end
coordinates (the coordinates of the rectangle's lower-right corner) X=150, Y=100 on the screen where the script is
running. The line width, line type, foreground color, background color, pattern, rounding type, and rounding radius are
omitted, so the rectangle's line width is 1 (1 pixel), line type is 1 (solid line), foreground color and background color is
255 (white), pattern is 0 (none), rounding type is 0 (none), and rounding radius is 0 (0 pixels).
Script
Operation description
Draws a circle with the center coordinate X=100, Y=100, the X-axis radius 60 pixels, and the Y-axis radius 60 pixels.
The circle's line width is 1 (1 pixel), line type is 2 (dotted line), foreground color is 26 (light blue), background color is
0 (black), and pattern is 4 (foreground 50%).
Script
Operation description
Draws an ellipse with the center coordinate X=100, Y=100, the X-axis radius 80 pixels, and the Y-axis radius 40 pixels.
The line width, line type, foreground color, background color, and pattern are omitted, so the ellipse's line width is 1 (1
pixel), line type is 1 (solid line), foreground color and background color is 255 (white), and pattern is 0 (none).
■
Example 5.7.30
Draw a line
LINE(20, 20, 60, 60, 3, 1, 20);
■
Example 5.7.31
Draw a line (omitting arguments)
LINE(0, 0, 150, 100);
■
Example 5.7.32
Draw a rectangle
RECTANGLE(20, 20, 100, 60, 1, 2, 24, 22, 13, 2, 5);
■
Example 5.7.33
Draw a rectangle (omitting arguments)
RECTANGLE(0, 0, 150, 100);
■
Example 5.7.34
Draw a circle or ellipse
CIRCLE(100, 100, 60, 60, 1, 2, 26, 0, 4);
■
Example 5.7.35
Draw a circle or ellipse (omitting arguments)
CIRCLE(100, 100, 80, 40);
Содержание MICRO/I HG4G-CJT22 F-B Series
Страница 1: ...B 1701 11 User s Manual ...
Страница 26: ...Preface 25 WindO I NV4 User s Manual ...
Страница 50: ...1 WindO I NV4 Specifications 2 18 WindO I NV4 User s Manual Baltic Font ANSI 1257 Cyrillic Font ANSI 1251 ...
Страница 106: ...5 WindO I NV4 Common Operations and Settings 2 74 WindO I NV4 User s Manual ...
Страница 254: ...7 BACnet Communication 3 148 WindO I NV4 User s Manual ...
Страница 362: ...5 Screen Restrictions 5 28 WindO I NV4 User s Manual ...
Страница 402: ...3 Text 7 30 WindO I NV4 User s Manual ...
Страница 574: ...9 Potentiometer 8 172 WindO I NV4 User s Manual ...
Страница 1052: ...4 Using the Data 15 22 WindO I NV4 User s Manual ...
Страница 1170: ...6 Important Notes 20 60 WindO I NV4 User s Manual ...
Страница 1200: ...5 Restrictions 22 18 WindO I NV4 User s Manual ...
Страница 1260: ...5 Editing User Accounts on the MICRO I 23 60 WindO I NV4 User s Manual ...
Страница 1286: ...4 Clear 24 26 WindO I NV4 User s Manual 4 Click Yes 5 Click Close This concludes clearing data ...
Страница 1288: ...4 Clear 24 28 WindO I NV4 User s Manual 6 Click Yes 7 Click Close This concludes clearing data on the external memory device ...
Страница 1322: ...2 Monitoring on the MICRO I 25 28 WindO I NV4 User s Manual ...
Страница 1414: ...4 E mail Function 28 66 WindO I NV4 User s Manual ...
Страница 1554: ...3 Settings 34 14 WindO I NV4 User s Manual ...
Страница 1642: ...2 Handling Problems 36 6 WindO I NV4 User s Manual ...
Страница 1652: ...5 Text Alignment A 10 WindO I NV4 User s Manual ...
Страница 1664: ...Index 12 WindO I NV4 User s Manual ...