IDEC High Performance Series User Manual

Page 986

Advertising
background image

4 Script Definition Method

20-22

WindO/I-NV2 User’s Manual

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 LSD 53 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.

• 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
.

LINE(

,

,

,

)

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).

: 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.

RECTANGLE(

,

,

,

)

a

b

c

d

e

f

g

a

b

c

d

e

f

g

e

f

g

e

Set value

1

2

3

5

Line width

1 dot

2 dots

3 dots

5 dots

f

Set value

1

2

3

4

5

6

Line type

Solid

Dot

Dash Long Dash

Long Dash

Dot

Long Dash

Dot Dot

g

a

b

c

d

a

b

c

d

e

f

g

h

i

j

k

a

b

c

d

e

f

g

h

i

j

k

e

f

g

h

i

j

k

e

Set value

1

2

3

5

Line width

1 dot

2 dots

3 dots

5 dots

f

Set value

1

2

3

4

5

6

Line type

Solid

Dot

Dash Long Dash

Long Dash

Dot

Long Dash

Dot Dot

g

h

i

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

j

Set value

0

1

2

Line type

None

Straight

Curve

k

a

b

c

d

Advertising
This manual is related to the following products: