Вы находитесь на странице: 1из 28

Model AT-231

Users Guide
www.sysacom.com

Table of Contents
1. 2. 2.1 2.2 3. 4. INTRODUCTION .............................................................................................................................................. 5 ENCLOSURE OVERVIEW ............................................................................................................................. 5 FRONT PANEL DESCRIPTION ................................................................................................................................. 5 BACK PANEL DESCRIPTION ................................................................................................................................... 6 FUNCTIONAL OVERVIEW ........................................................................................................................... 6 GETTING STARTED ....................................................................................................................................... 7

4.1 CONNECTING YOUR THREE-PHASE VOLTAGE GENERATOR................................................................................... 7 4.2 INSTALLING YOUR SOFTWARE ............................................................................................................................... 7 4.2.1 Minimum System Requirements .................................................................................................................. 7 4.2.2 Software and driver Installation procedure ............................................................................................... 8 5. USING THE SOFTWARE .............................................................................................................................. 12

5.1 STARTING THE APPLICATION ............................................................................................................................... 12 5.2 TPVG WINDOW.................................................................................................................................................. 13 5.2.1 Description ............................................................................................................................................... 13 5.2.2 Setting Output Parameters and Functionalities ....................................................................................... 15 5.3 PASSWORD WINDOW .......................................................................................................................................... 18 5.4 FIRMWARE UPGRADE WINDOW .......................................................................................................................... 19 5.4.1 Description ............................................................................................................................................... 19 5.4.2 Firmware Upgrade Procedure ................................................................................................................. 20 5.5 INFORMATION WINDOW ...................................................................................................................................... 21 5.5.1 Description ............................................................................................................................................... 21 6. 7. PRODUCT SPECIFICATIONS ..................................................................................................................... 22 TROUBLESHOOTING................................................................................................................................... 23

7.1 CONNECTING YOUR THREE-PHASE VOLTAGE GENERATOR................................................................................. 23 7.2 SOFTWARE/DRIVER INSTALLATION ..................................................................................................................... 23 7.3 ERROR MESSAGES .............................................................................................................................................. 23 7.3.1 The USB device is not found, verify connections and restart application. ............................................... 23 7.3.2 Unable to communicate with Three-Phase Voltage Generator, verify connections and restart application. ............................................................................................................................................................. 23 7.3.3 Unable to open the selected file. ............................................................................................................... 24 7.3.4 Unable to upgrade Three-Phase Voltage Generator Firmware. .............................................................. 24 7.4 ALL OTHER TROUBLE .......................................................................................................................................... 24 8. 9. 9.1 9.2 9.3 9.4 9.5 9.6 9.7 WARRANTY .................................................................................................................................................... 25 ANNEXE A DLL FUNCTIONS................................................................................................................... 26 OPENUSBDEVICE ................................................................................................................................................ 26 CLOSEDRIVER ..................................................................................................................................................... 26 GETUNITID ......................................................................................................................................................... 26 SENDUSBDATACMD ........................................................................................................................................... 26 SENDRECEIVEUSBCOMMAND............................................................................................................................. 27 READUSBDEVICEMODEL.................................................................................................................................... 27 REVMEMCPY...................................................................................................................................................... 27 Sysacom Tel: (450) 585-6396, www.sysacom.com 120056URG01-01.doc January 6, 2012 2 of 28

9.8 TOBIN ................................................................................................................................................................. 28 9.9 RCVDBINPACKET ............................................................................................................................................... 28 9.10 UNITIDSTRUCT .......................................................................................................................................... 28

Sysacom Tel: (450) 585-6396, www.sysacom.com

120056URG01-01.doc January 6, 2012 3 of 28

List of figures
Figure 1: Front Panel....................................................................................................................... 5 Figure 2: Back Panel. ...................................................................................................................... 6 Figure 3: TPVG Window. ............................................................................................................. 13 Figure 4: Password Window. ........................................................................................................ 18 Figure 5: Firmware Upgrade Window. ......................................................................................... 19 Figure 6: Information Window. .................................................................................................... 21

