![Galil Motion Control RIO-47 series
RIO-47100 Скачать руководство пользователя страница 65](http://html1.mh-extra.com/html/galil-motion-control/rio-47-series-rio-47100/rio-47-series-rio-47100_user-manual_558776065.webp)
Auto-Start Routine
The RIO has a special label for automatic program execution. A program that has been saved into the
RIO non-volatile memory can be automatically executed upon power up or reset, simply by beginning
the program with the label #AUTO.
Note:
The program must be saved into non-volatile memory using the command, BP.
Automatic Subroutines for Monitoring Conditions
Often it is desirable to monitor certain conditions continuously without tying up the host or RIO
program sequences. The RIO can monitor several important conditions in the background. These
conditions include checking for the occurrence of a defined input, position error, a command error, or
an Ethernet communication error. Automatic monitoring is enabled by inserting a special, predefined
label in the applications program. The pre-defined labels are:
SUBROUTINE
DESCRIPTION
#AUTO
Automatic Program Execution on power up
#AUTOERR
Automatic Program Execution on power up if error condition occurs
#ININTn
Input specified by II goes low (n from 0 to 3)
#CMDERR
Bad command given
#TCPERR
Ethernet communication error
#COMINT
Communication Interrupt Routine
For example, the #ININT label could be used to designate an input interrupt subroutine. When the
specified input occurs, the program will be executed automatically.
NOTE: An application program must be running for automatic monitoring to function.
Example - Input Interrupt
Instruction
Interpretation
#A
Label
II0,0,1
Input Interrupt on 1
#LOOP;JP#LOOP;EN
Loop
#ININT0
Input Interrupt
MG “INPUT 1 IS HIGH”
Send Message to screen
RI0
Return from interrupt routine to Main Program and do not
re-enable trippoints
Chapter 5 Programming ▫ 65 RIO-47xxx Rev 1.0r