background image

System description

ADwin

2

ADwin-Gold

 USB / ENET, manual version 3.8, October 2005

2 System description

2.1

ADwin

 

system concept

ADwin

 systems guarantee fast and accurate operation of measurement data

acquisition and automation tasks under real-time conditions. This offers an
ideal basis for applications such as:

– very fast digital closed-loop control systems

– very fast open-loop control systems

– data acquisition with very fast online analysis of the measurement data

– monitoring of complex trigger conditions and many more

ADwin

 systems are optimized for processes which need 

very short process

cycle times

 of one millisecond upto some microseconds.

System features

The 

ADwin

 system is equipped with analog and digital inputs and outputs, a

fast processor (32-bit floating point signal processor) and local memory. The
processor is responsible for the whole real-time processing in the system. The
applications are running 

independent

 of the PC and its workload.

Processor

The processor of the 

ADwin

 system processes 

each

 measurement value at

once

.

In one cycle you can acquire the status of the inputs, process the status by the-
help of any mathematical functions, and react to the results, even at very fast
process cycle times of some microseconds. This results in a perfect and logical
work sharing: The PC runs a program for visualizing of data, for input and oper-
ation of the processes, togeher with access to networks and data bases, while
the processor of the 

ADwin

 system executes all tasks which require real-time

in parallel.

Real-time operating 
system

The operating system for the DSP of the 

ADwin

 system has been optimized

to reach the fastest response times possible. It manages parallel processes in

multitasking

 manner. Low priority processes are managed by time slicing.

Requested high priority processes interrupt all low priority processes and are
instantaneously and completely executed (preemtive multitasking). High prior-
ity processes are executed as time-controlled or event-controlled processes
(external trigger).

Timing

The built-in 

timer

 is responsible for the precise calling of high priority pro-

cesses. It has a resolution of 25 nanoseconds. The 

ADwin

 systems are char-

acterized by an extremely short response time of only 300 nanoseconds during
the change from a low to a high priority process. A continously running com-
munication process enables a continous data exchange between the 

ADwin

system and the PC even during applications in process. The communication
has no influence on the real-time capability of the 

ADwin

 system, neverthe-

less, it is possible to exchange data at any time.

ADbasic

The real-time development tool 

ADbasic

 gives the opportunity to create time-

critical programs for 

ADwin

 systems very easily and quickly. 

ADbasic

 is an

integrated development environment

 under Windows with possibilities for

online debugging. The habitual, easy-to-learn BASIC instruction syntax has
been extended by many more functions, in order to get direct access to inputs
and outputs as well as by functions for process control and communication with
the PC.

Содержание ADwin-Gold-USB

Страница 1: ...ADwin Gold USB ENET Manual ADwin Gold USB ENET manual version 3 8 October 2005...

Страница 2: ...8 October 2005 J ger Computergesteuerte Messtechnik GmbH Rheinstra e 2 4 D 64653 Lorsch Germany For any questions please don t hesitate to contact us Hotline 49 6251 96320 Fax 49 6251 5 68 19 E Mail...

Страница 3: ...Outputs 14 5 3 Time Critical Tasks 14 6 Calibration 18 6 1 General Information 18 6 2 Calibrating 18 7 DA Add On 22 8 CO1 Counter Add On 23 8 1 Hardware 23 8 2 Software 25 8 3 Operating Mode Impulse...

Страница 4: ...further information in this documentation or to other sources such as manuals data sheets literature etc C ADwin File names and paths are placed in angle brackets and characterized in the font Courier...

Страница 5: ...by appropriately qualified personnel Qualified personnel are persons who due to their education experience and training as well as their knowledge of applicable technical stan dards guidelines accide...

Страница 6: ...the processor of the ADwin system executes all tasks which require real time in parallel Real time operating system The operating system for the DSP of the ADwin system has been optimized to reach the...

Страница 7: ...means immediate and full range responds The ADwin system never sends data to the PC without request The data transfer to the PC is always a response to an instruction coming from the PC Thus embedding...

Страница 8: ...f the ADwin Gold Analog outputs The standard version of the ADwin Gold system is equipped with 2 analog outputs optional 8 with an output voltage range of 10V 10V and a 16 bit resolution You can synch...

Страница 9: ...unter option with four 32 bit counters which can optionally be used for period width measurement as impulse counters or as up down counters with clock direction or four edge evaluation for quadrature...

Страница 10: ...nce by taking measures for bleeding off interferences such as connecting the shielding to the enclosure just before entering it The more frequently you earth the shield ing on its way to the machine t...

Страница 11: ...or male For using the system with an external power supply unit you need the submin iature connector described above The connector is provided by the following manufacturer under the article number 71...

Страница 12: ...is booted shows that the operating system has been loaded appropriately and that via ADbasic the ADwin sys tem has been connected At the same time the flashing of the LED green col ored now at the AD...

Страница 13: ...l pull up resistance 10 k Standard instructions For fast and easy programming there are standard instructions available in the compiler ADbasic which enable a user to easily measure or output data see...

