Programming Commands
5.5.40. INTERRUPT
The INT command is used to "Interrupt" program execution. In addition to U511 inputs,
this programming command also can be used to program the iSBX-IO48 board.
SYNTAX:
EXAMPLES:
5.5.41. IO (Set/Read 8 X 3 I/O)
This command is used to set or clear bits on the 8 X 3 I/O connector. It is also used to
read an input byte (8 bits). The status of the I/O banks can be ascertained with the
Secondary I/O screen under the Diagnostics menu. Refer to Chapter 3: User Interface.
SYNTAX:
EXAMPLE:
5-52
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
INT board, nLevel, nInputBit, nOnOff, Label
board
Board = 1.
nLevel
Level of interrupt where:
0 = turn off
1 = jump to label (abort all motion)
2 = jump to label (don't abort motion)
3 = jump to label, turn off interrupt, (no abort)
4 = jump to label, turn off interrupt, (abort motion)
nInputBit
Input bit number (0 to 15) 16 IN/8 OUT I/O bus input bit.
Valid iSBX-IO48 Input Bit ($000 to $127).
Input bit number (16 to 39) 8 X 3 I/O bus input bit.
nOnOff
0 = int when nInputBit low
1 = int when nInputBit high
Label
Label to jump to on interrupt.
INT 1,1,0,0,:turnoff
;Interrupt on board 1, input 0. Jump to :turnoff when input
;bit 0 goes from high to low. Abort all motion
INT 1,4,8,1,:exit
;Interrupt on board 1, input 8. Jump to :exit when input bit
;8 goes from low to high
INT 1,0,10
;turn off int for board 1, input 10
IOport value
IOport bit#, 0/1,...
port
Bank of 8 X 3 I/O connector, 0-2.
value
Specifies the 8 bit output data 0-255 or 0xFF.
bit#
Specifies the bit number that is affected.
IO0 0,1,1,1,2,0
;Set bits 0 and 1 to 1, bit 2 to 0 of port 0
V0=IO1
;Read 8 bit inputs
Aerotech, Inc.
U511 User's Manual
Version 1.1