95
MG.10.J8.02 – VLT is a registered Danfoss trade mark
Programmable SyncPos motion controller
■
■
■
■
■
User units
The units for the drive or the slave and the master,
respectively, can be defined by the user in any way
desired so that the user can work with meaningful
measurements.
User Units [UU]
All path information in motion commands are
made in user units and are converted to quad-
counts internally. These also have an effect on all
commands for the positioning: e.g. APOS, POS.
Scaling determines how many quad-counts make
up a user unit. For example, if it is 50375/1000,
then one UU corresponds to exactly 50.375 qc.
The user can also select meaningful units for the
cam control in order to describe the curve for the
master and the slave. For example 1/100 mm, or
1/10 degrees in applications where a revolution is
being observed.
In the CAM control, the maximum run distance of
the slave or the slave cycle length are indicated in
User Units UU (qc).
You can standardize the unit with a factor. This
factor is a fraction which consists of a numerator
and denominator:
1 UU = POSFACT_Z (23) / POSFACT_N (26)
Master Units [MU]
The curve length or the master cycle length and
other information (e.g. the marker distance) for the
cam control are indicated in master units MU.
A factor (fraction) is used for the conversion into
qc, as with the user unit:
1 MU = SYNCFACTM (49) / SYNCFACTS (50)
Programming with SyncPos
Assignment Operation
Value
= 0
Standard assignment to a variable
Field[1]
= 0
Standard assignment to an array
value
Value.3
= 1
Bit 3 is set at 1, value = 4
Field[1].8 = 1
Bit 8 is set at 1, field[1] = 128
Value.b1 = 72
The lowest byte of value is set
at 72
Value = 72
Value.b2 = 128 Second byte of value is set at 128
Value = 0x00008048
Value.w2 = 15
Second word of value is set at the
value 15.
Value = 0x000F8048
Priority of the Operators and the Operations
Operators in the same line have the same priority,
thus they are completed one after the other.
The priorities are described in decreasing order:
*
%
multiplicative
+
–
additive
>> <<
bit-by-bit shifting
>
=
<
=
>
<
relation
= =
!=
equality
&
bit-by-bit and
|
bit-by-bit inclusive or
AN D
(logical and)
O R
(logical or)