List of tables
Table 1: Front Panel Description. ................................................................................................... 5 Table 2: Back Panel Description. .................................................................................................... 6 Table 3: TPVG Window Description. .......................................................................................... 15 Table 4: Digital I/O Mode Description. ........................................................................................ 17 Table 5: Firmware Upgrade Window Description. ....................................................................... 20 Table 6: Information Window Description. .................................................................................. 22 Table 7: Product Specifications. ................................................................................................... 22

Sysacom Tel: (450) 585-6396, www.sysacom.com

120056URG01-01.doc January 6, 2012 4 of 28

Introduction Congratulations on your purchase of the new Sysacom Versatile Dual Three Phase Voltage Generator (AT-231). The ideal tool for technicians and engineers working on three-phase system development. Here are just a few examples of what you can do with your new generator: Inverter controller testing. Protection relay testing. Transfer switch controller testing. Simulate any three-phase load at the signal level. 1. Enclosure Overview 1.1 Front Panel Description A D E F K M

B L G H I J C Figure 1: Front Panel. Reference Designator


A B C D E F G H I J K L M N O
Sysacom Tel: (450) 585-6396, www.sysacom.com

Description
Power ON indicator Trip 1 indicator (DIO1) Trip 2 indicator (DIO2) Output 1, Phase A Output 1, Phase B Output 1, Phase C Output 2, Phase A Output 2, Phase B Output 2, Phase C Analog Ground Digital I/O 1 Digital I/O 2 Second Signal Synchronized Output Fundamental Synchronized Output Digital Ground

Table 1: Front Panel Description.


120056URG01-01.doc January 6, 2012 5 of 28

Back Panel Description

B A C

Figure 2: Back Panel. Reference Designator Description A Power switch (ON / OFF) B Power supply input C USB port Table 2: Back Panel Description.

2. Functional Overview The AT-231 Versatile Dual Three-Phase Voltage Generator has many functionalities. Heres a list of his major characteristics: Generates two three-phase outputs. Independent control of each phases amplitude. Independent control of each phases angle. Both sources have independent frequency control. Outputs synchronize functionality. Outputs bridge functionality. Two configurable digital IO. Two synchronized output signals. Individual output TRIP functionality. Configurable by PC Interface.

Sysacom Tel: (450) 585-6396, www.sysacom.com

120056URG01-01.doc January 6, 2012 6 of 28

3. Getting Started 3.1 Connecting your Three-Phase Voltage Generator Connect the power supply (ELPAC WM220-1) output connector into the Three-Phase Voltage Generator power supply input (see Figure 2: Back Panel.). Connect the power supply input connector (3-prong) into the wall plug (115VAC, 60Hz). Connect the Three-Phase Voltage Generator to your computer using a USB cable. Turn ON the Three-Phase Voltage Generator by flipping the switch in the upward position (see Figure 2: Back Panel.). The power ON indicator should be lit (see Figure 1: Front Panel.). Note: When connecting the AT-231 generator to your computer for the first time, Windows will ask for the corresponding driver. See section 4.2.2 for details on driver installation. 3.2 Installing your Software 3.2.1 Minimum System Requirements Personal computer with Pentium III 800 MHz microprocessor with CD-ROM drive. Windows 2000 or more recent. Monitor with a resolution of 800 x 600 (1024 x 768 preferred). 128 MB or more of available RAM. 10 MB of hard disk space available. USB port

Sysacom Tel: (450) 585-6396, www.sysacom.com

120056URG01-01.doc January 6, 2012 7 of 28

3.2.2 Software and driver Installation procedure Close all other software programs before starting the installation. Turn ON the Three-Phase Voltage Generator (see section 4.1). A window should appear indicating it detected new hardware. Close that window using the cancel button. (The installation program will take care of this step later)

Place the installation CD into the CD-ROM drive. The setup program should start automatically and the following window should appear:

Sysacom Tel: (450) 585-6396, www.sysacom.com

120056URG01-01.doc January 6, 2012 8 of 28

Click Next and then the following window should appear:

Select the installation folder, the installation type and then click Next, the following window should appear:

Click Next and then the following window should appear:

