Programmable SyncPos motion controller
MG.10.J8.02 – VLT is a registered Danfoss trade mark
140
■
■
■
■
■
PR INT
Calculation results, variables contents and text
information can be displayed on the connected PC
via the RS485 communication interface by use of
the PRINT command, if the SyncPos software is
open and the connection active.
To obtain multiple data with a single PRINT com-
mand, 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.
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.
NB!
If there is no PC connected all prints are
acted as a dummy output. But if a PC sends a
XOFF because it is busy or the serial
communication is not connected the messages are
buffered. When the buffer is full, the next print
command will wait until the buffer can be written
again. That means, that the program stands still.
Command group
I / O
Cross Index
I N KEY
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 */
PRI NT APOS
/* print returned value function */
PRINT “Variable“, variable,“Pos.:",APOS
/* print mixed information */
Program sample
Uses – see all program samples in Online Help
■
■
■
■
■
PULSACC
With PULSACC it is possible to set the accelera-
tion/deceleration for the virtual master (encoder
output).
The virtual master signal simulates an encoder
signal. To calculate the pulse acceleration
PULSACC the parameters
Encoder resolution
Encoder resolution
Encoder resolution
Encoder resolution
Encoder resolution
,
master velocity and the ramp times must be taken
into consideration.
Example:
The virtual master signal should correspond to an
encoder signal of 1024 counts/revolution. The maxi-
mum speed of 25 encoder revolutions/s should be
achieved in 1 s.
PULSACC =
pulse velocity (PULSVEL) [Hz]
t[s]
25
· 1024 counts/turn
=
1 s
counts
s
= 25600
= 25600
counts
Hz
S
2
S
The signals generated are evaluated simultaneously
as master input so that MAPOS, MIPOS etc. function
as they would in an external master.
PULSACC = 0 is the condition for switching off the
virtual master mode, provided it is followed by a
PULSVEL command.
NB!
Changes in the acceleration in PULSACC are
only valid after the next PULSVEL command.
Summary
Set acceleration for the virtual master
Syntax
PULSACC a
Parameter
a = acceleration in Hz/sec
Command group
SYN
Cross Index
PULSVEL
Software Reference