Setbit; Plc Commands; Closeplc - Omron CX-Supervisor Reference Manual

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

Advertisement

PLC Commands

Note:

6-5-16 SetBit

6-6
PLC Commands
6-6-1

ClosePLC

Argument
Type
pointname
string
returnpoint
point
Typical Example
PointName="Testpoint"
Exists=PointExists(PointName)
The Boolean point 'Exists' is set to 'TRUE' if a point called 'TestPoint' exists.
"PointName" is a text point which can be set to any string value.
Syntax
returnstate = SetBit(pointname,bit,value)
Remarks
Argument
Type
returnstate
bool
pointname
integer/
real
bit
point
value
bool
Typical Example
testpoint = 0;
SetBit(testpoint,4,TRUE)
The point 'testpoint' contains the value 16.
Syntax
returnstate = ClosePLC("plcname")
Remarks
Argument
Type
returnstate
bool
plcname
string
Typical Example
ClosePLC("controlPLC")
SECTION 6 Functions and Methods
Description
pointnamestringThis text contains the point
name.
Boolean point that contains the return value.
Description
Returnstate is '1' if the function is successful, or
'0' otherwise.
This is the name of the point to set the bit for.
Indirection or point arrays may be used.
This specifies the bit to set.
This specifies the value to set the bit to.
Description
Returnstate is '1' if the function is successful, or
'0' otherwise.
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".
67

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 3.1

Table of Contents