Sysacom Tel: (450) 585-6396, www.sysacom.com

120056URG01-01.doc January 6, 2012 9 of 28

Click Yes, the following window should appear:

Click Next and then the following window should appear:

Sysacom Tel: (450) 585-6396, www.sysacom.com

120056URG01-01.doc January 6, 2012 10 of 28

Click Continue Anyway and then the following window should appear:

Click Finish and then the following window should appear:

Click Close and then the installation is now completed.

If something went wrong during the installation and your TPVG driver is not correctly installed, you can follow this alternate installation method. If the driver did not install correctly, the file will be stored in the Windows Driver Storage. This means that by using the Add/Remove Hardware wizard (Start Control Panel) you can install the driver by letting windows search automatically for the driver. For the more advanced user, the files are also located on the CD-ROM.

Sysacom Tel: (450) 585-6396, www.sysacom.com

120056URG01-01.doc January 6, 2012 11 of 28

4. Using the Software 4.1 Starting the Application Double-click on the Three-Phase Voltage Generator desktop icon. OR Choose Three-Phase Voltage Generator from the Start menu Programs Sysacom. OR Choose Run from the Start menu. In the Run window, type the installation directory and type \PcIntrf.exe. (For example: c:\Program Files\Sysacom\Three-Phase Voltage Generator\PcIntrf.exe)

Sysacom Tel: (450) 585-6396, www.sysacom.com

120056URG01-01.doc January 6, 2012 12 of 28

4.2 TPVG Window 4.2.1 Description

Y P Z
A1 A2

B1 C1 D1 H1 I1 J1 L1 K1 a1 b1 c1 d1 h1 K2 F1 G1

B2 C2 D2 H2 I2 J2 L2 a2 b2 c2 d2 h2

E2 F2 G2

e1 f1 g1 M1

e2 f2 g2 M2

Figure 3: TPVG Window.

Sysacom Tel: (450) 585-6396, www.sysacom.com

120056URG01-01.doc January 6, 2012 13 of 28

Reference Designator A1 B1 C1 D1 F1 G1 H1 I1 J1 A2 B2 C2 D2 E2 F2 G2 H2 I2 J2 a1 b1 c1 d1 e1 f1 g1 h1 a2 b2 c2 d2 e2 f2 g2 h2 K1 L1 M1 K2 L2
Sysacom

Description Output 1, Frequency Output 1, Phase A, Amplitude Output 1, Phase B, Amplitude Output 1, Phase C, Amplitude Output 1, Phase B, Angle Output 1, Phase C, Angle Output 1 Lock Phases B and C Output 1 Long-term Sweep Output 1 Short-term Sweep Output 2, Frequency Output 2, Phase A, Amplitude Output 2, Phase B, Amplitude Output 2, Phase C, Amplitude Output 2, Phase A, Angle Output 2, Phase B, Angle Output 2, Phase C, Angle Output 2 Lock Phases B and C Output 2 Long-term Sweep Output 2 Short-term Sweep Output 1 Second Signal, Frequency Output 1 Second Signal, Phase A, Amplitude Output 1 Second Signal, Phase B, Amplitude Output 1 Second Signal, Phase C, Amplitude Output 1 Second Signal, Phase A, Angle Output 1 Second Signal, Phase B, Angle Output 1 Second Signal, Phase C, Angle Output 1 Second Signal Lock Phases B and C Output 2 Second Signal, Frequency Output 2 Second Signal, Phase A, Amplitude Output 2 Second Signal, Phase B, Amplitude Output 2 Second Signal, Phase C, Amplitude Output 2 Second Signal, Phase A, Angle Output 2 Second Signal, Phase B, Angle Output 2 Second Signal, Phase C, Angle Output 2 Second Signal Lock Phases B and C Output 1 Second Signal Type (none, sin or noise) Enable Output 1 Second Signal Square Wave on Digital I/O 3 Enable Output 1 Correlate Noise Output 2 Second Signal Type (none, sinus or noise) Enable Output 2 Second Signal Square Wave Not
120056URG01-01.doc January 6, 2012 14 of 28