Страница 14: ...e earth of the ADwin Gold system with the earth of the computer If you do not operate the PC and the ADwin Gold system in the same place you should not use the power supplied by the PC but an external...

Страница 15: ...his is in addition to the connections to the positive and negative input Fig 7 Input circuitry of an analog input 16 bit and 14 bit measurements You can convert the signals at the multiplexer outputs...

Страница 16: ...AC is allocated to each of the outputs DAC instruction The standard instruction DAC number value checks each of the values if it exceeds or falls below of the 16 bit value range 0 65535 If the value i...

Страница 17: ...t ADC ULSB 20V 214 1220 7 V The measured 16 bit value of the ADC is returned in the lower word of the reg ister A DAC value which is to be output has to be available there Fig 9 Storage of the ADC DAC...

Страница 18: ...of the device all connections are configured as inputs CONF_DIO 12 The instruction CONF_DIO 12 configures DIO 15 00 as digital inputs and DIO 31 16 as digital outputs see Fig 10 Only in this configura...

Страница 19: ...tions skillfully you may be able to execute faster measurements It is important to set the START_CONV instruction in a sufficient time delay from the SET_MUX instruction in order to consider the multi...

Страница 20: ...Commentary 31 16 15 10 9 8 7 6 5 4 3 2 1 0 20400010 Start conversion All DACs synchronously 1 1 s 1 1 s 0 start conversion s 1 no effect 20400050 Write only to the register DAC 1 x x x x x x x x x x...

Страница 21: ...UT OUT 4 IN OUT IN IN 5 IN OUT IN OUT 6 IN OUT OUT IN 7 IN OUT OUT OUT 8 OUT IN IN IN 9 OUT IN IN OUT 19 OUT IN OUT IN 11 OUT IN OUT OUT 12 OUT OUT IN IN 13 OUT OUT IN OUT 14 OUT OUT OUT IN 15 OUT OUT...

Страница 22: ...g 14 bit converters connecting cables from the inputs outputs to the reference voltage source and to the measurement device recommended BNC cables 6 2 Calibrating Connect your ADwin Gold system with t...

Страница 23: ...you close the program with Exit the new settings remain With Undo Exit you undo all inputs and you exit the calibration program that means the original settings are transferred to the ADwin Gold syst...

Страница 24: ...DMM to the selected out put Connect the voltage source or a calibrated DAC output to the selected input Adjust the offset value at the scroll bar in such a manner that your digi tal multimeter display...

Страница 25: ...view window Step 4 With Print Calibration you can print a protocol of the specified calibra tion data In the open window you can enter different information which will be presented in your printout fo...

Страница 26: ...nected to the pins of the DSub socket ANALOG OUT Fig 15 Pin assignment of the DA add on Programming and calibration You program and calibrate the additional DACs like the DAC 1 and DAC 2 see chapter 5...

Страница 27: ...counter values into the latch LATCH The following modes are possible 1 Clock and direction A positive edge at CLK increments or decrements the counter values by one The signal at DIR determines the co...

Страница 28: ...t to a specified potential Connect the positive input to 5V and the negative input to GND Counter inputs with TTL operation mode for Gold Gold D single ended mode not available with Rev B2 with Gold o...

Страница 29: ...tructions Please configure the counters according to the following order 1 Disable specified counter CNT_ENABLE 2 Set operating mode CNT_MODE CNT_SET CNT_INPUTMODE CNT_SE_DIFF 3 Clear counter CNT_CLEA...

Страница 30: ...e following rules for programming a Process the read 32 bit value only with variables of the type INTEGER or LONG ADbasic then keeps internally the read bit pattern unmodified and automatically consid...

Страница 31: ...is counted incremented or decremented up to a maximum frequency of 20 MHz The direction is derived from a high signal count up or low signal count down at the DIR input direction This signal can be st...

Страница 32: ...horter than 50 ns Impulse widths or pause durations shorter than 100 ns are not incremented Changing the phase shift will have an effect on the maximum input fre quency If it differs from 90 degrees t...

Страница 33: ...am of the CO1 add on in the mode period duration measurement In this mode the counter values are latched into Latch A at every positive edge and the previous data are overwritten The pulse width will...

Страница 34: ...example Control Registers 32 bit Latch B 32 bit Counter 32 bit Latch A CLK EN CLR ADwin GOLD bus Data Data Data LATCH DIR Up ref CLK to fref switches of other counters Divider 4 fref switch G 20 MHz C...

Страница 35: ...out Latch B Counter 3 x x x x x 20400234 Read out Latch A Counter 4 x x x x x 20400238 Read out Latch B Counter 4 x x x x x 20400300 Enable counter x x x x x 0 Disable counter x 1 Enable counter 20400...

Страница 36: ...1 CO4 where the inputs of the CO1 add on can also be found 2 CAN interfaces page 35 Depending on your requirements you can order both interfaces either as high speed or low speed version Switching in...

