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