Tel: (450) 585-6396, www.sysacom.com

M2 P Q R S T U V W X Y Z

Available Enable Output 2 Correlate Noise Output 2 Synchronize Phase Sequence (ABC or CBA) Digital I/O 1 Settings Digital I/O 2 Settings Digital I/O 3 Settings Not Available (see L1 description above) Digital I/O 4 Settings Not Available Digital I/O Auto Refresh Read parameters Write parameters Amplitude unit choice Bridge Functionality Table 3: TPVG Window Description.

4.2.2 Setting Output Parameters and Functionalities 4.2.2.1 Set Frequency Minimum frequency: 0.00 Hz Maximum frequency: 1000.00 Hz To set the system frequency, enter the desired value into the corresponding field(s) and click Write parameters button. 4.2.2.2 Set Amplitude Minimum amplitude: 0.000 Vp Maximum amplitude: 9.800 Vp (19.600Vp-p, 6.929Vrms) To set the phase amplitude, enter the desired value into the corresponding field(s) and click Write parameters button. 4.2.2.3 Set Angle Minimum angle: 0.00 degree Maximum angle: 360.00 degrees To set the phase angle, enter the desired value into the corresponding field(s) and click Write parameters button.

Sysacom Tel: (450) 585-6396, www.sysacom.com

120056URG01-01.doc January 6, 2012 15 of 28

4.2.2.4 Lock Phases B and C This functionality is used to configure the corresponding three-phase output as a standard threephase signal. If the Lock phases B and C option is selected, the phase A amplitude is used to globally set the three-phase signal amplitude and the phase B and C angle are respectively fixed at 120 and 240. 4.2.2.5 Set Long-term Sweep The long-term sweep adds a frequency variation over a period of 20 minutes. The maximum percentage of variation depends on fundamental frequency. For a fundamental frequency of 50Hz, the maximum sweep is 10.00% For a fundamental frequency of 60Hz, the maximum sweep is 8.33% For a fundamental frequency of 100Hz, the maximum sweep is 5.00% For a fundamental frequency of 1000Hz, the maximum sweep is 0.50% 4.2.2.6 Set Short-term Sweep The short-term sweep adds a frequency variation over a period of 10 seconds. The maximum percentage of variation depends on fundamental frequency. For a fundamental frequency of 50Hz, the maximum sweep is 10.00% For a fundamental frequency of 60Hz, the maximum sweep is 8.33% For a fundamental frequency of 100Hz, the maximum sweep is 5.00% For a fundamental frequency of 1000Hz, the maximum sweep is 0.50% 4.2.2.7 Set Second Signal The second signal is added to the corresponding fundamental output. There are three (3) choices: None, Sin or Noise. None: Disable second signal Sin: Add a sine wave. Set the frequency, angles and amplitude. The amplitude is a percentage of the fundamental amplitude. Noise: Add random noise. Set the amplitude of the noise. The amplitude is a percentage of the fundamental amplitude. Enable or disable noise correlation.

4.2.2.8 Amplitude Unit This functionality allows the choice of the amplitude unit used in the application. Any modification to this setting will update all phase amplitude fields to reflect the change. There are three (3) choices: Vp (Volt peak), Vp-p (Volt peak-peak) or Vrms (Volt root mean square).
Sysacom Tel: (450) 585-6396, www.sysacom.com 120056URG01-01.doc January 6, 2012 16 of 28

