EasyManua.ls Logo

Omron CX-Supervisor - Displaypicture; Playsound; Rand

Omron CX-Supervisor
164 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
Loading...
General Commands SECTION 6 Functions and Methods
56
Typical Example
PlayOLE("ole_1",0)
The object 'ole_1' is played using its primary verb.
6-3-3 DisplayPicture
Description
Reload a picture for a Picture object.
Syntax
returnstate = DisplayPicture("objectname", filename)
Remarks
Typical Example
DisplayPicture("Bitmap_1","C:\Application\Floorplan1.
bmp")
The object "Bitmap_1" will load and display the Floorplan1 bitmap.
DisplayPicture("Bitmap_2", txtFileName)
The object "Bitmap_2" will load and display the file name stored in txtFileName
text point.
6-3-4 PlaySound
Description
Plays a Windows .WAV sound file using the standard Windows sound channel
and Sound Card driver.
Syntax
returnstate = PlaySound("soundfile")
Remarks
Typical Example
PlaySound("c:\noise.wav")
The soundfile "c:\noise.wav" is played.
6-3-5 Rand
Description
Returns a random integer, between 0 and the specified limit.
Syntax
Argument Type Description
returnstate bool Returnstate is '1' if the function is successful, or
'0' otherwise.
objectname string The identifier of the bitmap object with a to be
loaded and displayed
filename string The filename of the bitmap to be displayed.
This can be a constant (inside quotes) or a text
point.
Argument Type Description
returnstate bool Returnstate is '1' if the function is successful, or
'0' otherwise.
soundfile string Path of sound file to be played.

Table of Contents

Other manuals for Omron CX-Supervisor

Related product manuals