
MCO 305 Design Guide
__ Software Reference __
148
MG.33.L4.02 – VLT
®
is a registered Danfoss trademark
SETCURVE
Summary
Set CAM curve.
Syntax
SETCURVE array
Parameter
array = name of the array or of the curve
Description
SETCURVE defines the actual used curve, which is described in 'array'
.
This
command has to be used, before the commands CURVEPOS, SYNCCxx,
SYNCCSTART, or SYNCCSTOP can be used.
When this command is executed, the necessary pre calculations are done.
NB!:
The DIM instruction with the name of the curve or array and the number of array
elements must stand in front of the command SETCURVE or at the beginning of the
program. If there are several arrays or curves in the cnf-file, then the order in the
DIM instruction must match the order of the arrays in the cnf-file.
NB!:
If SYNCC is not active:
If SETCURVE is used while SYNCC is not active, then SETCURVE will reset the curve
master position depending on the actual master position. That means,
CMASTERCPOS (SYSVAR 4230) is calculated out of MAPOS. This position is not
longer reset by SYNCC. This Position can only be reset by a DEFMCPOS or by a new
SETCURVE outside of SYNCC-mode.
If SYNCC is active:
If SETCURVE is used while SYNCC is active, the CMASTERCPOS will not be changed.
All other parameters like 32-11
User Unit Denominator
, 32-12
UU Numerator
, 33-
23
Start Behavior for Sync.
, 33-15 and 33-16
Marker Number for Master
and
for
Slave
, 33-17 and 33-18
Master
and
Slave Marker Distance
, 33-21 and 33-22
Master and Slave Marker Tolerance Window
, and all Curve-Array information will be
updated, after the next restart of the curve.
While SYNCC is active, the only way to influence the CMASTERCPOS is a DEFMCPOS
(which is executed with next restart of curve) or MOVESYNCORIGN which is
executed immediately.
CMASTERCPOS (SYSVAR) and CURVEPOS are now updated even if SYNCC is no
longer active. The update of these values will be started after a SETCURVE
command (if SYNCMSTART is < 2000) or after SYNCC and the first master marker
(if SYNCMSTART = 2000).
NB!:
Transferring the array to the DSP may take some ms. A curve array of 900 values
will take around 40 ms. For that reason the maximum array size is 2000. (Most
curves have not more than some hundred values.)
Command Group
PAR
Cross Index
DIM, CMASTERCPOS (SYSVAR), CURVEPOS,
Syntax Example
DIM curve [280]
// See number of elements in the title bar of the CAM-Editor
SETCURVE curve
Содержание MCO 305
Страница 4: ......