![Galil Motion Control RIO-47 series
RIO-47100 Скачать руководство пользователя страница 56](http://html1.mh-extra.com/html/galil-motion-control/rio-47-series-rio-47100/rio-47-series-rio-47100_user-manual_558776056.webp)
line in the case that 40characters is not enough for a single command (see example at the end of this
section).
Using Labels in Programs
All RIO programs must begin with a label and end with an End (EN) statement. Labels start with the
number (#) sign followed by a maximum of seven characters. The first character must be a letter;
after that, numbers are permitted. Spaces are not allowed.
The maximum number of labels that can be defined on the RIO depends on the option ordered, see
Table 1.2 for details.
Valid labels:
#BASICIO
#SQUARE
#X1
#input1
Invalid labels:
#1Square
#123
#PROGRAMMING
(
longer than 7 characters)
Special Labels
The RIO also has some special labels, which are used to define input interrupt subroutines and command
error subroutines
.
The following is a list of the automatic subroutines supported by the RIO. Sample
programs for these subroutines can be found in the section
Automatic Subroutines for Monitoring
Conditions.
#AUTO
Automatic Program Execution on power up
#ININTn
Label for Input Interrupt subroutine
#CMDERR
Label for incorrect command subroutine
#TCPERR
Ethernet communication error
#AUTO is a special label for automatic program execution. A program which has been saved into the
controller non-volatile memory using the BP (Burn Program) command can be automatically executed
upon power up or reset by beginning the program with the label #AUTO.
Commenting Programs
Using an Apostrophe to Comment
The RIO provides an apostrophe (‘) for commenting programs. This character allows the user to
include up to 39 characters on a single line after the apostrophe and can be used to include
comments from the programmer as in the following example:
#OUTPUT
‘ PROGRAM LABEL
SB1; CB2
‘Set Bit 1 and Clear Bit 2
EN; ‘END OF PROGRAM
Chapter 5 Programming ▫ 56 RIO-47xxx Rev. 1.0r