
MCO 305 Design Guide
__ Software Reference __
144
MG.33.L4.02 – VLT
®
is a registered Danfoss trademark
Summary
Information output
Syntax
PRINT i or PRINT i;
Parameter
i = information, for example, variables, text, CHR (n) separated by commas.
The CHR command returns the ASCII characters corresponding to a certain
number.
Description
Calculation results, variables contents and text information can be displayed on the
connected PC via the RS485 communication interface by use of the PRINT com-
mand, if the APOSS software is open and the connection active.
To obtain multiple data with a single PRINT command, the individual elements
must be separated with a comma (,). Text information must be given in quotation
marks (").
A line feed is normally created following each PRINT instruction. This automatic line
feed can be suppressed with a semi-colon (;) after the last output element.
Command Group
I/O
Cross Index
INKEY
Syntax Example
PRINT "Information is important !"
/* print text information */
PRINT "Information is important !"; /* print information without line feed */
variable = 10
PRINT variable
/* print contents of variables */
PRINT APOS
/* print returned value function */
PRINT "Variable", variable,"Pos.:",APOS
/* print mixed information */
Program Sample
Uses – see all Program Samples.
PRINT DEV
Summary
Stops information output
Syntax
PRINT DEV nn printlist
Parameter
nn =
number for the device
0 = Standard output
-1 = no output after that line
printlist = normal argument for a print command
Description
PRINT DEV can be used to disable all prints in a program without commenting them
out one by one.
The instruction (-1) defines the standard device new and is immediately effective
for all PRINT commands, that do not hold a DEV.
Command Group
I/O
Cross Index
PRINT, INKEY
Syntax Example
PRINT DEV –1 "start"
Содержание MCO 305
Страница 4: ......