PROGRAMMABLE DIGITAL I/O CHANNELS
MTS-1700 SERIES OPERATION AND REFERENCE MANUAL A-5
CU A002 15A
MANTA TEST SYSTEMS
•
In all cases, leading zeros may be printed
•
The default output format is decimal (base 10)
•
This command doesn’t affect the format in which values in DIO commands
are specified.
DIO,STA
Digital I/O status
•
Prints digital I/O port status and error byte
•
A value of 0 indicates no warnings and errors are active
•
The value returned will range from 0-255 (in decimal), and should be
interpreted as an 16 bit value to determine the errors. A 1 in a bit position will
indicate an error.
The bit position assignments are as follows:
Bit# Error
0
Input channel sequence of events recorder memory full
1
Timer overflow (65535ms maximum limit)
2
Conditional output table overflow
3
Output channel sequence of events recorder memory full
4-15
not used
A.6.4 Digital Input Control
Command
Description
DIO,STR#
Start trigger channel select
•
First parameter specifies the channel
Values of 0-6 select channels 0-6
Value of 7 disables start trigger (default value)
DIO,STP#
Stop trigger channel select
•
Parameter specifies the channel
Values of 0-15 select channels 0-15
Value of 16 disables the stop trigger (default value)
DIO,INP
Read
inputs
•
Reads status of all 16 inputs and returns 16 bit result
•
Example: (assuming hex format initially selected)
Ready>DIO,INP
0F29
Ready>DIO,FMT1
Ready>DIO,INP
0000111100101001
Ready>