User guide

87
VTB USER GUIDE
11.13 INTERFACE FUNCTIONS FOR NGM13-NGMEVO-NGQ-NGQx
This group of functions allows the interfacing to the hardware resource of NGM13 systems. When this target is selected
the OBJECT NGM13_INIT NGMEVO_INIT is automatically loaded. It defines the hardware configuration of the device.
Hardware NGM13-NGMEVO
NGM13_INIT PROPERTY-NGMEVO_INIT PROPERTY
The object provides a complete vision of all the software option to be set for the correct use of NGM13-NGMEVO.
In detali it allows to set:
Enabling of the communication protocol RPC (PROMAX proprietary), with relative baudrate
Which and how many analog inputs are configured
The step/dir axis to be used and which are in interpolation mode
Number of expansion cards
Obviously, for each single project there will be only an object NGM init.
Property
Link RPC port Serial port RS232 on which enable the RPC protocol to manage an HOST PC
connection. These are the available options:
0 No RPC Link
1 RPC on serial port SER1/PROG (the DEBUG facilities will be disable and the
application download must be done by manual keys BOOT/RESET of the NGM13.
2 RPC on serial port SER2
The NGMEVO Board has the link RPC always activated on ETHERNET
Link RPC baud Baud rate to be used for RPC communication
ADC enable mask Enabling mask of analog inputs. It is processed at bit.
Bit 0 Enables analog input 1 (digital input 9 is disabled)
Bit 1 Enables analog input 2 (digital input 10 is disabled)
. . .
Bit 7 Enables analog input 8 (digital input 16 is disabled)
P-P enable mask Enabling mask of step/dir channels. It is processed at bit.
Bit 0 Enables channel 0
Bit 1 Enables channel 1 (digital outputs 9 and 12 are disabled)
Bit 2 Enables channel 2 (digital outputs 10 and 13 are disabled)
Bit 3 Enables channel 3 (digital outputs 11 and 14 are disabled)
P-P Interp. Mask Enabling mask of step/dir channel in interpolation mode. It is processed at bit.
Bit 0 Channel 0 in interpolation mode
Bit 1 Channel 1 in interpolation mode
Bit 2 Channel 2 in interpolation mode
Bit 3 Channel 3 in interpolation mode
Num. NGM-IO Number of expansion cards NGM-IO or NGM-PS. Remember that 16 inputs and 14
output are available with the NGM13 without any expansion. It must not be
considered.
L-Sync enable mask Enabling mask of L-SYNC channels
Bit 0 Enables channel 0 (digital output 1 is disabled)
Bit 1 Enables channel 1 (digital output 2 is disabled)
Bit 2 Enables channel 2 (digital output 3 is disabled)
Bit 3 Enables channel 3 (digital output 4 is disabled)
L-Sync Prescaler Prescaler Value of L-SYNC channels