CN106706019A - Trunnion axis resolver detection device - Google Patents
Trunnion axis resolver detection device Download PDFInfo
- Publication number
- CN106706019A CN106706019A CN201710061722.1A CN201710061722A CN106706019A CN 106706019 A CN106706019 A CN 106706019A CN 201710061722 A CN201710061722 A CN 201710061722A CN 106706019 A CN106706019 A CN 106706019A
- Authority
- CN
- China
- Prior art keywords
- data
- pin
- angle
- mil
- input
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01D—MEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
- G01D18/00—Testing or calibrating apparatus or arrangements provided for in groups G01D1/00 - G01D15/00
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Looms (AREA)
Abstract
The invention discloses a detection device for electronic detection of the precision and zero position of a trunnion axis resolver, and belongs to the technical field of electricity. The device comprises a power conversion module, a resolver-to-angle converter module, a data display unit, a control keyboard unit and a data processing and computing unit. The rotating angle amount is output in real time through connecting the trunnion axis resolver and rotating a rotation shaft of a trunnion, so that the function of automatically detecting the zero position and precision of a trunnion axis is achieved; when the output rotating angle amount is displayed, the detection device has two display modes, the dimension is degree or mil for outputting and displaying, and the two display modes can be mutually switched; the detection device has the function of manually inputting angle data that the dimension is degree or mil; through angle unit conversion calculation, the data corresponding to the dimension which is degree or mil can be calculated and displayed, and the man-machine efficacy is good; and two power supply modes of AC 220V power supply or DC 24V power supply can be adopted, the detection device adapts to power supply of an on-board power supply or an off-the-car power supply, and thus the detection process is not limited by regions.
Description
Technical field
The invention belongs to technical field of electricity, it is applied in the development and production process of tank, to axis of trunnions solver
The device that installation accuracy and zero-bit are detected.
Background technology
In tank fire control system, the main task that photoelectric observing takes aim at equipment (vehicle commander's mirror, gun commander's mirror) is to target search, sees
Examine, aim at and find range, then drive or turn cannon and target is shot at.Sight is taken aim at and electric synchronization is used between equipment and cannon
Design, and realize seeing that to take aim at the sensor that equipment is connected with cannon be exactly axis of trunnions solver, its precision determines system
Synchronization accuracy, be also influence cannon precision fire key factor.
Axis of trunnions solver is angular transducer, is also rotary transformer, is placed on gun tube afterbody, for measuring gun tube phase
To the luffing angle of car body, its input reference voltage is measured according to angle of rotation, corresponding output simulation cosine and sine signal.The axis of trunnions
Solver detection means is finally converted into visual numeral letter by gathering the analog angle amount that axis of trunnions solver is exported
Number.Cleaning Principle is the signals of rotating transformer for exporting axis of trunnions solver, and digital full-shape is converted to by resolver-to-angle converter
Amount, giving microprocessor carries out anglec of rotation computing and shows, therefore axis of trunnions solver detection means includes:Power conversion mould
Block, resolver-to-angle converter module, data display unit, control keyboard unit and data processing and arithmetic element.
At present, to the precision and zero testing of axis of trunnions solver, mainly mechanically measure, concrete operations
It is:Axis of trunnions solver is arranged in the gudgeon hole of tank turret, quadrant is fixed in gun tube afterbody, referred to by quadrant
Show, gun tube is adjusted to horizontal level, this moment by the zero position of the axis of trunnions, and fasten the mounting screw of axis of trunnions solver.
After gun tube is shaken away, whether back to zero position is shaken again by quadrant, contrast axis of trunnions solver in zero-bit, to detect the axis of trunnions
Whether solver zero-bit meets requirement.Gun tube contrasts the output angle angle value of axis of trunnions solver in pitching to rotational angle simultaneously,
To judge whether axis of trunnions solver precision meets requirement.This detection method has certain reliability and degree of accuracy, but
Complex operation, and if detecting that the zero-bit or precision of axis of trunnions solver are faulty, it is necessary to change solver, just must be from big gun
Disassembled on tower, increased repetition operation intensity, damage is also easily caused to equipment.
In type and the report of application field at home and abroad on angle detection device, on for axis of trunnions solver
Electronic detecting device the related not disclosed report of detailed technology content.
The content of the invention
The purpose of the present invention is aiming at the deficiency existing for prior art, there is provided one kind being capable of detection of electrons axis of trunnions solution
Calculate the detection means of device precision and zero-bit.
The technical scheme is that:
A kind of axis of trunnions solver detection means, it is characterised in that:Including power conversion module, resolver-to-angle converter mould
Block, data display unit, control keyboard unit and data processing and arithmetic element;
The power conversion module is powered to whole detection means, and the power conversion module is provided to resolver-to-angle converter
15V DC power signals, carry to resolver-to-angle converter, data processing and arithmetic element, data display unit and control keyboard unit
For 5V DC power signals, all devices are altogether;
The line signals of rotating transformer of axis of trunnions solver four and reference signal are converted to 16 by the resolver-to-angle converter module
The angle digital quantity of position;
The angle value of the data display unit display axis of trunnions solver output in real time;And the amount that display is manually entered
The data of guiding principle degree of being every minute and second/mil, and show that hand input-data is converted into the data value that dimension is mil/angle;
The control keyboard unit constitutes 4 row × 4 column matrix by 16 buttons, with digital keys and control button, 16
Individual button is connected with microcontroller respectively, realizes the input of data, the switching of dimension and display control;
The data processing and 16 bit digital quantities of arithmetic element collection resolver-to-angle converter module output, carry out correspondence display
The computing of dimension, data display unit is delivered to by result of calculation;The data processing can will be manually entered number with arithmetic element
According to the data after being converted with dimension, data display unit is delivered to.
Further preferred scheme, a kind of axis of trunnions solver detection means, it is characterised in that:Power conversion module
Using direct current with exchange two kinds of power supply modes, if direct current supply, by the 24V and 24V of dc source respectively with detection means
On direct current 24V positive terminals be connected with 24V negative terminals, if Alternating Current Power Supply, by the friendship of AC220V voltages and power conversion module
Stream power end be connected, conversion output 24V just with 24V ground;24V is just being respectively connected to first with 24V in power conversion module straight
Stream-DC power supplier, the second DC-DC power supply module and direct-current-alternating-current converter, the first DC-DC power supply module
Input 24V, output 15V are just, 15V is negative and ground, and the second DC-DC power supply module input 24V, output 5V are just and ground;Direct current-friendship
Current converter be input into 24V, export AC signal 400Hz_H and 400Hz_L, the AC signal be voltage 26V, frequency 400Hz,
Power 20VA.
Further preferred scheme, a kind of axis of trunnions solver detection means, it is characterised in that:Resolver-to-angle converter mould
Block chip pin includes power pins, input signal pin, controlling switch and data pin;
Power pins give resolver-to-angle converter module for power supply, and annexation is:Pin+15V is just connected with 15V, pin -15V
With 15V negatives connect, pin+5V be just connected with 5V, pin GND is connected to the ground, and pin RH is connected with 400Hz_H, pin RL and
400Hz_L is connected;
Input signal pin is connected with axis of trunnions solver, the axis of trunnions solver output Z1, Z2 cosine winding signal and Z3,
Z4 sine windings signal enters resolver-to-angle converter module through input signal pin;
Controlling switch includes enabling signal pins and disable signal pin, with microcontroller in data processing and arithmetic element
Control port be connected, enable signal pins by the output of microprocessor control data pin, disable signal pin is by micro-
Controller control data reads;
Data pin is constituted by 1-16, and data pin 1-8 and 9-16 is connected with microcontroller respectively.
Further preferred scheme, a kind of axis of trunnions solver detection means, it is characterised in that:The data display
Unit is made up of 14 8 segment numeral pipes and 4 LED charactrons;Wherein 14 8 segment numeral pipes are made up of two rows respectively, on
The angle values of row's 78 segment numeral pipes display axis of trunnions solvers output in real time, allow hand over display correspondence dimension for degree every minute and second/
The data of mil, 78 segment numeral pipes of lower row show the data for being manually entered dimension degree of being every minute and second/mil, and display is manually entered
Data reduction into dimension for mil/angle data value;4 LED charactrons are also made up of upper and lower two parts, the segment numeral of upper row 8
There are two LED charactrons pipe side, and there are two LED charactrons the segment numeral pipe side of lower row 8, indicate respectively the amount of display data
Guiding principle.
Beneficial effect
Overall technology effect of the invention embodies in the following areas:
(1) in the present invention, by connecting axis of trunnions solver, the rotary shaft of gudgeon is rotated, rotational angle is exported in real time
Amount, is achieved in the function of automatic detection axis of trunnions zero-bit and precision.Compared with prior art, the easy testing process of the present invention
With reduce working strength.
(2) in the present invention, certainty of measurement is up to better than 0.00139 ° or better than 0.02315mil.With high accuracy and
High reliability.
(3) it is of the invention when display output angle of rotation is measured, with two amounts guiding principle display pattern:Degree (°) or mil
(mil), two kinds of display patterns can mutually switch.Compared with prior art, the present invention facilitate testing staff to the observation of data and
Analysis, improves operating efficiency.
(4) present invention has the angle-data for being manually entered dimension to spend (°) or mil (mil), is turned by angular unit
Calculating is changed, the angle value that correspondence dimension is mil (mil) or degree (°) is can obtain and show.Compared with prior art, the present invention exists
Detection rotational angle simultaneously, possesses Angle unit transform computing function.
(5) present invention powers with alternating current 220V or direct current 24V powers two kinds of powering modes, is adapted on car or under car
Power supply is powered, and facilitates detection means.
Brief description of the drawings
Fig. 1 (a) is outward appearance front view of the present invention, and (b) is manually entered angle-data value, and (c) is manually entered mil datagram,
Fig. 1 (d) is outward appearance rearview of the present invention.
Each sequence number identifier declarations of Fig. 1 (a):1、GUN Trunnion Resolver Tester:Axis of trunnions solver is detected
Device;2、Gun Trunnion Resolver Date Output:Axis of trunnions solver output data is shown in real time, by 78
Segment numeral pipe is constituted, and first is sign bit, and six is data bit afterwards;3、Degree/mil Unitconversion:Display is defeated
Enter/data are calculated, it is made up of 78 segment numeral pipes, first is sign bit, and six is data bit, the degree that display is manually entered afterwards
Mil/degree every minute and second data after every minute and second/mil data, and its conversion;4、Mil:When axis of trunnions solver output data dimension is
During mil,【Mil】Lamp is lighted;5、Degree:When axis of trunnions solver output data dimension is for degree every minute and second,【Degree】Lamp point
It is bright;6、Degree Input:It is corresponding when its data dimension is for degree every minute and second when being manually entered or calculating data【Degree
Input】Lamp is lighted;7、Mil Input:It is corresponding when its dimension is mil when being manually entered or calculating data【Mil
Input】Lamp is lighted;8、【Select】Button:Upper row LED displays switching can do mil/angular circulation switching, and start is defaulted as close
Position output;9、【Degree Input】Button:It is defeated successively from left to right by numeric keypad after pressing this key as shown in Fig. 1 (b)
Enter, sign bit is input into " 0 " for just, "-" is negative;10、【Mil Input】Button:After pressing this key as shown in figure (c), by number
Word keyboard sequentially inputs from left to right, and sign bit is input into " 0 " for just, "-" is negative;11、【OK】Button:Degree of being manually entered point
After second (mil) data, press this key, mil (degree every minute and second) numerical value can be automatically converted to.This key is recyclable to be pressed, cyclic switching
Display degree every minute and second/mil numerical value, before non-input data, this key is not responding to;12、【—】Button:During hand input-data, data are
During negative value, sign bit is pressed this key, if other positions are input into this key, 8 segment numeral pipes can show " ERROR ";13、【CLR】Button:Press
Lower this key, closes 78 segment numeral pipes of lower row and shows;14th, digital keys:By numeral【0】~【9】Composition, for input data.
15、POWER:Device power supply (DPS) is switched, and when switch is in position " ON ", connects device power supply (DPS);When switch is in position " OFF "
When, cut off device power supply (DPS);16th, cabinet handle:Handle is used when carrying cabinet.
Each sequence number identifier declarations of Fig. 1 (d):17、AC/DC:Equipment power supply mode selecting switch, when switch is pressed to " AC ",
It is Alternating Current Power Supply pattern;It is direct current supply pattern when switch is pressed to " DC ",;18、DC Input:Direct current binding post, selection is straight
Stream 24V power supplys, "+" pole is meeting 24V just, and "-" pole connects 24V ground;19、AC Input:Exchange binding post:For input AC electricity
Source, selects 50Hz, 220V power supplys, and be provided with 1A protective tubes;20、Gun trunnion resolver:Trunnion axis signal is accessed
End, directly docks with axis of trunnions solver;21、CHINA:Equipment vendors identify.
Fig. 2 is the principle composition frame chart of control device of the present invention.
Fig. 3 is the interface relationship figure of control device of the present invention.
Fig. 4 is the workflow diagram of microcontroller in the present invention.
Specific embodiment
Below in conjunction with the accompanying drawings and embodiment the present invention is described in further detail.
Axis of trunnions solver detection means proposed by the present invention, including power conversion module, resolver-to-angle converter module, data
Display unit, control keyboard unit and data processing and arithmetic element.
Power conversion module is responsible for being powered to whole detection means, and power supply mode has direct current and exchanges two kinds, by device
On selecting switch come determine use direct current or ac power supply method.Direct current supply i.e., the 24V and 24V of dc source is divided
It is not connected with direct current 24V positive terminals and 24V negative terminals in detection means;Alternating Current Power Supply pattern i.e., AC220V voltages and device
Alternating current source be connected, by AC-DC power supply, conversion output 24V just with 24V ground.
24V is just respectively connected to the first DC-DC power, the second DC-DC power and DC-AC with 24V
Converter, wherein DC-DC power 1 are input into 24V, and output 15V is just, 15V is negative and ground, the input of DC-DC power 2 24V, defeated
Go out 5V just and ground;Direct-current-alternating-current converter is input into 24V, exports AC signal 400Hz_H and 400Hz_L, and this AC signal is electricity
Pressure 26V, frequency 400Hz, power 20VA.
15V is just negative with 15V to access resolver-to-angle converter, and 5V just shows to resolver-to-angle converter, data processing and arithmetic element, data
Show that unit and the chip device of control keyboard unit are powered, all devices are altogether.
The line signals of rotating transformer of axis of trunnions solver four and reference signal are converted to 16 by resolver-to-angle converter module
Angle digital quantity.Resolver-to-angle converter module chip pin draws including power pins, input signal pin, controlling switch and data
Pin.
Power pins give resolver-to-angle converter module for power supply, and annexation is:Pin+15V is just connected with 15V, pin -15V
With 15V negatives connect, pin+5V be just connected with 5V, pin GND is connected to the ground, and pin RH is connected with 400Hz_H, pin RL and
400Hz_L is connected.
Input signal pin is connected with axis of trunnions solver, and axis of trunnions solver output Z1Z2 cosine winding and Z3Z4 are sinusoidal
Winding, wherein pin S1 is connected with Z1, and pin S3 is connected with Z2, and pin S2 is connected with Z3, and pin S4 is connected with Z4.
Controlling switch includes:Enable signal pinsWith disable signal pinWith data processing and computing
The control port of the microcontroller of unit is connected, wherein enabling signal pinsIt is connected with microcontroller ports P3.5, when
During input logic ' 1 ', data pin 1-8 output end is high-impedance state, whenDuring input logic ' 0 ', data pin 1-8 defeated
Go out to hold output data;Enable signal pinsIt is connected with microcontroller ports P3.4, whenDuring input logic ' 1 ', data pin
9-16 output end is high-impedance state, whenDuring input logic ' 0 ', data pin 9-16 output end output data;Disable signal
PinIt is connected with microcontroller ports P3.3, whenDuring input logic ' 0 ', after postponing 600ns, data are steady in latch
It is fixed, readable data, whenDuring input logic ' 1 ', latch carries out data renewal, now forbids reading data.
Data pin is constituted by 1-16, and pin ' 1 ' represents highest order, and ' 16 ' represent lowest order.Data pin 1-8 and
9-16 is connected with the P0 ports of microcontroller respectively.
The angle value of data display unit display axis of trunnions solver output in real time;And the dimension that display is manually entered is
The data of every minute and second/mil are spent, and shows that hand input-data is converted into the data value that dimension is mil/angle.
The data display unit is made up of 14 8 segment numeral pipes and 4 LED charactrons;Wherein 14 8 segment numeral pipes point
It is not made up of two rows, 7 angle values of 8 segment numeral pipes display axis of trunnions solver output in real time of upper row are allowed hand over aobvious
Show the data of correspondence dimension degree of being every minute and second/mil, 78 segment numeral pipes of lower row show and are manually entered dimension degree of being every minute and second/mil
Data, and show that hand input-data is converted into the data value that dimension is mil/angle;4 LED charactrons are also by upper and lower two
It is grouped into, there are upper and lower two LED charactrons on the right side of the segment numeral pipe of upper row 8, top【mil】LED charactrons are ' bright ' to be represented
The segment numeral pipe data of upper row 8 are mil data display, lower section【Degree】8 Digital sum pipes are arranged in ' bright ' representative of LED charactrons
Data are degree every minute and second data display, there is upper and lower two LED charactrons on the right side of the segment numeral pipe of lower row 8, top【Degree
Input】It is degree every minute and second data display that LED charactrons ' bright ' represent 8 segment numeral pipe data of lower row, lower section【mil Input】LED
It is mil data display that charactron ' bright ' represents 8 Digital sum pipe data of lower row.
' a ' ' b ' ' c ' ' d ' ' e ' ' f ' ' g ' ' dp ' of 14 8 segment numeral pipes connects altogether respectively, with PLD 8
Output port is connected, and 15 bit address encoders, 15 latch and buffer are done inside PLD, realizes 14
The data of individual 8 segment numeral pipe and control LED charactrons are respectively stored in buffer, when the choosing of certain 8 segment numeral pipe ' com ' port
When middle, 8 segment numeral pipes are given by the data in corresponding buffer, realize the display of data;When LED control ends are chosen, by LED
Low 4 digit in buffer corresponds to 4 LED respectively, and LED corresponding datas go out when being ' 1 ', bright when being ' 0 '.
P2.4~the P2.7 of microcontroller is connected with 4 input ports of PLD respectively, programmable
Realize 15 bit address encoders inside logical device, exportable 15 addresses pass through with the write control signal of microcontroller respectively with
Not gate, is connected to the data latch port of latch, control when by P0 mouthful 8 segment numeral pipe data of output of microcontroller with
4 LED data are latching in 74377 latch.
14 ' com ' ends of 8 segment numeral pipes, are connected, in FPGA with 14 output ports of PLD
Device inside does scaling down processing, introduces crystal oscillator frequency, and its frequency is 11.0592MHz, and frequency is after first carrying out 200 frequency dividings
11059200Hz/200=55296Hz, then build 15 by logics such as 15 d type flip flops, 14 XOR gates and 1 not gates and select 1
Logic, i.e., 14 8 segment numeral pipes choose successively, and a reset terminal removes all outputs of d type flip flop, and frequency of its display is
55296Hz/15=3686.4Hz, i.e. 0.27ms, much smaller than the frequency that human eye is differentiated.When the com ports of 8 segment numeral pipes are chosen
When, can by 74377 latch export data by one-way damper deliver to correspondence 8 segment numeral pipes ' a ', ' b ', ' c ', ' d ',
' e ', ' f ', ' g ', ' dp ' pin, show corresponding digital value.The Enable Pin of the 15th buffer puts enable, by the 15th
Data in 74377 latch deliver to 4 negative electrodes of LED, LED anode connection 5V respectively through resistance.
Control keyboard unit constitutes 4 row × 4 column matrix by 16 buttons, and with digital keys and control button, 16 are pressed
Key is connected with microcontroller respectively, realizes the input of data, the switching of dimension and display control.
4 lines are identified with H1~H4 respectively, and 4 alignments are identified with L1~L4, H1~H4 respectively with microcontroller
P1.0~P1.3 pins are connected, and L1~L4 is connected with 4 input ports of PLD respectively, with the P1.4 of microcontroller~
P1.7 pins are connected, while being connected with 5V by 4 pull-up resistors.Passed through in the signal input of L1~L4 to PLD
Cross and be connected with the pin of external interrupt 0 of microcontroller with door, output INTO signals, when L1~L4 is all high level, INT0 is defeated
Go out high level, when any one signal is low level in L1~L4, INT0 output low levels, so as to trigger microcontroller entrance
External interrupt.
During program initialization, number is put to microcontroller P1 ports, P1=0xf0, then H1~H4 be high level, L1~L4
Low level is, after any button is pressed in matrix keyboard, H lines are connected with L lines, H line level is pulled low, INTO exports low electricity
Flat, triggering microcontroller enters external interrupt, in outside interrupt routine, button is pressed into flag bit flag_key and puts 1, in master
In the loop body of function, if judging flag_key==1 every time, matrix keyboard scanning and keyboard-coding are carried out, return is pressed
The scope of button corresponding encoded radio down, keyboard-coding value down is 1~16, if judging down in main program cycle body!=
0, then into keycontrl (down) function, in keycontrl (down) function, according to keyboard-coding value, pass through
Switch-case functions, selection alignment processing function carries out data calculating.Press【SELECT】Button, correspondence case1, program
Into ledCnv () function, flag bit flag1 is negated to be shown in real time to shaft angle solver;Press【Degree Input】Button
As shown in Fig. 1 (b), the Digital sum pipe of lower row 8, into ledAngle () function, is shown flag bit flag2=1 by correspondence case2,
8 Digital sum pipe angles of display data of lower row are represented, with the code pipe display dimension flag bit f_led2=0x01 of row at present, lower row's
Degree Input lamps are bright, lower row's input data counter led2_counter=7.Press【mil Input】Button such as Fig. 1
C shown in (), the Digital sum pipe of lower row 8, into ledMils () function, is shown flag bit flag2=0, under expression by correspondence case3
8 Digital sum pipes display mil data are arranged, with the code pipe display dimension of row at present flag bit f_led2=0x00, the mil of lower row
Input lamps are bright, lower row's input data counter led2_counter=7.Press【OK】Button, correspondence case4, into ledEnt
() function, if flag2==1, be this moment angle-data, it is necessary to carry out angle to the translation operation of mil, while will indicate
Position flag2=0 and f_led2=0x00;It is this moment mil data, it is necessary to carry out mil turning to angle if flag2==0
Computing is changed, while by flag bit flag2=1 and f_led2=0x01.Press【CLR】Button, correspondence case8, into ledClr
() function, the Digital sum pipe of lower row 8 is all extinguished, while f_led2=0xff.Remaining button includes:Press【0】Button, it is right
Case13 is answered, into led2_key_Buf (0) function, " 0 " is shown in correspondence position;Press【1】Button, correspondence case14,
Into led2_key_Buf (1) function, " 1 " is shown in correspondence position;Press【2】Button, correspondence case15, into led2_
Key_Buf (2) function, " 2 " are shown in correspondence position;Press【3】Button, correspondence case16, into led2_key_Buf (3)
Function, " 3 " are shown in correspondence position;Press【4】Button, correspondence case9, into led2_key_Buf (4) function, by " 4 "
Shown in correspondence position;Press【5】Button, correspondence case10, into led2_key_Buf (5) function, by " 5 " in correspondence position
Display;Press【6】Button, correspondence case11, into led2_key_Buf (6) function, " 6 " is shown in correspondence position;Press
【7】Button, correspondence case10, into led2_key_Buf (7) function, " 7 " is shown in correspondence position;Press【8】Button, it is right
Case5 is answered, into led2_key_Buf (8) function, " 8 " is shown in correspondence position;Press【9】Button, correspondence case6, enters
Enter led2_key_Buf (9) function, " 9 " are shown in correspondence position;Press【-】Button, correspondence case7, into led2_key_
Buf (10) function, "-" is shown in correspondence position;Button is manually entered by counter led2_counter to control, per defeated
Enter a numeral, into led2_key_Buf () function, counter led2_counter-- works as led2_counter==0
When, then into error () function, by lower row's numeral method " ERRO " character.
Data processing and 16 bit digital quantities of arithmetic element collection resolver-to-angle converter module output, carry out correspondence display dimension
Computing, result of calculation is delivered into data display unit;The data processing and arithmetic element can by hand input-data and
Data after dimension conversion, deliver to data display unit.
As shown in figure 4, in the loop body of main program, first obtaining 16 bit digital quantity xsz_ of resolver-to-angle converter module output
Out, i.e. xsz_out=xszout (), in xszout () function, by signalRead microcontroller P0
Mouthful data to data byte dataH high, i.e. dataH=P0, by signalRead P0 mouthfuls of data of microcontroller
To low data byte dataL, i.e. dataL=P0, finally by signalBy data byte high and low data word
Section merges into xsz_out=dataL+ (dataH<<8).
Then judge, if flag1==0, the dimension that upper row's numeral method exports angle data in real time is mil, is entered
Enter milout (xsz_out) function, if (xsz_out>=0x0000) and (xsz_out<0xAAAA), then data are positive number,
Charactron highest order sign bit is " 0 ";If (xsz_out>=0xAAAA) and (xsz_out<=0xffff), then data are negative
Number, charactron highest order sign bit is "-", xsz_out=0x10000-xsz_out;By xsz_out=xsz_out ×
0.0228881836, integer-bit and decimal place are isolated, retain 2 significant digits, and the 3rd digit after decimal point is performed
Round up, data are converted into 8 segment data pipes correspondence display data one by one, array register led1_ is deposited in respectively
Buffer [0]~led1_buffer [6];If flag1==1, upper row's numeral method exports the dimension of angle data in real time
It is degree every minute and second, into angleout (xsz_out) function, if (xsz_out>=0x0000) and (xsz_out<0xAAAA),
Then data are positive number, and charactron highest order sign bit is " 0 ";If (xsz_out>=0xAAAA) and (xsz_out<=
0xffff), then data are negative, and charactron highest order sign bit is "-", xsz_out=0x10000-xsz_out;By xsz_
Out=xsz_out × 0.001373291, separates out-degree, minute, second, and first execution after the decimal point of second is rounded up, will
Data are converted into 8 segment data pipes correspondence display data one by one, and array register led1_buffer [0]~led1_ is deposited in respectively
buffer[6]。
If judging flag_key==1, scan matrix keyboard, the key value that record is pressed, and carry out respective function
Treatment, and lower row's charactron display data is deposited in into array register led2_buffer [0]~led2_buffer respectively
[6]。
Finally by array register led1_buffer [0]~led1_buffer [6], led2_buffer [0]~led2_
Data in buffer [6], are respectively written into 14 latch of PLD, while judgement symbol position, if (flag1
==0) and (f_led2==0x00), then LED registers ds=0xf6, and write the 15th lock of PLD
Storage, correspondence【mil】Lamp and【mil Input】LED is bright;If (flag1==0) and (f_led2==0x01), LED
Register ds=0xfa, and the 15th latch of PLD is write, correspondence【mil】Lamp and【Degree Input】
LED is bright;If (flag1==0) and (f_led2==0x00), LED register ds=0xf5, and write programmable patrolling
Collect the 15th latch of device, correspondence【Degree】Lamp and【mil Input】LED is bright;If (flag1==1) and (f_
Led2==0x01), then LED registers ds=0xf9, and the 15th latch of PLD is write, correspondence
【Degree】Lamp and【Degree Input】LED is bright;(if flag1==0) and (f_led2==0xff), LED is posted
Storage ds=0xfe, and the 15th latch of PLD is write, correspondence【mil】Lamp is bright;If (flag1==1)
And (f_led2==0xff), then LED registers ds=0xfd, and the 15th latch of PLD is write,
Correspondence【Degree】Lamp is bright.
According to description above to device, with reference to Fig. 1, Fig. 2, Fig. 3 and Fig. 4, to operating method of the invention and work
It is described in further detail as principle:
Step 1, the embodiment of the present invention includes axis of trunnions solver, electrical connection cable and detection means.By axis of trunnions solution
Calculate device to be fixed on detection supporting plate, use electric connection cable, directly by axis of trunnions solver and the Gun of detection means
Trunnion resolver ports are connected.220V AC powers are connected with the AC Input of equipment (or by 24V dc sources
It is connected with the DC Input of equipment), AC/DC switches are switched to AC (or DC), POWER switches are got to " ON ", and start acquiescence is close
Position display, Gun Trunnion Resolver Date Output display axis of trunnions solver output mil data,【Mil】Lamp
It is bright,【Degree】Lamp is gone out, and rotates the rotary shaft of axis of trunnions solver, and display data is refreshed in real time, is pressed【SELECT】Button, cuts
Axis of trunnions solver output display degree every minute and second data are changed to,【Degree】Lamp is bright,【Mil】Lamp goes out.Detectable axis of trunnions solver
The precision and zero value of output, the scope of detection is -30 °~+60 °, and accuracy of detection is better than 0.00139 °.In the present embodiment, make
Excitation power supply model J20-S24C26IC, axes-angle conversion module model 16XSZ3412-02/7, connect axis of trunnions solution
Calculate the connector model Y11P-1210ZJ10 of device.
Step 2, presses【Degree Input】Button, Degree/mil Unitconversion are shown such as Fig. 1 (b) institutes
Show, Degree Input lamps are bright, 0,3,0,2,5,4,2 pressed successively, represent that input data is 30 ° 25 ' 42 ", press【OK】Press
Key, display data is 00507.14,【Degree Input】Lamp goes out,【Mil Input】Lamp is bright, that is, calculate 30 ° 25 ' it is 42 " right
Answer 507.14 mils.Press【CLR】Button, Degree mil Unitconversion go out, Degree Input lamps go out, Mil
Input lamps go out.
Step 3, is divided into excitation power supply, power transfer module, axes-angle conversion module, microcontroller, can compile in detection means
Journey logic device, send aobvious and peripheral circuits, display screen and key zone.As shown in Fig. 2 control device interface relationship figures, Power convert mould
Block group input direct-current 24V, exports direct current ± 15V and direct current 5V voltages, there is provided to each chip and module;Excitation power supply input direct-current
24V, output exchange 26V, frequency is the voltage signal of 400Hz, there is provided to axis of trunnions solver and axes-angle conversion module;The axis of trunnions
Solver is input into the reference signal of excitation power supply according to the angular metric for rotating, and cosine and sine signal S1, S2, S3 and S4 are simulated in output,
It is supplied to axes-angle conversion module;Microcontroller connects the controlling switch end of shaft angle modular converter, control module difference output angle
Least-significant byte and most-significant byte digital quantity, most-significant byte and least-significant byte digital quantity be combined into 16 bit digital quantity uint xsz_ by microcontroller
Out, acquiescence output dimension is mil (mil), is shown into mil and calculated, and first determines whether the span of xsz_out, if
In [0x0000,0x Α Α Α Α] is interval, output data is the just symbol of Gun Trunnion Resolver Date Output
Number position is shown as " 0 ", corresponding to send aobvious FPGA registers to be set to led1_buffer [6]=0x3f, if in (0x Α Α Α
Α, 0xFFFF] it is interval interior, output data is negative, and the sign bit of Gun Trunnion Resolver Date Output is shown as
"-", led1_buffer [6]=0x40 is set to corresponding FPGA registers, while calculating xsz_out=0x10000-
Xsz_out because axes-angle conversion module output [0x0000,0xFFFF] totally 65536 code values correspond to respectively (- 500mil,
1000mil], then 1 code value correspondence 0.02288818, m meters il calculates value the float xsz_mil, xsz_mil=xsz_ for exporting
Out × 0.02288818mil, xsz_mil retain 2 significant digits and convert the data into corresponding binary-coded decimal, are respectively written into
1~7 data register of FPGA, 14 frequency division modules, 14 data registers and 14 data is set up in FPGA and send aobvious module,
14 frequency division modules are input into the frequency of crystal oscillator, crystal oscillator frequency is sequentially allocated and send aobvious module to 14 data, make it by corresponding data
Data in register give LED charactrons.If angle-data is exported, 65536 code values correspond to respectively (- 30 °, 60 °], then 1
Individual 0.00137329 ° of code value correspondence, value the float xsz_angle, xsz_angle=xsz_out that calculating is exported ×
0.00137329 °, out-degree, the corresponding data of minute, second being calculated respectively, writing 1~7 data register of FPGA, data send aobvious mould
Block can be by the Refresh Data in register to LED charactrons.As long as 14 frequency division modules ensure cycle period<20ms, people counts soon
Code pipe is there will be no the sensation that data flash.
Step 3,4 lines connection microprocessor control port of 4 × 4 matrix keyboards, it is low level to draw, and 4 alignments connect
4 I/O input ports of FPGA are connect, by exporting with door to the I/O delivery outlets of FPGA, the external interrupt with microcontroller
It is connected.When no button is pressed, high level is exported with door, after any button is pressed, microcontroller is made with door output low level
Device enters interrupt response function, performs keyboard scan program, and determination key coding=row scan values+column scan value judge that key is encoded
Into corresponding processing routine, 16 kinds of key codings and its treatment function are had.
Step 4, in Angle unit transform computing unit, presses【Angle Input】Button, microcontroller response button
Message, Angle Input lamps are bright, put flag bit flag2=1, Degree shown in mil Unitconversion such as Fig. 1 (b),
The led separations of " degree " " dividing " " second " are lighted, while setting data input counter led2_counter=7, keystroke is put manually
Panel, continue input 7 buttons, Degree mil Unitconversion show corresponding data from left to right successively, be often input into one
Individual button, counter subtracts led2_counter-- certainly, while the binary-coded decimal correspondence of data is stored in into 8~14 data registers of FPGA
Device.First incoming symbol position, if input " positive number " when, press【0】If being input into negative, press【—】, then it is input into two parallactic angle degree
Value, two parallactic angle score values, two parallactic angle seconds values after the completion of input, are pressed【OK】Button, program performs conversion and calculates, according to flag bit
Flag2 is to need execution angle value to be converted to mil value knowable to 1 to calculate, according to angle mil relation:360 °=6000mil, i.e.,
1 °=16.66667mil, the mil value after conversion can be calculated, then the mil value for calculating retains 2 significant digits, by number
According to 8~14 data registers of correspondence write-in FPGA, aobvious module is sent by FPGA data, 8~14 data registers are sent successively
Enter Degree mil Unitconversion LED charactrons, while Angle Input lamps go out, mil Input lamps are bright, put mark
Will position flag2=0.Similarly, press【Mil Input】Button, microcontroller response press key message, Mil Input lamps are bright, put mark
Will position flag2=0, Degree mil Unitconversion such as Fig. 1 (c) it is shown, light " individual position led separations, while setting
Put data input counter led1_counter=7, keyboard region clicked on manually, continue input 7 buttons, Degree mil
Unitconversion shows corresponding data from left to right successively, is often input into a button, and counter subtracts led1_ certainly
Counter--, while the binary-coded decimal correspondence of data is stored in into 8~14 data registers of FPGA.First incoming symbol position, if defeated
When entering " positive number ", press【0】If being input into negative, press【—】, four integers are then input into before decimal point, it is input into after decimal point
Two bits, after the completion of input, press【OK】Button, program performs conversion and calculates, the needs according to knowable to flag bit flag2 is 0
Perform mil value and be converted to angle value calculating, according to mil angular relationship:6000mil=360 °, i.e., 1mil=0.06 °, can count
Calculate the angle value after conversion, then calculate the data of " angle " " angle point " " rad ", by the 8~14 of data correspondence write-in FPGA
Data register, aobvious module is sent by FPGA data, and 8~14 data registers are sequentially sent into Degree/mil
The LED charactrons of Unitconversion, while mil Input lamps go out, Angle Input lamps are bright, put flag bit flag2=1.
Step 5, clicks on【CLR】Button, microcontroller respective keys are interrupted, and will write 8~14 data registers of FPGA
Middle zeros data, and【mil Input】Lamp goes out,【Angle Input】Lamp goes out.
Claims (4)
1. a kind of axis of trunnions solver detection means, it is characterised in that:Including power conversion module, resolver-to-angle converter module, number
According to display unit, control keyboard unit and data processing and arithmetic element;
The power conversion module is powered to whole detection means, and it is straight that the power conversion module provides 15V to resolver-to-angle converter
Stream power supply signal, provides 5V straight to resolver-to-angle converter, data processing and arithmetic element, data display unit and control keyboard unit
Stream power supply signal, all devices are altogether;
The line signals of rotating transformer of axis of trunnions solver four and reference signal are converted to 16 by the resolver-to-angle converter module
Angle digital quantity;
The angle value of the data display unit display axis of trunnions solver output in real time;And the dimension that display is manually entered is
The data of every minute and second/mil are spent, and shows that hand input-data is converted into the data value that dimension is mil/angle;
The control keyboard unit constitutes 4 row × 4 column matrix by 16 buttons, and with digital keys and control button, 16 are pressed
Key is connected with microcontroller respectively, realizes the input of data, the switching of dimension and display control;
The data processing and 16 bit digital quantities of arithmetic element collection resolver-to-angle converter module output, carry out correspondence display dimension
Computing, result of calculation is delivered into data display unit;The data processing and arithmetic element can by hand input-data and
Data after dimension conversion, deliver to data display unit.
2. a kind of axis of trunnions solver detection means according to claim 1, it is characterised in that:Power conversion module is using straight
Stream and exchange two kinds of power supply modes, if direct current supply, by the 24V and 24V of dc source respectively with detection means on it is straight
Stream 24V positive terminals are connected with 24V negative terminals, if Alternating Current Power Supply, by AC220V voltages and the AC power of power conversion module
End be connected, conversion output 24V just with 24V ground;24V is just respectively connected to the first DC-to-dc with 24V in power conversion module
Power module, the second DC-DC power supply module and direct-current-alternating-current converter, the first DC-DC power supply module input 24V,
Output 15V is just, 15V is negative and ground, and the second DC-DC power supply module input 24V, output 5V are just and ground;Direct-current-alternating-current converter
Input 24V, exports AC signal 400Hz_H and 400Hz_L, and the AC signal is voltage 26V, frequency 400Hz, power 20VA.
3. a kind of axis of trunnions solver detection means according to claim 1, it is characterised in that:Resolver-to-angle converter module chip
Pin includes power pins, input signal pin, controlling switch and data pin;
Power pins give resolver-to-angle converter module for power supply, and annexation is:Pin+15V is just connected with 15V, pin -15V and 15V
Negative connects, pin+5V is just connected with 5V, and pin GND is connected to the ground, and pin RH is connected with 400Hz_H, pin RL and 400Hz_L
It is connected;
Input signal pin is connected with axis of trunnions solver, and axis of trunnions solver output Z1, Z2 cosine winding signal and Z3, Z4 are just
Chorded winding signal enters resolver-to-angle converter module through input signal pin;
Controlling switch includes enabling signal pins and disable signal pin, the control with microcontroller in data processing and arithmetic element
Port processed is connected, and enables output of the signal pins by microprocessor control data pin, and disable signal pin passes through microcontroller
Device control data reads;
Data pin is constituted by 1-16, and data pin 1-8 and 9-16 is connected with microcontroller respectively.
4. a kind of axis of trunnions solver detection means according to claim 1, it is characterised in that:The data display unit by
14 8 segment numeral pipes and 4 LED charactrons compositions;Wherein 14 8 segment numeral pipes are made up of two rows respectively, upper row 78
The angle value of segment numeral pipe display axis of trunnions solver output in real time, allows hand over display correspondence dimension degree of being every minute and second/mil
Data, 78 segment numeral pipes of lower row show the data for being manually entered dimension degree of being every minute and second/mil, and show that hand input-data is changed
It is counted as the data value that dimension is mil/angle;4 LED charactrons are also made up of upper and lower two parts, the segment numeral pipe side of upper row 8
There are two LED charactrons, the segment numeral pipe side of lower row 8 there are two LED charactrons, indicates respectively the dimension of display data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710061722.1A CN106706019A (en) | 2017-01-26 | 2017-01-26 | Trunnion axis resolver detection device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710061722.1A CN106706019A (en) | 2017-01-26 | 2017-01-26 | Trunnion axis resolver detection device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106706019A true CN106706019A (en) | 2017-05-24 |
Family
ID=58909769
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710061722.1A Pending CN106706019A (en) | 2017-01-26 | 2017-01-26 | Trunnion axis resolver detection device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106706019A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101424929A (en) * | 2008-11-25 | 2009-05-06 | 连云港杰瑞电子有限公司 | Multichannel angle data sampler |
CN203454922U (en) * | 2013-05-14 | 2014-02-26 | 中国人民解放军总装备部军械技术研究所 | Detector for cannon servo system |
CN104354322A (en) * | 2014-09-29 | 2015-02-18 | 扬州大祺自动化技术有限公司 | Electronic cam controller for mechanical pressing machine |
-
2017
- 2017-01-26 CN CN201710061722.1A patent/CN106706019A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101424929A (en) * | 2008-11-25 | 2009-05-06 | 连云港杰瑞电子有限公司 | Multichannel angle data sampler |
CN203454922U (en) * | 2013-05-14 | 2014-02-26 | 中国人民解放军总装备部军械技术研究所 | Detector for cannon servo system |
CN104354322A (en) * | 2014-09-29 | 2015-02-18 | 扬州大祺自动化技术有限公司 | Electronic cam controller for mechanical pressing machine |
Non-Patent Citations (2)
Title |
---|
李俊霞: "轴角转换器专用测试平台的设计", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 * |
王成: "基于旋转变压器的角位置传感器编码控制技术研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101430844A (en) | Display apparatus | |
CN208207122U (en) | polarity tester | |
CN206696365U (en) | Intelligent cable correcting line machine | |
CN104236519B (en) | Three-dimensional perspective measurement apparatus | |
CN203799003U (en) | Integrated online verification calibrator for voltage-withstand tester | |
CN106706019A (en) | Trunnion axis resolver detection device | |
CN204596282U (en) | A kind of educational aid of interactive learning circuit | |
CN107491004A (en) | Intelligent weighing tester and its application method | |
CN200944111Y (en) | Water quality analyzer with wireless communication function | |
CN208238742U (en) | Encoder test platform | |
CN104237619A (en) | Intelligent avometer | |
CN201653448U (en) | Sensor automatic collecting device with manual comparison function | |
CN208238821U (en) | encoder tester | |
CN201247298Y (en) | Automatic recognizing instrument for relay protection differential vector | |
CN207780112U (en) | A kind of artificial intelligence electric energy meter for simulating field failure | |
CN206490021U (en) | A kind of easy pin type switch of inclination | |
CN101162161B (en) | Water meter with electronic counting device having clearance transmission mechanism | |
CN207020295U (en) | A kind of insulating check device and insulating check instrument | |
CN206038895U (en) | Harmonic is multichannel error calculation device for electric energy meter verification | |
CN206322350U (en) | Electric energy metrical training apparatus | |
CN1866042A (en) | Testing circuit of multifunctional cable tester | |
CN205102775U (en) | Magnetism angle sensor based on MLX90316 | |
CN106370928A (en) | Electronic watt-hour meter and measuring method thereof | |
CN207571280U (en) | A kind of electric power overhaul multi-mode electrically source device | |
CN206400061U (en) | A kind of circuit board detecting instrument and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170524 |