MCO 305 Design Guide
PRINT
Summary
Syntax
Parameter
Description
Command Group
Cross Index
Syntax Example
Program Sample
PRINT DEV
Summary
Syntax
Parameter
Description
Command Group
Cross Index
Syntax Example
144
__ Software Reference __
Information output
PRINT i or PRINT i;
i = information, for example, variables, text, CHR (n) separated by commas.
The CHR command returns the ASCII characters corresponding to a certain
number.
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.
I/O
INKEY
PRINT "Information is important !"
PRINT "Information is important !"; /* print information without line feed */
variable = 10
PRINT variable
PRINT APOS
PRINT "Variable", variable,"Pos.:",APOS
Uses – see all Program Samples.
Stops information output
PRINT DEV nn printlist
nn =
number for the device
0
= Standard output
-1 = no output after that line
printlist = normal argument for a print command
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.
I/O
PRINT, INKEY
PRINT DEV –1 "start"
®
MG.33.L4.02 – VLT
is a registered Danfoss trademark
/* print text information */
/* print contents of variables */
/* print returned value function */
/* print mixed information */