![IDEC SmartAXIS Touch FT1A Series User Manual Download Page 919](http://html.mh-extra.com/html/idec/smartaxis-touch-ft1a-series/smartaxis-touch-ft1a-series_user-manual_617387919.webp)
SmartAXIS Touch User’s Manual
20-49
5 Script Coding Examples
20
Scr
ipt
●
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).
*2 HMI function only
■
Example 5.7.33
Draw a line
LINE(20, 20, 60, 60, 3, 1, 20);
■
Example 5.7.34
Draw a line (omitting arguments)
LINE(0, 0, 150, 100);
■
Example 5.7.35
Draw a rectangle
RECTANGLE(20, 20, 100, 60, 1, 2, 24, 22, 13, 2, 5);
■
Example 5.7.36
Draw a rectangle (omitting arguments)
RECTANGLE(0, 0, 150, 100);
■
Example 5.7.37
Draw a circle or ellipse
CIRCLE(100, 100, 60, 60, 1, 2, 26, 0, 4);
■
Example 5.7.38
Draw a circle or ellipse (omitting arguments)
CIRCLE(100, 100, 80, 40);
Summary of Contents for SmartAXIS Touch FT1A Series
Page 1: ...FT1A Series FT9Y B1390 4 SmartAXIS Touch User s Manual ...
Page 22: ...Contents Preface 21 SmartAXIS Touch User s Manual ...
Page 240: ...6 Using Library Screens 4 36 SmartAXIS Touch User s Manual ...
Page 416: ...2 Multi State Lamps 8 26 SmartAXIS Touch User s Manual ...
Page 558: ...9 Calendar 9 142 SmartAXIS Touch User s Manual ...
Page 668: ...6 Timer 11 52 SmartAXIS Touch User s Manual ...
Page 754: ...4 Using Data and Detected Alarms 13 34 SmartAXIS Touch User s Manual ...
Page 792: ...4 Using the Data 14 38 SmartAXIS Touch User s Manual ...
Page 810: ...4 Using the Data 15 18 SmartAXIS Touch User s Manual ...
Page 870: ...3 Text Manager 19 16 SmartAXIS Touch User s Manual ...
Page 924: ...6 Important Notes 20 54 SmartAXIS Touch User s Manual ...
Page 1036: ...5 User Communication 22 74 SmartAXIS Touch User s Manual ...
Page 1092: ...2 Monitoring on the Touch 24 26 SmartAXIS Touch User s Manual ...
Page 1142: ...2 Word Devices 27 18 SmartAXIS Touch User s Manual ...
Page 1186: ...2 Analog Cartridge 29 34 SmartAXIS Touch User s Manual ...
Page 1194: ...3 Handling Problems 30 8 SmartAXIS Touch User s Manual ...