4.2.2.9 Bridge This functionality is used to bridge the Output2 with the Output1 to double the output power (you must externally connect all corresponding outputs together, ex.: 1A with 2A, 1B with 2B, ). Any change in the Output1 settings will be applied onto the Output2 to avoid system conflict. So, when the bridge is activated, no change can be made directly to the Output2. When you remove the bridge functionality, dont forget to remove the connections between the corresponding outputs. 4.2.2.10 Synchronize This functionality is used to simulate an unbalanced system. If the Synchronize option is selected, the Output 1 frequency is applied on both outputs. The Output 2 phase A angle globally affects the Output 2 three-phase signal, which will allow phase displacement between Output 1 and Output 2. It could be useful to simulate phase difference between voltage and current in real applications. 4.2.2.11 Phase Sequence The phase sequence can be set to ABC or CBA. 4.2.2.12 Digital I/O Settings There are four configurable Digital I/Os. The DIO1 and DIO2 can be configured as three different modes: Input, Output and Trip Input. DIO3 and DIO4 have special functionality. DIO1 and DIO2 functionalities: Mode Description Input Digital Input, accept low (0V) or high (5V) level on selected DIO (CMOS levels). Output Digital Output, supply low (0V) or high (5V) level on selected DIO (CMOS levels). Trip Input Use as emergency tripping input, directly connected to system fault detector (overcharge, overheat ). If a fault occurs, the corresponding three-phase output will immediately shutdown. (Note: High level corresponds to a fault condition) Table 4: Digital I/O Mode Description. DIO3 functionality: Square wave output signal synchronized with phase A of Output 1 second signal when Sin (see 4.2.2.7) and Square (see L1 reference description) are selected. DIO4 functionality: Always output a square wave signal synchronized with phase A of Output 1 fundamental (see A1 reference description).
Sysacom Tel: (450) 585-6396, www.sysacom.com 120056URG01-01.doc January 6, 2012 17 of 28

4.2.2.13 Auto Refresh (Digital Input) This functionality is available only if at least one digital I/O is set as an input. If this button is pressed, the digital input levels are refreshed every 500ms. Warning: You must stop the Auto Refresh functionality before changing tab. 4.2.2.14 Read Parameters This functionality is used to read parameters from the Three-Phase Voltage Generator. NOTE: At application start-up, if the communication with the unit is established, all parameters are automatically read from the Three-Phase Voltage Generator internal memory. 4.2.2.15 Write Parameters This functionality is used to write parameters to the Three-Phase Voltage Generator internal memory. When this button is pressed, the AT-231 will instantaneously use all new entered parameters. 4.3 Password Window

Figure 4: Password Window. This window is shown when you click on the Firmware Upgrade tab. This password is used to protect accessibility to this functionality. If a new firmware revision is released by Sysacom, it will be available for download on Sysacom website (www.sysacom.com) and you will be informed about the password at this time. NOTE: When a proper password has been entered once, the Firmware Upgrade window will remain unlocked until the application is closed.

Sysacom Tel: (450) 585-6396, www.sysacom.com

120056URG01-01.doc January 6, 2012 18 of 28

4.4 Firmware Upgrade Window 4.4.1 Description

A C

B F

D E

G H

Figure 5: Firmware Upgrade Window.

Sysacom Tel: (450) 585-6396, www.sysacom.com

120056URG01-01.doc January 6, 2012 19 of 28

Reference Designator Description A Firmware file field. B Firmware file Browse button. C Unit Serial number field D Unit Firmware burn date/time field E Unit Firmware build date/time field F Upgrade button G Firmware Revision field H Upgrade Error code field Table 5: Firmware Upgrade Window Description. 4.4.2 Firmware Upgrade Procedure To perform a firmware upgrade you must follow these steps: 1. Click on the Firmware Upgrade tab, enter a proper password and then click OK. 2. Select a firmware file, with the Browse button retrieve the .m10 file and then click Open. The .m10 file must have been previously downloaded from the Sysacom website. 3. Click on the Upgrade button and wait. If the firmware upgrade isnt completed with success, refer to Troubleshooting section. WARNING: ENSURE THAT FIRMWARE UPGRADE IS COMPLETED BEFORE DISCONNECTING OR TURNING OFF THE UNIT. 4. To use the Three-Phase Voltage Generator with the new firmware revision, you must restart the unit and the application. The new firmware revision parameters shall be displayed into the corresponding fields.

Sysacom Tel: (450) 585-6396, www.sysacom.com

120056URG01-01.doc January 6, 2012 20 of 28

4.5 Information Window 4.5.1 Description

A B C D E

Figure 6: Information Window.

Sysacom Tel: (450) 585-6396, www.sysacom.com

120056URG01-01.doc January 6, 2012 21 of 28

