Download Print this page

Omron NS Reference Manual page 28

Hide thumbs Also See for NS:

Advertisement

Section2 Functions
NS series Macro Reference
BITSET
Applicable versions
Format
Function
Return Value
Example
Writes (0/1) to multiple bit addresses in the PT memory
System Version 6.2 or higher
BITSET(D, c, n)
Writes c(0/1) for n-bit data from bit address D in the PT memory ($B/$HB).
D: Starting address
c: Set value (0/1)
n: Number of elements to write
1 to 32768 ($B)
1 to 8192 ($HB)
None
-
Writing 1 to 10 bits from $B100 ($B100 to $B109)
BITSET($B100, 1, 10);
-
Writing 1 to 10 bits from $B100 ($B100 to $B109)
$HB100=1;
$W200=10;
BITSET($B100, $HB100, $W200);
8

Advertisement

loading

This manual is also suitable for:

Ns-series