User guide

92
VTB USER GUIDE
11.14 STEP/DIR CHANNELS-NGM13-NGMEVO-NGQ-NGPP
The system NGM13,NGMEVO,NGQ e NG-PP are equipped with 4 STEP/DIR channels which allows to work with axis
with linear, circular or helical interpolation.
Normally for their use it is associated to a library object according to the type of application. For example we can use
them with INTERPOLATOR, POSITIONER, CAM, GEAR, etc.
In this chapter will be described the need functions to interface these objects to the STEP/DIR output. At last there are
some example to better clear how to create an application using this hardware resource.
The NGMEVO board can use the expansion board NGMsX with two additional channels STEP/DIR
WARNING
THE STEP/DIR CHANNELS, IN THE NGPP and NGMsX CAN BE USED ONLY IN INTERPOLATION MODE
PP_STEP – STEP/DIR SIGNAL GENERATION
The function PP_STEP allows the STEP signal generation on the selected channel. It is the function to connect a general
object for motion application to a STEP/DIR channel.
Hardware NGM13,NG35+NG-PP
Syntax
PP_STEP(Char Chan, Long Pos)
Parameters
Chan Number of the STEP/DIR channel
NGM13 from 0 to 3 channels on board
NGQ from 0 to 3 channels on board
NGMEVO from 0 to 3 channels on board
NGMEVO from 4 to 5 channels on First NGMsX expansion
NGMEVO from 6 to 7 channels on Second NGMsX expansion
NGMEVO from 8 to 9 channels on Third NGMsX expansion
NGPP from 0 to 3 channels on First NGPP expansion
NGPP from 4 to 7 channels on Second NGPP expansion
.
.
NGPP from 28 to 31 channels on Last NGPP expansion
Pos Absolute value of the position of the step/dir axis
WARNING: THE FUNCTION PP_STEP MUST BE CALLED IN TASK PLC.
PP_PRESET – PRESET OF STEP/DIR POSITION
This function updates the current position of a step/dir channel.
Hardware NGM13,NG35+NG-PP-NGMEVO-NGQ
Syntax
PP_PRESET(Char Chan, Long Pos)
Parameters
Chan Number of the STEP/DIR channel (See PP_STEP for channels reference)
Pos Value of the preset position
WARNING
TO A CORRECT PRESET OF THE AXIS FOLLOW THE INSTRUCTION DESCRIBED