Reference Designator Description A Manufacturer name B Product name C PC Interface software revision D Copyright registration E Sysacom website Table 6: Information Window Description. 5. Product Specifications Output Level Output Level Resolution Output Impedance Frequency Range

Frequency Resolution Sampling Frequency Phase Range Phase Resolution Digital I/O Type Digital I/O Voltage Digital I/O Output Current Trip Input

Interface Firmware Upgrade Physical Dimensions: Width Length Height Power

0.0 to 19.6Vp-p 16-bit 50 ohms 0.01Hz to 1000.00Hz Cover 50Hz European, 60Hz North American and 400Hz Aircraft 0.01Hz 100KHz 0 to 360 degrees 0.01degrees CMOS with 4.7Kohm pull-up to 5V 5V 20mA Two of the digital IO can be configured as trip input. For example when trip 1 is triggered (active high) source 1 is stopped (0V). USB 1.1 By USB

6.3inches/160mm 6.3inches/160mm 3.38inches/86mm Powered by an external power supply ELPAC POWER SYSTEM WM220-1 Table 7: Product Specifications.

Sysacom Tel: (450) 585-6396, www.sysacom.com

120056URG01-01.doc January 6, 2012 22 of 28

6. Troubleshooting 6.1 Connecting your Three-Phase Voltage Generator If the power ON indicator isnt lit, its probably because the unit isnt powered, ensure that: Power switch is at ON position (upwards). Power supply output connector (circular DIN) is well connected at unit (see Figure 2: Back Panel.). Power supply input connector (3-prong) is well connected in wall plug. The wall plug circuit breaker isnt tripped. 6.2 Software/Driver Installation If you have any problems with the software or driver installation (Section 4.2.2), please refer to your local system administrator. 6.3 Error Messages 6.3.1 The USB device is not found, verify connections and restart application. If the USB device is not found, its probably caused by a bad USB connection or the unit is not powered, ensure that: The power ON indicator is lit (see section 7.1). Both USB connections, at the PC and at the unit, are well connected. Your USB port is functional. After all these verifications, restart unit and application. 6.3.2 Unable to communicate with Three-Phase Voltage Generator, verify connections and restart application. If the PC is unable to communicate with the Three-Phase Voltage Generator, its probably caused by a bad USB connection or the unit may have been accidentally turned OFF, ensure that: The power ON indicator is lit (see section 7.1). Both USB connections, at the PC and at the unit, are well connected. Your USB port is functional.

After all these verifications, restart unit and application.

Sysacom Tel: (450) 585-6396, www.sysacom.com

120056URG01-01.doc January 6, 2012 23 of 28

6.3.3 Unable to open the selected file. If the application is unable to open the selected file, ensure that this file is not read only (Properties). 6.3.4 Unable to upgrade Three-Phase Voltage Generator Firmware. If application is unable to upgrade Three-Phase Voltage Generator, please contact Sysacom. 6.4 All other trouble If you experience any other difficulties, please visit our website (www.sysacom.com) or contact Sysacom.

Sysacom Tel: (450) 585-6396, www.sysacom.com

120056URG01-01.doc January 6, 2012 24 of 28

7. Warranty Sysacom warrants the AT-231 Versatile Dual Three-Phase Voltage Generator to be free from malfunctions and defects in both materials and workmanship for one year from the date of purchase. If the equipment does not function properly during the warranty period due to defects in either materials or workmanship, Sysacom will, at its option, either repair or replace the equipment without charge, subject to limitations stated herein. Such repair service will include all labour, as well as any necessary adjustments and / or replacement parts. LIMITATIONS The warranty becomes null and void if you fail to pack your AT-231 in a manner consistent with the original product packaging and damage occurs during shipment. Sysacom makes no other warranties, express, implied, or of merchantability or fitness for a particular purpose for this equipment or software. Repair or replacement without charge are Sysacom only obligation under this warranty. Sysacom will not be responsible for any special, consequential or incidental damages resulting from the purchase, use, or improper functioning of this equipment regardless of the cause. Depending on your geographical location, some limitations may not apply.

