DMC-1400 Series Command Reference #COMINT 59
#COMINT
FUNCTION: Communication interrupt automatic subroutine
DESCRIPTION:
#COMINT can be configured by the CI command to run either when any character or a
carriage return is received on the auxiliary serial port. CI,1 must be issued to use
#COMINT.
USAGE:
While Moving Yes
In a Program Yes
Command Line No
Controller Usage DMC-1412 / 4 ONLY
RELATED COMMANDS:
P1CD P2CD Serial port 1/2 code
P1CH P2CH Serial port 1/2 character
P1NM P2NM Serial port 1/2 number
P1ST P2ST Serial port 1/2 string
CI Configure #COMINT (and set operator data entry mode)
CC Configure serial port 2
EN End subroutine
EXAMPLES:
CC9600,0,0,0
CI2 ;'interrupt on any character
#Loop
MG "Loop" ;'print a message every second
WT 1000
JP#Loop
#COMINT
MG "COMINT" ;'print a message when a character is
received
EN1,1
NOTE: An application program must be executing for the automatic subroutine to function, which
runs in thread 0.
NOTE: Use EN to end the routine