SmartAXIS Touch User’s Manual
20-19
4 Script Definition Method
20
Scr
ipt
Draw
This is a function to draw an object on the screen. Top left corner of the screen is coordinates X=0 and Y=0.
When a device is used as an argument, an object is drawn with the changed value when the value is changed.
However, the object that is already drawn is not erased. To erase the drawn object, overwrite it with the background color.
When an out-of-range value is used as an argument, 5 is stored in the LSD53 and script is halted.
(Continued to next page)
Function
Format
Description
Drawing of
straight line
LINE(
,
,
,
,
,
,
)
Straight line connecting the start coordinate and end coordinate is drawn.
: Start coordinate X,
: Start coordinate Y,
: End
coordinate X,
: End coordinate Y,
: Line width,
: Line type,
: Line color
•
: Line width,
: Line type,
: Line color can be omitted.
• Specification of
: Line width is as follows:
It will be set to 1 (1 dot) when omitted.
LINE(
,
,
,
)
• Specification of
: Line type is as follows.
It will be set to 1 (Solid) when omitted or when the line width is
set to anything other than 1 (1 dot).
•
: Line color is specified by the color data. It will be set to
255 (white) when omitted.
For color data, refer to Appendix “1 Color Number
Correspondence Table” on page A-1.
Drawing of
Rectangle
RECTANGLE(
,
,
,
,
,
,
,
,
,
,
)
Rectangle with left top corner as start coordinate and bottom
right corner as end coordinate is drawn.
: Start coordinate X,
: Start coordinate Y,
: End
coordinate X,
: End coordinate Y,
: Line width,
:
Line type,
: Foreground color,
: Background color,
:
Pattern,
: Rounded corner type,
: Rounded corner radius
•
: Line width,
: Line type,
: Foreground color,
: Background color,
: Pattern,
: Rounded
corner type,
: Rounded corner radius can be omitted.
• Specification of
: Line width is as follows:
It will be set to 1 (1 dot) when omitted.
• Specification of
: Line type is as follows.
It will be set to 1 (Solid) when omitted or when the line width is
set to anything other than 1 (1 dot).
RECTANGLE(
,
,
,
)
•
: Foreground color,
: Background color is specified
by the color data. It will be set to 255 (white) when omitted.
For color data, refer to Appendix “1 Color Number
Correspondence Table” on page A-1.
• Specification of
: Pattern is as follows.
It will be set to 0 (None) when omitted.
• Specification of
: Rounded corner type is as follows.
It will be set to 0 (None) when omitted.
•
: Rounded corner radius is specified with number of dots (0 - 200).
It will be set to 0 (0 dot) when omitted.
Set value
1
2
3
5
Line width
1 dot
2 dots
3 dots
5 dots
Set value
1
2
3
4
5
6
Line type
Solid
Dot
Dash
Long Dash
Long Dash
Dot
Long Dash
Dot Dot
Set value
1
2
3
5
Line width
1 dot
2 dots
3 dots
5 dots
Set value
1
2
3
4
5
6
Line type
Solid
Dot
Dash
Long Dash
Long Dash
Dot
Long Dash
Dot Dot
Set
value
0
2
3
4
7
8
Line
type
None
Foreground
100%
Foreground
25%
Foreground
50%
Background
100%
Horizontal
lines
Set
value
9
10
11
12
13
Line
type
Vertical
lines
Slant
Upwards
Slant
Down-wards
Cross-hatch
Tint
Set value
0
1
2
Line type
None
Straight
Curve
Содержание SmartAXIS Touch FT1A Series
Страница 1: ...FT1A Series FT9Y B1390 4 SmartAXIS Touch User s Manual ...
Страница 22: ...Contents Preface 21 SmartAXIS Touch User s Manual ...
Страница 240: ...6 Using Library Screens 4 36 SmartAXIS Touch User s Manual ...
Страница 416: ...2 Multi State Lamps 8 26 SmartAXIS Touch User s Manual ...
Страница 558: ...9 Calendar 9 142 SmartAXIS Touch User s Manual ...
Страница 668: ...6 Timer 11 52 SmartAXIS Touch User s Manual ...
Страница 754: ...4 Using Data and Detected Alarms 13 34 SmartAXIS Touch User s Manual ...
Страница 792: ...4 Using the Data 14 38 SmartAXIS Touch User s Manual ...
Страница 810: ...4 Using the Data 15 18 SmartAXIS Touch User s Manual ...
Страница 870: ...3 Text Manager 19 16 SmartAXIS Touch User s Manual ...
Страница 924: ...6 Important Notes 20 54 SmartAXIS Touch User s Manual ...
Страница 1036: ...5 User Communication 22 74 SmartAXIS Touch User s Manual ...
Страница 1092: ...2 Monitoring on the Touch 24 26 SmartAXIS Touch User s Manual ...
Страница 1142: ...2 Word Devices 27 18 SmartAXIS Touch User s Manual ...
Страница 1186: ...2 Analog Cartridge 29 34 SmartAXIS Touch User s Manual ...
Страница 1194: ...3 Handling Problems 30 8 SmartAXIS Touch User s Manual ...