Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Bit - property of object PmVar

Description:
Value of one bit of the variable.

This property is obsolete, it is not functional in JavaScript language and therefore it is recommended to replace it by calling methods: GetBit / SetBit.

Syntax:
Long Bit(Long nIndex)
Calling:
when read bit:
n = oData.Item(1).Bit(index)
when write to bit:
oData.Item(1).Bit(index) = n
Parameters:
nIndex(Long) Bit index (zero-based index).
Values:
1 - bit is set
0 - bit is reset
Note:
Property access for read and write. The property returns the value of the Integer type instead of Boolean one because the experience shows it more practical in this case.
See also:
PROMOTIC 9.0.7 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice