Installation guide
116 Programming Commands
#INCLUDE  Miscellaneous Command
ACTION: Includes a file name with define statements in a user task.
PROGRAM SYNTAX: #INCLUDE drive:\subdir\...\subdir\filename.inc
REMARKS: Drive is the root directory of the drive.
Subdir is the path required to find the file.
Filename is the include filename with extension .inc.
The include file must be a series of #DEFINE statements only and can
be used in any project task file.
The iws.inc file is included in the MCPI software. This file can be used
to control a Superior Electric IWS-127-SE, IWS-30-SE or IWS-120-
SE interface panel.
EXAMPLES: #INCLUDE c:\mx2000\iws.inc  ‘ include file iws.inc
#INCLUDE  c:\mx2000\iws30.inc  ‘ include file iws30.inc
INPUT  I/O Command
ACTION:  Reads a Line of data from the designated serial port into a string vari-
able.
PROGRAM SYNTAX: INPUT#1,N$
INPUT#1,N$,var1$[,var2$][, ...] [,var_n$]
INPUT#2,N$
INPUT#2,N$,var1$[,var2$][, ...] [,var_n$]
REMARKS: This command accepts input characters until a carriage return or line-
feed is received by the designated port.
Multiple arguments strings can be entered on one input line and are
separated by a comma.
INPUT#1 designates the Host port and INPUT#2 designates the Aux-
iliary port as the serial receiver port.
EXAMPLES:  PRINT#2, “enter accel value, decel value, speed value”
INPUT#2,acc$,dcc$,spd$  ‘ input variable values
FOR x=1 TO 3  ‘ axis numbers 1-3
 ACCEL(x)=VAL(acc$)  ‘ load ACCEL value
 DECEL(x)=VAL(dcc$)  ‘ load DECEL value
 SPEED(x)=VAL(spd$)  ‘ load SPEED value
NEXT x










