EasyManuals Logo

Omron CX-Supervisor Reference Manual

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
Page #68 background imageLoading...
Page #68 background image
PLC Commands SECTION 6 Functions and Methods
67
Typical Example
PointName="Testpoint"
Exists=PointExists(PointName)
The Boolean point 'Exists' is set to 'TRUE' if a point called 'TestPoint' exists.
6-5-16 SetBit
Syntax
returnstate = SetBit(pointname,bit,value)
Remarks
Typical Example
testpoint = 0;
SetBit(testpoint,4,TRUE)
The point 'testpoint' contains the value 16.
6-6 PLC Commands
6-6-1 ClosePLC
Syntax
returnstate = ClosePLC("plcname")
Remarks
Typical Example
ClosePLC("controlPLC")
Argument Type Description
pointname string pointnamestringThis text contains the point
name.
returnpoint point Boolean point that contains the return value.
Note: "PointName" is a text point which can be set to any string value.
Argument Type Description
returnstate bool Returnstate is '1' if the function is successful, or
'0' otherwise.
pointname integer/
real
This is the name of the point to set the bit for.
Indirection or point arrays may be used.
bit point This specifies the bit to set.
value bool This specifies the value to set the bit to.
Argument Type Description
returnstate bool Returnstate is '1' if the function is successful, or
'0' otherwise.
plcname string Name of PLC to be opened. If the PLC is being
accessed using a communications component,
e.g. the Omron CX-Communications Control
this parameter should be the control name and
PLC name separated by a dot e.g.
"OMRONCXCommunicationsControl.controlPL
C".

Table of Contents

Other manuals for Omron CX-Supervisor

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CX-Supervisor and is the answer not in the manual?

Omron CX-Supervisor Specifications

General IconGeneral
BrandOmron
ModelCX-Supervisor
CategorySoftware
LanguageEnglish

Related product manuals