Omron CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 Reference Manual page 64

Script language
Table of Contents

Advertisement

OMRON
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.
PlaySound
Description
Plays a Windows .WAV sound file using the standard Windows sound channel and Sound Card
driver.
Syntax
returnstate = PlaySound("soundfile")
Remarks
Argument
returnstate
soundfile
Typical Example
PlaySound("c:\noise.wav")
The soundfile "c:\noise.wav" is played.
Rand
Description
Returns a random integer, between 0 and the specified limit.
Syntax
pointname = Rand(upperlimit)
Remarks
Argument
upperlimit
pointname
Revision 2.0
Type
bool
Returnstate is '1' if the function is successful, or '0' otherwise.
string
Path of sound file to be played.
Type
integer
The maximum negative or positive integer value that the Rand
function can generate.
Integer
Point that contains the integer returned from the Rand function.
point
CHAPTER 6 – Functions and Methods
Description
Description
Page 51

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Cx-supervisor 2.0

Table of Contents