User guide

96
VTB USER GUIDE
The flag DisableStep allows the stop of steps generation. Then at the moment we need to execute an axis preset, referring
to the previous examples, call this code:
PRESET AXIS WITH INTERPOLATOR:
DisableStep=true
pos_vect(0)=qpresetX ' preset position X
pos_vect(1)=qpresetY ' preset position Y
obj.preset(pos_vect()) ' preset interpolator
pp_preset(0,qpresetX*Rapp(0)) ' preset step/dir channel 0
pp_preset(1,qpresetY*Rapp(1)) ' preset step/dir channel 1
DisableStep=false
PRESET ASSE WITH MONOAX:
DisableStep=true
MONOAX.HOME= qpresetX ' preset position
pp_preset(0,qpresetX*RappX) ' preset step/dir channel 0
DisableStep=false
12 COMPONENT FOR FRAMEWORK
VTB compiler can create a DLL COMPONENT MODEL which can be imported in .NET (dot net) projects. That allows the
full control of hardware resource directly by a PC: READ/WRITE VARIABLES, CALL FUNCTION IN REMOTE PROCEDURE
CALL.
For details refer to the NG Framework manual.
12.1 Enabling the creation of the COMPONENT NGFRAMEWORK
To use the component we must enable from the VTB Options the compiling of the .NET DLL.
The component can be created for system with Windows XP/VISTA,/7,8 or with Windows CE.
The name of the created DLL must be indicated in the object name.
So, after the end of compiling it will be created the DLL OBJECTNAME:DLL which can be imported as a component in the
.NET project.