Страница 37: ...n CO Power in is supplied at the connectors CO1 CO4 for example for an external incremental encoder Please note The negative inputs U1in are galvanically connected with GND via a common line the negat...

Страница 38: ...art of conversion m 0 initialize value PAR_9 0 FOR n 1 TO 32 Go through all possible 32 bits m SHIFT_RIGHT PAR_1 32 n AND 1 XOR m PAR_9 SHIFT_LEFT m 32 n OR PAR_9 NEXT n PAR_2 0 Enable next conversion...

Страница 39: ...e enclosure Power supply Low speed only The low speed version requires an external power supply of 12V DC to run the CAN controller The power must be supplied for each interface separately Bus Termina...

Страница 40: ...are parameters in a defined bit length The parameters 0 211 1 or 0 229 1 result from the bit length Message objects The controller stores each message incoming or outgoing in one out of 15 message obj...

Страница 41: ...t bits if you have an 11 bit identifier it is 11111111100b In this example the comparison of bit 2 is responsible for the assignment of the messages because the bits 3 10 of the compared identifiers a...

Страница 42: ...ntrol the message input polling You can enable the interrupts of several message objects Which object has caused the interrupt can be seen in the interrupt register 5Fh It contains the number of the m...

Страница 43: ...hich are not positioned in an end location must not be terminated For the termination there is if required for the chosen circuit type a voltage of 5V provided at pin 6 9 3 1 Setting the interface par...

Страница 44: ...some common Baud rates and their divisors Fig 30 RS xxx Baud rates Special features of RS485 Via a RS485 interface more than 2 participants can communicate with each other Contrary to the RS232 interf...

Страница 45: ...the interfaces with each other REM befor starting the program INCLUDE adwpext inc DIM DATA_1 1000 AS LONG Transmitted data DIM DATA_2 1000 AS LONG Received data DIM lauf AS LONG Control variable INIT...

Страница 46: ...us REM until it receives the value 55 Now the interface REM becomes active and sends the value 44 INCLUDE adwgcan inc DIM ret_val val AS LONG INIT RS_RESET REM Initialization of the interfaces REM 384...

Страница 47: ...out processes and only with the file ADwin9 btl the system will only be booted after power up but no pro cesses can be executed With the installation of the ADwin Developer Software from the supplied...

Страница 48: ...Ampere The power supply unit is rated for the highest load and maximum expansions of the ADwin Gold Please pay attention to the fact that the USB Ethernet cables are sufficiently shielded in order to...

Страница 49: ...CO1 1 7 Idle current Ethernet Interface Iidle USB Ub 10V 1 3 A Ub 12V 1 1 Ub 35V 0 4 Ub 12V Gold DA 1 5 Ub 12V Gold CO1 1 1 Power up current Ethernet Interface Ipower on Enet Ub 12V 2 1 Ub 12V Gold DA...

Страница 50: ...IO per DIO line 35 mA ITOTAL all DIGIN or all DIGOUT via VCC GND 70 EVENT Input Edge recognition pos VT Low VCC 5V 1 65 1 9 2 15 V Switching hysteresis VT VT 0 4 0 9 Input current IIH VI 2 7V 20 A II...

Страница 51: ...16 bit Number 2 with DA add on 8 Output voltage Uout 10 9 999695 V Settling time tsettle 2V jump 3 s FSR a 20V 10 Permissible current 25 mA Integral non linearity INL 2 LSB Differential non linearity...

Страница 52: ...ency fref 20 MHz Prescaler by 4 fref 4 5 Accuracy and Drift 100 ppm Counter inputs differentiala Differential input thresh old voltage VTH 10V VCM 13 2V 200 200 mV Input hysteresis VTH 10V VCM 13 2V 4...

Страница 53: ...6 bit x x x x x x x x x x x x x x 20400120 Read out register and start conver sion ADC 1 14 bit x x x x x x x x x 0 0 x x x 20400130 Read out register ADC 1 14 bit x x x x x x x x x 0 0 x x x 20400140...

Страница 54: ...counter CNT_CLEAR x x x x x 0 no effect x 1 clear counter x x x 20400320 Latch counter CNT_LATCH x x x x x 0 no effect x 1 latch counter x x x 20400330 Select counter input CLR or LATCH x x x x x 0 CL...

Страница 55: ...a connection to PC no longer via link but via Ethernet or USB All analog inputs and counter inputs are only available with differential operation mode B3 Nov 2003 Additional TTL counter inputs for sin...

Страница 56: ...h CONF_DIO 17 Fig 14 Hardware addresses of the control and data registers for the digital inputs outputs 17 Fig 15 Pin assignment of the DA add on 22 Fig 16 Block diagram of the Gold CO1 counter add o...

Страница 57: ...n 28 Gold CO1 23 impulse width measurement 29 operating modes 23 E Earthing 6 Encoder 28 Event CAN bus 38 input resistor 9 rising edge 14 F Four edge evaluation 28 G Gain factor kV 13 I impulse width...

Отзывы: