Plc Commands - Omron CX-SUPERVISOR - SCRIPT REFERENCE REV2.0 Reference Manual

Script language
Table of Contents

Advertisement

OMRON
Typical Example
PointName="Testpoint"
Exists=PointExists(PointName)
The Boolean point 'Exists' is set to 'TRUE' if a point called 'TestPoint' exists.
Note:
"PointName" is a text point which can be set to any string value.
SetBit
Syntax
returnstate = SetBit(pointname,bit,value)
Remarks
Argument
returnstate
pointname
value
Typical Example
testpoint = 0;
SetBit(testpoint,4,TRUE)
The point 'testpoint' contains the value 16.

PLC Commands

ClosePLC
Syntax
returnstate = ClosePLC("plcname")
Revision 2.0
Type
bool
Returnstate is '1' if the function is successful, or '0' otherwise.
integer/
This is the name of the point to set the bit for. Indirection or
real
point arrays may be used.
bit
integer
This specifies the bit to set.
bool
This specifies the value to set the bit to.
CHAPTER 6 – Functions and Methods
Description
Page 65

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 2.0

Table of Contents