Gbs-elektronik MCA166-USB Manual de usuario Pagina 58

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 73
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 57
MCA166-USB
Name MMCA_QUERY_VOLTAGE_CURRENT
Description The command reads the voltages and currents from the MMCA.
Parameter -
Results array Charger current [mA] long
Byte Offset 4 HV primary current [mA] long
Byte Offset 8 Battery current [mA] long
Byte Offset 12 Battery voltage [mV] long
Byte Offset 16 HV reference voltage [V] long
Byte Offset 20 HV control voltage [V] long
Byte Offset 24 +12V primary current [mA] long
Byte Offset 28 +24V primary current [mA] long
Byte Offset 32 -24V primary current [mA] long
Byte Offset 36 -12V primary current [mA] long
Return Code see MMCA_RESET command
A3.3 MS-Windows DLL for the communication with several MCA166-USB
This Dynamic Link Library allows the communication with several MCA166-USB. It can manage the serial
communication ports COM1 to COM20.
Die Dynamic Link Library exists as a 16-bit variant (mca_comx.dll) and as a 32-bit variant
(mca32cmx.dll). The DLL must reside in the system directory of Windows or in the same directory as the
calling application. In order to include the DLL in your program, you have to use the in Visual Basic the
file MCA32CMX.BAS (valid only for Win32 applications) or in C/C++ the files MCA_COMX.H and
MCA_COMX.LIB or MCA32CXM.LIB. All functions and structures are declared in these files.
The use of the function is analogous to the functions of the DLLs for the comunication with one MCA166-
USB (see chapter A3.1). However, following differences exist: The return value of the function COMM_INIT
is an index of the communication port. You have to pass this index to each function as first parameter so
that you can distinguish the communication ports.
The return value indicates the result of the data transfer. It can be one of the following values:
ERROR_OK = 0 successful data transfer
ERROR_INTERFACE = 1 communication port is not initialized
ERROR_COMMUNICATION = 3 faulty data transfer
ERROR_INVALID_PARAM = 4 invalid parameter
ERROR_FORBIDDEN_INDEX = 5 forbidden index
58
Vista de pagina 57
1 2 ... 53 54 55 56 57 58 59 60 61 62 63 ... 72 73

Comentarios a estos manuales

Sin comentarios