Isalarmactive; File Commands; Closefile - Omron CX-Supervisor Reference Manual

Script language reference
Hide thumbs Also See for CX-Supervisor:
Table of Contents

Advertisement

File Commands

6-8-11 IsAlarmActive

6-9
File Commands
6-9-1

CloseFile

Note:
Typical Example
acknowledged = IsAlarmAcknowledged("temptoohigh")
The point 'acknowledged' is assigned Boolean state ''TRUE'' if the
'temptoohigh' alarm is currently acknowledged. The point is assigned Boolean
state 'FALSE' if the alarm is not currently acknowledged.
References
Refer to the CX-Supervisor User Manual for details of alarms.
Syntax
pointname = IsAlarmActive("alarmname")
Remarks
Argument
Type
pointname
bool
point
alarmname
string
Typical Example
active = IsAlarmActive("temptoohigh")
The point 'active' is assigned Boolean state ''TRUE'' if the 'temptoohigh' alarm
is currently active. The point is assigned Boolean state 'FALSE' if the alarm is
not currently active.
References
Refer to the CX-Supervisor User Manual for details of alarms.
Syntax
returnstate = CloseFile(pointname)
Remarks
Argument
Type
returnstate
bool
pointname
bool
Typical Examples
CloseFile(status)
The currently open file is closed. Blank spaces at the end of each line are
stripped from the file if the Boolean point 'status' is set to 'TRUE'.
CloseFile(FALSE)
If blank spaces are stripped from the file, then it greatly reduces in size but it
takes slightly longer to close. Blank spaces should not be stripped from the file
if it is being used on a network drive by more than one system at a time.
In this example, the currently open file is closed and any blank spaces are not
stripped from the file.
SECTION 6 Functions and Methods
Description
The Boolean point name to be assigned a
value based on the test of an active alarm.
The identifier of the alarm.
Description
Returnstate is '1' if the function is successful, or
'0' otherwise.
A Boolean point that holds the required status
of whether blank spaces should be stripped
from the file when it is closed.
79

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 3.1

Table of Contents