Write Command - Racal Instruments 1260-14C Manual

1260 vxi switching card, open collector digital i/o module
Table of Contents

Advertisement

WRITE command

Module Specific Syntax 3-20
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Example 3:
Assume the user sends the following two statements to the
module and the current value of port 0 is a binary 00000000:
SETUP 1.WR 0,X,H3;H1,L3;H5,H7
The first SETUP statement will first clear the buffer for port 0, then
specify that bit 3 will go high in vector 1, bit 1 will go high and bit 3
will go low in vector 2, and bits 5 and 7 will go high in vector 3.
The second SETUP statement will leave the buffer intact and will
specify that in vector 4, bits 1 and 7 will go low. Once the test is
armed, port 0 would be actively driving a binary 00001000 after the
first clock, a 00000010 after the second, a 10100010 after the third
and a 00100000 after the last clock.
Syntax:
Byte: WR[ITE] <address>.<ports>[,Y][,<byte>,...,
<byte>]
Word:
WR[ITE] <address>.<ports>[,W][,<word>,...,
Bit:
WR[ITE] <address>.<ports>[,X][,<bits>;.....;<bits>]
<address>::= Module address of the 1260-14C (1-12)
<ports>::=
One or more consecutive ports to write to. A
single port is specified as a decimal number from 0 to 11.
A group of ports is specified as two decimal numbers from
0 to 11 separated by a hyphen, (-), with the least significant
port to the right and the most significant port to the left.
For example, the command WR 1.3-5,Y,0,1,2 would write a
0 in port 3, a one in port 4 and a 2 in port 5. Data may be
specified in decimal, hexadecimal or binary.
<byte>::=
An 8-bit value specified as either decimal
format (0-255), hexadecimal format (H0-HFF) or binary
format (B0-B11111111). Note that the "H" is required in
front of hex values and the "B" is required in front of binary
values.
<word>::=
A 16-bit value specified in either decimal
format (0-65535), hexadecimal format (H0-HFFFF) or
binary format (B0-B1111111111111111). Note that the "H"
is required in front of hex values and the "B" is required in
front of binary values.
<bits>::=
Specifies up to eight single bit transitions in
User Manual 1260-14C
SETUP 1.WR 0,L1,L7
<word>]

Advertisement

Table of Contents
loading

Table of Contents