Section 7: Command reference
Models 707B and 708B Switching Matrix Reference Manual
7-66
707B-901-01 Rev. A / August 2010
Also see
(on page 7-55)
(on page 7-56)
digio.writeprotect
This attribute describes the write-protect mask that protects bits from changes from the
digio.writebit()
and
digio.writeport()
functions.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (RW)
Yes
System reset
Create configuration script
0
Usage
mask = digio.writeprotect
digio.writeprotect = mask
mask
Sets the value that specifies the bit pattern for write-protect
Details
Bits that are set to one cause the corresponding line to be write-protected.
The binary equivalent of
mask
indicates the mask to be set for the I/O port. For example, a mask value of 7 has a
binary equivalent of
00000000000111
. This mask write-protects Lines 1, 2, and 3.
Example
digio.writeprotect = 15
Write-protects Lines 1, 2, 3, and 4
Also see