OMRON
CHAPTER 6 – Functions and Methods
Revision 2.0
Page 47
The object ‘POLYLINE_8’ is made visible provided Integer point ‘count’ AND Boolean point ‘flag’
return ‘‘TRUE’’.
Width
Syntax
objectname.width (expression, context)
Remarks
Argument Description
objectname
This is the name of the object. Where a script is directly attached to an
object,
objectname
is not required.
expression
This is a value, point or an arithmetic expression returning a new width value
in pixels.
context
This argument may be omitted. May be one of:
@LEFT – use left of object as datum.
@CENTRE – use centre of object as datum.
@RIGHT – use right of object as datum.
If omitted, @CENTRE is assumed.
Typical Examples
width (150)
The width of the current object is set to 150.
LINE_1.width (squeeze/offset, @RIGHT)
The width of object ‘LINE_1’ is changed to the value calculated by points ‘squeeze’ and ‘offset’,
keeping the rightmost point fixed.
Page Commands
Display Page
Syntax
display ("pagename")
or
display ("pagename", X, Y)
Summary of Contents for CX-SUPERVISOR - SCRIPT REFERENCE REV2.0
Page 2: ...CX Supervisor Script Language Software Revision 2 0...
Page 3: ......
Page 5: ...CX Supervisor Script Language OMRON Page ii Revision 2 0...
Page 7: ...CX Supervisor Script Language OMRON Page iv Revision 2 0...
Page 9: ...CX Supervisor Script Language OMRON Page vi Revision 2 0...
Page 13: ......
Page 15: ...CHAPTER 1 Introduction OMRON Page 2 Revision 2 0...
Page 19: ...CHAPTER 2 Expressions OMRON Page 6 Revision 2 0...
Page 21: ...CHAPTER 3 Scripts OMRON Page 8 Revision 2 0...
Page 151: ...CHAPTER 8 Colour Palette OMRON Page 138 Revision 2 0...