Sysacom Tel: (450) 585-6396, www.sysacom.com

120056URG01-01.doc January 6, 2012 25 of 28

8. Annexe A DLL Functions

8.1 OpenUsbDevice
/* Function OpenDriver Use to create a link between the DLL interface and the Kernel mode driver. Return : Win32 error code. SH041001 */ DWORD CLASS_DECLSPEC OpenDriver( void )

8.2 CloseDriver
/* Function CloseDriver Use to close the link between the DLL interface and the Kernel mode driver. Return : Win32 error code return by Kernel code. SH041001 */ DWORD CLASS_DECLSPEC CloseDriver( void )

8.3 GetUnitId
/* Function GetUnitId This function must be called to read the unit identification structure. Parameters: UnitIdStrc: Return: Win32 error code. SH040322 */ DWORD CLASS_DECLSPEC GetUnitId( UNITIDSTRUCT *UnitIdStrc )

8.4 SendUsbDataCmd
/* Function SendUsbDataCmd This function is used to send a information on the USB link using the packet protocol.
Sysacom Tel: (450) 585-6396, www.sysacom.com 120056URG01-01.doc January 6, 2012 26 of 28

Parameters: Buffer: Pointer to byte that need to be send to peripheral. Length: Number of BYTE to be send. Return: Number of byte written to port or -1 if there's an error. SH031119 */ DWORD SendUsbData( BYTE* Buffer, DWORD Length )

8.5 SendReceiveUsbCommand
/* Function SendReceiveUsbCommand This function must be called to send a command to the usb device and wait for a valide and verified anwser. Parameters: RecvBuffer: Buffer for to send and receive byte RecvLength: Number of byte to send and receive MaxResponseTime: Timeout to send and receive data Return: Win32 error code. CC111222 */ DWORD CLASS_DECLSPEC SendReceiveUsbCommand( BYTE* RecvBuffer, DWORD *RecvLength, DWORD MaxResponseTime )

8.6 ReadUsbDeviceModel
/* Function ReadUsbDeviceModel This function must be called to read device model Parameters: None. Return: Win32 error code. CC111222 */ DWORD CLASS_DECLSPEC ReadUsbDeviceModel( void )

8.7 RevMemCpy
/* Function RevMemCpy This function copy memory to memory in reversed order. It is used to copy little indian to big indian format. Parameters: void *Dest: destination pointer. void *Source: Source pointer. size_t Size: number of byte to copy. DL001212 */
Sysacom Tel: (450) 585-6396, www.sysacom.com 120056URG01-01.doc January 6, 2012 27 of 28

void CLASS_DECLSPEC RevMemCpy( void *Dest, void *Source, size_t Size )

8.8 ToBin
/* Function ToBin This function convert an ASCII hex of 1 to four symbols to an integer Parameters: n: number of byte *s: pointer to the array of bits

DL011199 */ int ToBin( int n, char *s )

8.9 RcvdBinPacket
/* Function RcvdBinPacket This function check incomming bytes to found new packet. Parameter: *Buff: Pointer to buffer to receive new packet info field *length: Pointer to variable to receive number of byte copied. Return: ERROR_SUCCESS or ERROR_NOT_READY SH140602 */ DWORD CLASS_DECLSPEC RcvdBinPacket( BYTE *Buff, DWORD *length )

8.10 UNITIDSTRUCT // Define a unit identification structure. typedef struct { char Key[UIS_KEY_LEN]; // Firmware burn key char BurnDate[UIS_BDATA_LEN]; // Firmware burn date char BurnTime[UIS_BTIME_LEN]; // Firmware burn time char SerialNumber[UIS_SNUM_LEN]; // Unit serial number BYTE CheckByte; char CompDate[UIS_CDATE_LEN]; // Firmware compilation date char CompTime[UIS_CTIME_LEN]; // Firmware compilation time char FirmRev[UIS_FREV_LEN]; // Firmware revision. } UNITIDSTRUCT;

Sysacom Tel: (450) 585-6396, www.sysacom.com

120056URG01-01.doc January 6, 2012 28 of 28

Вам также может понравиться