DMC-40x0 Command Reference #COMINT • 71
#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.
USAGE:
While Moving Yes
In a Program Yes
Command Line No
Controller Usage
ALL
RELATED COMMANDS:
P2CD Serial port 2 code
P2CH Serial port 2 character
P2NM Serial port 2 number
P2ST Serial port 2 string
CI Configure #COMINT
CC Configure serial port 2
EN End subroutine
EXAMPLES:
#A ;'Program Label
CC9600,0,1,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