171
Command, function and parameter description
Section 6-3
expression
The expression to be printed.
See also:
OUTDEVICE, hexadecimal input ($)
Examples:
Example 1
PRINT "CAPITALS and lower case CAN BE PRINTED"
Example 2
Consider VR(1) = 6 and variab = 1.5, the print output will be as follows:
PRINT 123.45,VR(1)-variab
123.4500 4.5000
Example 3
In this example, the semi-colon separator is used. This does not tab into the
next column, allowing the programmer more freedom in where the print items
are placed.
length
:
PRINT "DISTANCE = ";mpos
DISTANCE = 123.0000
Example 4
PRINT VR(1)[ 4,1 ];variab[ 6,2 ]
6.0 1.50
Example 5
params:
PRINT "DISTANCE = ";mpos[ 0 ];" SPEED = ";v[ 2 ];
DISTANCE = 123 SPEED = 12.34
Example 6
PRINT "ITEM ";total" OF ";limit;CHR(13);
Example 7
>> PRINT HEX(15),HEX(-2)
F FFFFA
6-3-143 PROC
Type:
Task Command
Syntax:
PROC(
task_number
)
Description:
The PROC modifier allows a process parameter from a particular process to
be read or written. If omitted, the current task will be assumed.
Argument:
task_number
The number of the task to access.
Example:
WAIT UNTIL PMOVE PROC(3)=0
6-3-144 PROC_LINE
Type:
Task Parameter
Description:
The PROC_LINE parameter returns the current line number of the specified
program task. The parameter is used with the PROC modifier.
Note This parameter is read-only.
See also:
PROC_STATUS, PROCNUMBER, PROC
5
Motion Perfect port 0 user channel 5
6
Motion Perfect port 0 user channel 6
7
Motion Perfect port 0 user channel 7