Racal Instruments 1256E Manual page 152

Switching system
Table of Contents

Advertisement

Digital Module Operation 7-6
more ports on the 1260-114 modules.
The <port list> defines which port or ports to be written.
The <data list> is a list of comma-separated numeric values, each
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?
An example reply is:
1256E User Manual
(@11(6:1))
Racal Instruments © 2002

Advertisement

Table of Contents
loading

Table of Contents