Programmable SyncPos motion controller
MG.10.J8.02 – VLT is a registered Danfoss trade mark
216
Program samples
■■
■■
■ syncc_msim.m
// Simulation of a master via software command
DIM curve[112], test [1000]
SET MENCODERTYPE 6
// switch to internal software simulation
SETCURVE curve
simpos = 0
SYNCC 0
SYNCCSTART 0
start:
SYSVAR[4105] = simpos
// set master position (in qc)
// Subsequently, gear system will be employed
simpos = simpos + 100
// ATTENTION, MAPOS continues
// to supply the encoder values
GOTO start
TORIG_01