1256 User Manual Publication No. 980855 Rev. A
Digital Module Operation 7-6
EADS North America Test and Services
of which is in the range 0 to 255. The number of data bytes in the
<data list> must agree with the number of ports specified in the
<port list>.
Examples of this command are shown below.
Output the data value 38 decimal to port 0 of module 7:
:DIG:OUTP (@7(0)),38
Output data value 55 hex (= 85 decimal) to port 0 and AA hex (=
170 decimal) to port 3 of module 7:
:DIG:OUTP (@7(0,3)),#H55,#HAA
Output the value 0 to port 0, 1 to port 1, 2 to port 2, and so on.
Data is output to each of the 12 ports on the module whose name
has been defined as “digio”:
:DIG:OUTPUT(@digio(0:11)),0,1,2,3,4,5,6,
7,8,9,10,11
Output the value 1 to port 5 of module 7; output 2 to port 11 of
module 7, and output 3 to port 4 of module 8:
DIGITAL:OUTPUT (@7(5,11),8(4)),1,2,3
The DIGITAL:INPUT? query is used to read data from the port.
The <port list> specifies which ports will be read. The reply to this
query is a comma-separated list of values, one per port. Data are
returned in decimal values.
Examples of this query are shown below.
Read data from port 4 of module 7, and return the data in the reply.
An example of the reply is “37":
DIG:INPUT? (@7(4))
Read data from ports 1 through 6 (in reverse order) from the 1260-
114 or 1260-114C with module address 11:
DIGITAL:INPUT? (@11(6:1))
An example reply is:
38,44,255,0,94,77
which indicates that port 6 read a value of 38, port 5 read a value
of 44, port 4 read a value of 255, and so on.
When data is read from an enabled output port, the data should
equal the last value written to that port using the
DIGITAL:OUTPUT command.
Using the
The syntax for the synchronous mode commands is shown below:
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com