Forceset; Getbit; Initialisearray - Omron CX-Supervisor Reference Manual

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

Advertisement

Point Commands

6-5-10 ForceSet

6-5-11 GetBit

6-5-12 InitialiseArray

The Boolean point 'point1' has its value set to 'FALSE'.
References
Refer to PLC operation manuals for a detailed description of ForceSet, and
ForceReset.
Syntax
returnstate = ForceSet(pointname)
Remarks
Argument
Type
returnstate
bool
pointname
point
Typical Example
ForceSet(point1)
The Boolean point 'point1' has its value set to 'TRUE'.
References
Refer to PLC operation manuals for a detailed description of Force Set, and
Force Reset.
Syntax
returnpoint = GetBit(pointname,bit)
Remarks
Argument
Type
pointname
Integer /
real
bit
integer
returnpoint
bool
Typical Example
pointname = 256;
returnpoint = GetBit(pointname,8)
The point 'returnpoint' contains 'TRUE'.
Syntax
InitArray (arrayname, value)
Remarks
Argument
Type
arrayname
value
SECTION 6 Functions and Methods
Description
Returnstate is '1' if the function is successful, or
'0' otherwise.
Name of point. If the point is an array point
then all elements within the array have the
ForceReset command applied.
Description
This is the name of the point to get the bit value
from. Indirection or point value may be used.
This specifies which bit to get the value of.
This contains the return value 'TRUE' or
'FALSE'.
Description
Name of point array.
Value to set all elements of the array to.
65

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 3.1

Table of Contents