EasyManuals Logo

IDEC WindO/I-NV4 User Manual

IDEC WindO/I-NV4
1738 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1183 background imageLoading...
Page #1183 background image
WindO/I-NV4 User’s Manual 20-27
4 Script Definition Method
20
Script
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 address 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 HMI Special Data Register LSD53 and script
is halted.
Objects that are drawn with scripts for parts placed on the top layer are not drawn on the top layer.
Example: The Multi-Button is placed on the top layer of a base screen and the script CIRCLE is executed to draw a
circle or ellipse by pressing the Multi-Button
The settings of the script CIRCLE: center coordinate X is 80, center coordinate Y is 120, X-axis radius is
60, Y-axis radius is 60, line width is 1, line type is 1, foreground color is 20, background color is 0, and the
pattern is 2
(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 “Color Data Correspondence
Table” on page A-1.
LINE( , , , )
Display for Base Screen: 1
Draws a circle on the base screen
Type
Multi-Button1
LayerNo.
Object List
Top Layer
Type
Circle
Multi-Button
1
2
LayerNo.
Top Layer
// Script A
CIRCLE(80, 120, 60, 60, 1, 1, 20, 0, 2);
Execute script
Top Layer
Multi-Button
Base Screen: 1
Top Layer
Circle
Base Screen: 1
Draws a circle
a
b
c
d
e
f
g
a
b
c
d
e
f
g
e
f
g
e
Preset Value 1
Line Width 1 dot
2
2 dots
3
3 dots
5
5 dots
f
Preset Value
123 4 5 6
Line Type Solid Dot Dash
Long Dash
Long Dash
Dot
Long Dash
Dot Dot
g
a
b
c
d

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IDEC WindO/I-NV4 and is the answer not in the manual?

IDEC WindO/I-NV4 Specifications

General IconGeneral
BrandIDEC
ModelWindO/I-NV4
CategoryOrganizer
LanguageEnglish