CN111045882A - 3D printer grating data acquisition card test system and test method - Google Patents

3D printer grating data acquisition card test system and test method Download PDF

Info

Publication number
CN111045882A
CN111045882A CN201911383092.5A CN201911383092A CN111045882A CN 111045882 A CN111045882 A CN 111045882A CN 201911383092 A CN201911383092 A CN 201911383092A CN 111045882 A CN111045882 A CN 111045882A
Authority
CN
China
Prior art keywords
grating
pin
signal
analog
signals
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.)
Granted
Application number
CN201911383092.5A
Other languages
Chinese (zh)
Other versions
CN111045882B (en
Inventor
黄海刚
刘培超
刘主福
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Yuejiang Technology Co Ltd
Original Assignee
Shenzhen Yuejiang Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Yuejiang Technology Co Ltd filed Critical Shenzhen Yuejiang Technology Co Ltd
Priority to CN201911383092.5A priority Critical patent/CN111045882B/en
Publication of CN111045882A publication Critical patent/CN111045882A/en
Application granted granted Critical
Publication of CN111045882B publication Critical patent/CN111045882B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/261Functional testing by simulating additional hardware, e.g. fault simulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested

Abstract

The application provides a 3D printer grating data acquisition card test system, which comprises a test plate, an arithmetic unit and a simulation 3D printing main controller which are connected in sequence; the test board block is also connected to at least one analog output grating signal module, and the at least one analog output grating signal module is used for being respectively connected to at least one grating data acquisition card to be tested. The application also provides a 3D printer grating data acquisition card testing method which comprises the steps of sending out a control instruction; generating an analog grating signal according to the control instruction; collecting feedback grating signals sent by a grating data acquisition card to be detected; the analog grating signal is compared to the feedback grating signal. According to the grating data acquisition card testing system and the grating data acquisition card testing method, the grating data acquisition card of the 3D printer can be tested without depending on real 3D printer equipment, the organization production efficiency can be improved, and the material cost, the time cost and the labor cost of a user are saved.

Description

3D printer grating data acquisition card test system and test method
Technical Field
The invention relates to the technical field of 3D printers, in particular to a 3D printer grating data acquisition card testing system and a testing method.
Background
The 3D printing technology, also called rapid prototyping technology, is a high and new manufacturing technology based on a material accumulation method, which can manufacture a real object or a real model by a modeling apparatus in a material accumulation manner according to three-dimensional model data of a part or an object. The applicant designs a high-precision 3D printer grating data acquisition card for solving the technical defects that the printing precision of a 3D printer in the prior art is seriously insufficient and a printed product cannot meet the expected requirement, and the grating data acquisition card can synchronously acquire grating signals of an X shaft, a Y shaft and a Z shaft of the 3D printer in real time and detect whether the motor of each shaft is blocked or not according to the acquired grating signals. However, as a product, the grating data acquisition card does not have a technical scheme for quality detection of the product in the prior art.
Disclosure of Invention
According to a first aspect of the application, a 3D printer grating data acquisition card test system is provided, which comprises a test plate block (20), an arithmetic unit (10) and a simulation 3D printing main controller (40) which are connected in sequence; the test board block is used for being connected to at least one analog output grating signal module (31, 32, 33), and the at least one analog output grating signal module is used for being correspondingly connected to at least one 3D printer grating data acquisition card (01, 02, 03) to be tested; the arithmetic unit is used for sending a control instruction to the test plate; the control instruction comprises analog printing state information; the test plate is used for generating an analog grating signal according to the control instruction and sending the analog grating signal to a corresponding grating data acquisition card of the 3D printer to be tested through an analog output grating signal module; the analog 3D printing main controller is used for being connected to the at least one 3D printer grating data acquisition card to be tested, and is used for acquiring feedback grating signals sent by the 3D printer grating data acquisition card to be tested and sending the feedback grating signals to the operation unit; the arithmetic unit is also used for comparing the analog grating signal with the feedback grating signal.
According to a second aspect of the present application, a 3D printer grating data acquisition card testing method is provided, which includes the following processes:
sending a control instruction, wherein the control instruction comprises simulated printing state information;
generating an analog grating signal according to the control instruction and sending the analog grating signal to at least one grating data acquisition card of the 3D printer to be detected;
acquiring a feedback grating signal sent by a grating data acquisition card of the 3D printer to be detected;
the analog grating signal is compared to the feedback grating signal.
The grating data acquisition card testing system and the grating data acquisition card testing method can test the grating data acquisition card of the 3D printer, and can detect whether the function of the grating data acquisition card is normal or not without depending on real 3D printer equipment in the testing process, so that the organization production efficiency can be improved, and the material cost, the time cost and the labor cost of a user can be saved.
Drawings
FIG. 1 is a schematic structural diagram of a 3D printer grating data acquisition card testing system according to a first embodiment;
FIG. 2 is a schematic diagram of a test board block structure according to the first embodiment;
fig. 3 is a schematic circuit diagram of an analog grating signal generator module according to a first embodiment;
FIG. 4 is a schematic diagram illustrating a 3D printer grating data acquisition card for detection in the test system according to the first embodiment;
FIG. 5 is a flowchart of a method for testing a grating data acquisition card of a 3D printer according to an embodiment I;
FIG. 6 is a state transition diagram and a state transition representation of an analog grating signal according to a first embodiment;
fig. 7 is a simulation diagram of an output signal when the analog grating scale of the first embodiment moves in the forward direction;
fig. 8 is a simulation diagram of an output signal when the analog grating scale of the first embodiment moves in the reverse direction.
Detailed Description
The present invention will be described in further detail with reference to the following detailed description and accompanying drawings. Wherein like elements in different embodiments are numbered with like associated elements. In the following description, numerous details are set forth in order to provide a better understanding of the present application. However, those skilled in the art will readily recognize that some of the features may be omitted or replaced with other elements, materials, methods in different instances. In some instances, certain operations related to the present application have not been shown or described in detail in order to avoid obscuring the core of the present application from excessive description, and it is not necessary for those skilled in the art to describe these operations in detail, so that they may be fully understood from the description in the specification and the general knowledge in the art.
Furthermore, the features, operations, or characteristics described in the specification may be combined in any suitable manner to form various embodiments. Also, the various steps or actions in the method descriptions may be transposed or transposed in order, as will be apparent to one of ordinary skill in the art. Thus, the various sequences in the specification and drawings are for the purpose of describing certain embodiments only and are not intended to imply a required sequence unless otherwise indicated where such sequence must be followed.
The numbering of the components as such, e.g., "first", "second", etc., is used herein only to distinguish the objects as described, and does not have any sequential or technical meaning. The term "connected" and "coupled" when used in this application, unless otherwise indicated, includes both direct and indirect connections (couplings).
The first embodiment is as follows:
as shown in fig. 1, the high-precision 3D printer raster data acquisition card test system of the present embodiment includes a PC 50 (Personal Computer, i.e. a computing unit), a test board 20, a main controller 40 for analog 3D printing, and a plurality of modules for analog output raster signals. As shown in fig. 2, the test board block 20 includes an FPGA core board 21 and a circuit module 22 for converting a grating single-ended signal into a differential signal; the FPGA core board 21 includes an ethernet interface module 211, a main control module 212, and an analog raster signal generator module 213.
In this embodiment, there are three analog output raster signal modules, that is, the 3D printer No. 1 analog X/Y/Z axis output raster signal module 31, the 3D printer No. 2 analog X/Y/Z axis output raster signal module 32, and the 3D printer analog X/Y/Z axis output raster signal module 33.
The PC 50, the ethernet interface module 211, the main control module 212, the analog grating signal generator module 213, and the grating single-ended signal to differential signal conversion circuit module 22 are sequentially connected, and the grating single-ended signal to differential signal conversion circuit module 22 is respectively connected to the analog X/Y/Z axis output grating signal module 31 of the 3D printer No. 1, the analog X/Y/Z axis output grating signal module 32 of the 3D printer No. 2, and the analog X/Y/Z axis output grating signal module 33 of the 3D printer No. 3.
As shown in fig. 3, the analog grating signal generator module 213 includes a fifth SN74LVC4245A chip U5, a twelfth SN74LVC4245A chip U12, a sixth MC3487 chip U6, a seventh MC3487 chip U7, and a ninth MC3487 chip U9.
The No. 13 GND pin and the OE pin of the chip U5, and the No. 13 GND pin, the B4 pin, the B3 pin, the B2 pin, the B1 pin and the OE pin of the chip U12 are grounded. The B8 pin, the B7 pin, the B6 pin, the B5 pin, the B4 pin, the B3 pin, the B2 pin, the B1 pin of the chip U5, and the B8 pin, the B7 pin, the B6 pin, and the B5 pin of the chip U12 are connected to the 12 th port (transmitting the THA1 signal), the 11 th port (THB1 signal), the 10 th port (THZ1 signal), the 9 th port (RA1 signal), the 8 th port (RB1 signal), the 7 th port (RZ1 signal), the 6 th port (ZA1 signal), the 5 th port (ZB1 signal), the 4 th port (ZZ1 signal), the 3 rd port (TA1 signal), the 2 nd port (TB1 signal), and the 1 st port (TZ1 signal) of the pin P3, respectively. The No. 23 3.3V pin and the No. 24 3.3V pin of the chip U5 and the No. 23 3.3V pin and the No. 24 3.3V pin of the chip U12 are connected to a 3.3V power supply.
The No. 12 GND pin, the No. 11 GND pin and the DIR pin of the chip U5 and the No. 12 GND pin, the No. 11 GND pin and the DIR pin of the chip U12 are grounded. The A8 pin (transfer THA signal), the a7 pin (THB signal), the A6 pin (THZ signal), the a5 pin (RA signal), the a4 pin (RB signal), the A3 pin (RZ signal), the a2 pin (ZA signal), the a1 pin (ZB signal), and the A8 pin (ZZ signal) of the chip U12, the a7 pin (TA signal), the A6 pin (TB signal), and the a5 pin (TZ signal) of the chip U5 are connected to the 2A pin, the 1A pin, the 4A pin, the 3A pin of the chip U6, and the 2A pin, the 1A pin, the 4A pin, the 3A pin of the chip U7, and the 2A pin, the 1A pin, the 4A pin, and the 3A pin of the chip U9, respectively.
VCC pin, 1,2EN pin, 3,4EN pin of chip U6 and VCC pin, 1,2EN pin, 3,4EN pin of chip U7 and VCC pin, 1,2EN pin and 3,4EN pin of chip U9 are connected to the 5V power. The GND pin of the chip U6, the GND pin of the chip U7, and the GND pin of the chip U9 are grounded.
The 1Y pin (transmitting THB + signal), the 1Z pin (THB-signal), the 2Y pin (THA + signal), the 2Z pin (THA-signal), the 3Y pin (RA + signal), the 3Z pin (RA-signal), the 4Y pin (THZ + signal) and the 4Z pin (THZ-signal) of the chip U6 are connected to the No. 3 port, the No. 4 port, the No. 1 port, the No. 2 port of the plug pin J1 and the No. 1 port, the No. 2 port of the plug pin J2 and the No. 6 port and the No. 7 port of the plug pin J1.
The 1Y pin (transmitting RZ + signal), the 1Z pin (RZ-signal), the 2Y pin (RB + signal), the 2Z pin (RB-signal), the 3Y pin (ZB + signal), the 3Z pin (ZB-signal), the 4Y pin (ZA + signal) and the 4Z pin (ZA-signal) of the chip U7 are connected to the No. 6 port, the No. 7 port, the No. 3 port, the No. 4 port of the pin J2 and the No. 3 port, the No. 4 port, the No. 1 port and the No. 2 port of the pin J4.
The 1Y pin (transmitting TA + signal), the 1Z pin (TA-signal), the 2Y pin (ZZ + signal), the 2Z pin (ZZ-signal), the 3Y pin (TZ + signal), the 3Z pin (TZ-signal), the 4Y pin (TB + signal) and the 4Z pin (TB-signal) of the chip U9 are connected to the No. 1 port, the No. 2 port of the pin J3 and the No. 6 port, the No. 7 port of the pin J4 and the No. 6 port, the No. 7 port, the No. 3 port and the No. 4 port of the pin J3.
The 1Y pin, the 1Z pin, the 2Y pin, the 2Z pin, the 3Y pin, the 3Z pin, the 4Y pin, the 4Z pin of the chip U6, the 1Y pin, the 1Z pin, the 2Y pin, the 2Z pin, the 3Y pin, the 3Z pin, the 4Y pin, the 4Z pin of the chip U7, the 1Y pin, the 1Z pin, the 2Y pin, the 2Z pin, the 3Y pin, the 3Z pin, the 4Y pin and the 4Z pin of the chip U9 are also respectively connected to a VCC power supply through a 4.7K resistor.
Port 15, port 8 of pin J1 (i.e., TH _15_ D), and port 15, port 8 of pin J2 (i.e., R _15_ D), and port 15, port 8 of pin J3 (i.e., T _15_ D), and port 15 and port 8 of pin J4 (i.e., Z _15_ D) are connected to a 5V power supply.
No. 9 and No. 10 ports of the pin J1, and No. 9 and No. 10 ports of the pin J2, and No. 9 and No. 10 ports of the pin J3, and No. 9 and No. 10 ports of the pin J4 are grounded.
When the system is tested, the 3D printer 1 simulating X/Y/Z axis output grating signal module 31, the 3D printer 2 simulating X/Y/Z axis output grating signal module 32 and the 3D printer 3 simulating X/Y/Z axis output grating signal module 33 are respectively connected with the 3D printer grating data acquisition card 01 to be tested 1, the 3D printer grating data acquisition card 02 to be tested 2 and the 3D printer grating data acquisition card 03 to be tested 3. The simulation 3D printing main controller 40 is also respectively connected to a No. 1 tested 3D printer grating data acquisition card 01, a No. 2 tested 3D printer grating data acquisition card 02 and a No. 3 tested 3D printer grating data acquisition card 03; the analog 3D printing main controller 40 is also connected to a PC 50.
Since the X motion axis, the Y motion axis and the Z motion axis of the 3D printer have different operating speeds in the actual model printing process, and the grating signal frequencies output by the grating scales respectively corresponding to the three are also different, the PC 50 can be set in a high-speed mode, a medium-speed mode and a low-speed mode; and the frequency of the analog grating signal in the high-speed mode is greater than that in the medium-speed mode and is greater than that in the low-speed mode, and the analog grating signal operates in a high-speed state, a medium-speed state and a low-speed state respectively corresponding to the motion axis.
Fig. 4 is a schematic structural diagram of a 3D printer raster data acquisition card 10 that can be detected by the test system of the embodiment. The acquisition card 10 includes a grating signal receiving module 11 and an FPGA (Field Programmable Gate Array) control kernel module 12 which are connected with each other; the grating signal receiving module 11 includes a differential signal to single-ended signal circuit 111 and a level conversion circuit 112; the FPGA control core module 12 includes a raster signal data processing module 121, an ethernet interface module 122, and an ethernet control core module 123, and the raster signal data processing module 121 further includes a raster signal filtering algorithm processing module 124 and a real-time motion information algorithm processing module 125. The differential signal to single-ended signal circuit 111, the level conversion circuit 112, the raster signal filtering algorithm processing module 124, the real-time motion information algorithm processing module 125, the ethernet interface module 122, and the ethernet control core module 123 are connected in sequence.
As shown in fig. 5, the functions of the functional units in the test system and the specific processes of the test method are described in detail below.
St1, controlling the PC 50 to send a control instruction to the test board 20; the control command includes analog printing state information such as at what speed the X motion axis needs to move to a position of a certain X coordinate value at a certain time point, at what speed the Y motion axis needs to move to a position of a certain Y coordinate value at a certain time point, and at what speed the Z motion axis needs to move to a position of a certain Z coordinate value at a certain time point.
Specifically, the PC 50 simulates the operating state of each axis of the 3D printer to sequentially generate a high-speed mode control command, a medium-speed mode control command, a low-speed mode control command, a control command of the X/Y/Z axis in the return-to-zero state, and a control command of a motor shaft motor in the stuck and locked state, and sends the commands to the test board 20.
St2, the ethernet interface module 211 receives the control command and sends the control command to the main control module 212 according to the set timing.
The ethernet interface module 211 used in this embodiment mainly receives various sensor signals, and transmits the signals to the main control module 212 (i.e., the ethernet control core) according to a certain logic timing sequence, so as to provide an interface for data storage and implement an ethernet communication function with an upper computer.
St3, the main control module 212 generates a direction signal D and a displacement pulse signal P according to a control command of the upper computer (i.e. the PC 50) and sends them to the analog raster signal generator module 213.
St4, the analog grating signal generator module 213 converts the direction signal D and the displacement pulse signal P into an analog grating signal in the form of a single-ended signal of a certain re-checking shift (mode) frequency and pulse number, and sends the analog grating signal to the circuit module 22 for converting the grating single-ended signal into the differential signal.
The analog grating signals in the form of single-ended signals comprise two paths of analog grating A signals, analog grating B signals and one path of zero signals, namely analog grating Z signals, which have phase difference of 90 degrees, and the level voltage of A, B, Z signals is 3.3V.
The analog grating signal generator module 213 converts the displacement pulse signal P and the direction signal D into an analog grating a signal, an analog grating B signal and an analog grating Z signal; meanwhile, the frequency of the displacement pulse signal P is four times of the frequency of the analog grating A signal and the analog grating B signal. According to the phase relation of the grating signals, when the grating ruler moves forwards, the change relation between the analog grating A signal and the analog grating B signal is 00 → 10 → 11 → 01 → 00 …; when the grating ruler moves reversely, the change relationship between the analog grating A signal and the analog grating B signal is 00 → 01 → 11 → 10 → 00 …. As shown in fig. 6, the state transition diagram and the state transition table for automatically generating the analog grating a signal and the analog grating B signal, which are designed in the quartz ii software, have a relationship of 00 in the state S0, 01 in the state S1, 10 in the state S2, 11 in the state S3, and S0 → S2 → S3 → S1 → S0 … state interconversion when D is 1 and S0 → S1 → S3 → S2 → S0 … interconversion when D is 0 under the condition of triggering at the rising edge of the shift pulse signal P.
Verifying the simulation effect of the output signal when the analog grating ruler moves in the forward direction is shown in fig. 7, in order to generate a zero signal Z at intervals of a certain distance from the analog grating ruler, the displacement pulse signal P may be counted, and a zero signal Z is generated every time 500P signal pulses are generated. In the functional simulation diagram of the output signal A, B, Z when the analog grating moves in the forward direction, A, B is an analog grating signal, Z is a grating zero signal, P is a displacement signal, D is a direction signal, count1 is a pulse count value for the P signal, count is a count value after quadruple frequency of the A, B signal, up is a signal after quadruple frequency processing is performed on the A, B signal when the grating moves in the forward direction, when the analog grating moves in the forward direction in the diagram, the phase of the signal a is 90 degrees ahead of the phase of the signal B, and count1 is equal to the value of count.
Verifying the simulation effect of the output signal when the analog grating ruler moves reversely as shown in fig. 8, wherein A, B is a grating signal, Z is a grating zero signal, P is a displacement signal, D is a direction signal, count1 is a pulse count value of the P signal, count is a count value after quadruple frequency of a A, B signal, and down is a signal after quadruple frequency processing of a A, B signal when the grating moves reversely. When the analog grating is shifted in the opposite direction in the figure, signal a lags phase by 90 ° with signal B, and count1 equals the absolute value of count; and when 10P signals are sent out, a zero position signal Z is generated, and the simulation effect design meets the requirement.
St5, the circuit module 22 for converting single-end signal into differential signal converts the analog grating signal in the form of single-end signal into analog grating signal in the form of differential signal, that is, two paths of grating square wave signals with phase difference of 90 ° and one path of grating zero-position signal, and respectively and correspondingly sends the analog X/Y/Z axis output grating signal to the 1 # tested 3D printer grating data acquisition card 01, the 2 # tested 3D printer grating data acquisition card 02 and the 3 # tested 3D printer grating data acquisition card 03 through the 1 # 3D printer analog X/Y/Z axis output grating signal module 31, the 2 # 3D printer analog X/Y/Z axis output grating signal module 32 and the 3 # 3D printer analog X/Y/Z axis output grating signal module 33.
The analog grating signals in the form of differential signals include analog grating A +/A-signals, analog grating B +/B-signals, and analog grating Z +/Z-signals. The analog grating A signal, the analog grating B signal and the analog grating Z signal respectively correspond to an analog grating A +/A-signal, an analog grating B +/B-signal and an analog grating Z +/Z-signal. The simulation grating A +/A-signal corresponds to the motion state of the X motion axis of the 3D printer, the simulation grating B +/B-signal corresponds to the motion state of the Y motion axis of the 3D printer, and the simulation grating Z +/Z-signal corresponds to the motion state of the Z motion axis of the 3D printer.
So far, the method is equivalent to simulating a 3D printer, wherein a grating data acquisition card 01 of a No. 1 tested 3D printer, a grating data acquisition card 02 of a No. 2 tested 3D printer and a grating data acquisition card 03 of a No. 3 tested 3D printer are connected to the virtual 3D printer. The 3 tested 3D printer grating data acquisition cards respectively acquire analog grating signals, namely two pairs of incremental differential signals (A +/A-and B +/B-) and a pair of reference zero differential signals (Z +/Z-) of the X/Y/Z-axis grating reading heads. The level voltage of two pairs of incremental differential signals and one pair of reference zero differential signals output by the grating reading head is 5V.
In this embodiment, the number of grating pulses of each path of analog grating signal in the analog grating signals sent by the analog X/Y/Z axis output grating signal module of the 3-path 3D printer is N1.
St6, the simulation 3D printing main controller 40 collects 3-channel feedback grating signals respectively sent by a 3D printer grating data acquisition card 01 to be tested No. 1, a 3D printer grating data acquisition card 02 to be tested No. 2 and a 3D printer grating data acquisition card 03 to be tested No. 3, and sends the signals to the PC 50.
Each path of feedback grating signal comprises a feedback grating A +/A-signal, a feedback grating B +/B-signal and a feedback grating Z +/Z-signal.
The working principle of the grating data acquisition card 10 is as follows: the differential signal to single-ended signal conversion circuit 111 synchronously acquires the grating signals in the differential signal form respectively sent by the 3D printer analog X/Y/Z axis output grating signal module 1, the 3D printer analog X/Y/Z axis output grating signal module 2, and the 3D printer analog X/Y/Z axis output grating signal module 33 in real time, converts the grating signals in the differential signal form into grating signals in the orthogonal square wave signal form, and sends the grating signals to the level conversion circuit 112. The level conversion circuit 112 converts the level of the grating signal in the form of the orthogonal square wave signal into a preset level, and sends the level-converted grating signal to the grating signal filtering algorithm processing module 124. The grating signal filtering algorithm processing module 124 filters out noise signals in the grating signal in the form of orthogonal square wave signals. The real-time motion information algorithm processing module 125 calculates speed, coordinate, and/or displacement information of an X motion axis, a Y motion axis, and a Z motion axis of the 3D printer from the grating signal in the form of an orthogonal square wave signal, and transmits the information to the ethernet interface module 122. The ethernet interface module 122 sends the information to the ethernet control core module 123 according to the set timing. The ethernet control core module 123 transmits the speed, coordinate, and/or displacement information of the X, Y, and Z motion axes to the simulation 3D printing main controller 40 according to the ethernet communication protocol.
St7, PC 50 compares the analog grating signal with the 3-way feedback grating signal.
The PC 50 compares the grating pulse number of the feedback grating signal returned by each acquisition card with N1; and judging whether the grating data acquisition card of the 3 tested 3D printer is normal or not. If the pulse number of the analog grating signal is not consistent with the pulse number of the feedback grating signal of a certain path of acquisition card, judging that the acquisition card is unqualified. Or, if the information of the analog grating signal is inconsistent with the information of the feedback grating signal of a certain channel of acquisition card, judging that the acquisition card is unqualified.
Specifically, the PC 50 compares the analog grating signal with a feedback grating signal returned by the grating data acquisition card 01 of the 3D printer under test No. 1. Namely, the analog grating A +/A-signal of the analog grating signal is compared with the feedback grating A +/A-signal of the feedback grating signal, the analog grating B +/B-signal of the analog grating signal is compared with the feedback grating B +/B-signal of the feedback grating signal, and the analog grating Z +/Z-signal of the analog grating signal is compared with the feedback grating Z +/Z-signal of the feedback grating signal.
For example, the pulse number of the analog raster signal on the X-axis is X _ N1, the pulse number of the analog raster signal on the Y-axis is Y _ N1, and the pulse number of the analog raster signal on the Z-axis is Z _ N1; for the grating data acquisition card 01 of the 3D printer 1 to be tested, if the pulse number of the feedback grating signal is acquired, the pulse number of the feedback grating signal on the X axis is X _ N2, the pulse number of the feedback grating signal on the Y axis is Y _ N2, and the pulse number of the feedback grating signal on the Z axis is Z _ N2; by respectively comparing X _ N1 with X _ N2, Y _ N1 with Y _ N2, Z _ N1 and Z _ N2, the data acquisition of the 3D printer grating data acquisition card 01 to be tested No. 1 can be judged to be in a problem, and a judgment conclusion can be made as to whether the 3D printer grating data acquisition card 01 to be tested No. 1 is qualified.
Similarly, the PC 50 compares the analog grating signal with a feedback grating signal returned by the grating data acquisition card 02 of the 3D printer under test No. 2; the analog grating signal is compared with a feedback grating signal returned by the 3D printer grating data acquisition card 03 to be tested, so that the data acquisition of the 2D printer grating data acquisition card 02 or the 3D printer grating data acquisition card 03 to be tested can be judged to be in a problem, and a judgment conclusion can be made as to whether the 2D printer grating data acquisition card 02 or the 3D printer grating data acquisition card 03 to be tested is qualified.
The grating data acquisition card testing system and the grating data acquisition card testing method of the embodiment can simultaneously test a plurality of grating data acquisition cards of the 3D printer according to testing requirements, can simultaneously output differential A +/A-grating signals, B +/B-grating signals and Z +/Z-grating signals with strong anti-interference capability, and the highest frequency of the grating signals A +/A + and B +/B-grating signals is 2MHZ, so that the state that grating signals are simultaneously output by all shaft grating scales when the 3D printer operates under the actual working condition is simulated. The testing system can independently, efficiently and quickly detect whether the functions of the grating data acquisition cards are normal or not without depending on real 3D printer equipment in the testing process, is favorable for reducing the failure probability of the 3D printer in the assembling process, improves the organization and production efficiency, saves the material cost, the time cost and the labor cost of a user, can realize huge economic benefits, and has wide market prospect.
The present invention has been described in terms of specific examples, which are provided to aid understanding of the invention and are not intended to be limiting. For a person skilled in the art to which the invention pertains, several simple deductions, modifications or substitutions may be made according to the idea of the invention.

Claims (10)

1. A3D printer grating data acquisition card test system is characterized in that,
the device comprises a test plate (20), an arithmetic unit (10) and a simulation 3D printing main controller (40) which are connected in sequence;
the test board block is used for being connected to at least one analog output grating signal module (31, 32, 33), and the at least one analog output grating signal module is used for being correspondingly connected to at least one grating data acquisition card (01, 02, 03) of the 3D printer to be tested;
the arithmetic unit is used for sending a control instruction to the test plate; the control instruction comprises analog printing state information;
the test plate is used for generating an analog grating signal according to the control instruction and sending the analog grating signal to a corresponding grating data acquisition card of the 3D printer to be tested through an analog output grating signal module;
the simulation 3D printing main controller is used for being connected to the at least one 3D printer grating data acquisition card to be tested, and is used for acquiring feedback grating signals sent by the 3D printer grating data acquisition card to be tested and sending the feedback grating signals to the operation unit;
the arithmetic unit is also used for comparing the analog grating signal with the feedback grating signal.
2. The system of claim 1,
the test board (20) comprises an FPGA core board (21) and a circuit module (22) for converting a grating single-ended signal into a differential signal;
the FPGA core board (21) comprises an Ethernet interface module (211), a main control module (212) and an analog grating signal generator module (213) which are connected in sequence;
the Ethernet interface module is also connected to the arithmetic unit and used for receiving the control instruction sent by the arithmetic unit and sending the control instruction to the main control module according to a set time sequence;
the main control module is used for generating a direction signal and a pulse signal according to a control instruction and sending the direction signal and the pulse signal to the analog grating signal generator module;
the analog grating signal generator module is used for converting the direction signal and the pulse signal into an analog grating signal in a single-ended signal form and sending the analog grating signal to the grating single-ended signal to differential signal conversion circuit module;
the grating single-ended signal to differential signal conversion circuit module is used for converting the analog grating signal in the single-ended signal form into an analog grating signal in the differential signal form and sending the analog grating signal to the grating data acquisition card of the to-be-detected 3D printer through the analog output grating signal module.
3. The system of claim 2,
the analog grating signals in the single-ended signal form comprise analog grating A signals, analog grating B signals and analog grating Z signals;
the analog grating signals in the differential signal form comprise analog grating A +/A-signals, analog grating B +/B-signals and analog grating Z +/Z-signals;
the analog grating A signal, the analog grating B signal and the analog grating Z signal respectively correspond to an analog grating A +/A-signal, an analog grating B +/B-signal and an analog grating Z +/Z-signal;
the simulation grating A +/A-signal corresponds to the motion state of an X motion axis of the 3D printer, the simulation grating B +/B-signal corresponds to the motion state of a Y motion axis of the 3D printer, and the simulation grating Z +/Z-signal corresponds to the motion state of a Z motion axis of the 3D printer;
the feedback grating signals sent by the grating data acquisition card of the to-be-detected 3D printer and acquired by the analog 3D printing main controller comprise feedback grating A +/A-signals, feedback grating B +/B-signals and feedback grating Z +/Z-signals;
the operation unit is used for comparing an analog grating A +/A-signal of the analog grating signal with a feedback grating A +/A-signal of the feedback grating signal, comparing an analog grating B +/B-signal of the analog grating signal with a feedback grating B +/B-signal of the feedback grating signal, and comparing an analog grating Z +/Z-signal of the analog grating signal with a feedback grating Z +/Z-signal of the feedback grating signal.
4. The system of claim 2,
the analog grating signal generator module (213) comprises a fifth SN74LVC4245A chip U5, a twelfth SN74LVC4245A chip U12, a sixth MC3487 chip U6, a seventh MC3487 chip U7 and a ninth MC3487 chip U9;
the No. 13 GND pin and the OE pin of the chip U5, and the No. 13 GND pin, the B4 pin, the B3 pin, the B2 pin, the B1 pin and the OE pin of the chip U12 are grounded; a pin B8, a pin B7, a pin B6, a pin B5, a pin B4, a pin B3, a pin B2 and a pin B1 of a chip U5, and a pin B8, a pin B7, a pin B6 and a pin B5 of a chip U12 are respectively connected to a port 12, a port 11, a port 10, a port 9, a port 8, a port 7, a port 6, a port 5, a port 4, a port 3, a port 2 and a port 1 of a pin P3; the No. 23 3.3V pin and the No. 24 3.3V pin of the chip U5, and the No. 23 3.3V pin and the No. 24 3.3V pin of the chip U12 are connected to a power supply;
the No. 12 GND pin, the No. 11 GND pin and the DIR pin of the chip U5 and the No. 12 GND pin, the No. 11 GND pin and the DIR pin of the chip U12 are grounded; the A8 pin, the a7 pin, the A6 pin, the a5 pin, the a4 pin, the A3 pin, the a2 pin, the a1 pin of the chip U5, and the A8 pin, the a7 pin, the A6 pin, and the a5 pin of the chip U12 are connected to the 2A pin, the 1A pin, the 4A pin, the 3A pin of the chip U6, and the 2A pin, the 1A pin, the 4A pin, the 3A pin of the chip U7, and the 2A pin, the 1A pin, the 4A pin, and the 3A pin of the chip U9, respectively;
the VCC pin, the 1,2EN pin and the 3,4EN pin of the chip U6, the VCC pin of the chip U7, the 1,2EN pin and the 3,4EN pin of the chip U9 are connected to a power supply; the GND pin of the chip U6, the GND pin of the chip U7 and the GND pin of the chip U9 are grounded;
the 1Y pin, the 1Z pin, the 2Y pin, the 2Z pin, the 3Y pin, the 3Z pin, the 4Y pin and the 4Z pin of the chip U6 are connected to the No. 3 port, the No. 4 port, the No. 1 port, the No. 2 port of the pin J1 and the No. 1 port, the No. 2 port of the pin J2 and the No. 6 port and the No. 7 port of the pin J1;
the 1Y pin, the 1Z pin, the 2Y pin, the 2Z pin, the 3Y pin, the 3Z pin, the 4Y pin and the 4Z pin of the chip U7 are connected to the No. 6 port, the No. 7 port, the No. 3 port, the No. 4 port of the contact pin J2 and the No. 3 port, the No. 4 port, the No. 1 port and the No. 2 port of the contact pin J4;
the 1Y pin, the 1Z pin, the 2Y pin, the 2Z pin, the 3Y pin, the 3Z pin, the 4Y pin and the 4Z pin of the chip U9 are connected to the No. 1 port, the No. 2 port of the pin J3, the No. 6 port, the No. 7 port of the pin J4, and the No. 6 port, the No. 7 port, the No. 3 port and the No. 4 port of the pin J3;
the 1Y pin, the 1Z pin, the 2Y pin, the 2Z pin, the 3Y pin, the 3Z pin, the 4Y pin and the 4Z pin of the chip U6, and the 1Y pin, the 1Z pin, the 2Y pin, the 2Z pin, the 3Y pin, the 3Z pin, the 4Y pin and the 4Z pin of the chip U7, as well as the 1Y pin, the 1Z pin, the 2Y pin, the 2Z pin, the 3Y pin, the 3Z pin, the 4Y pin and the 4Z pin of the chip U9 are also respectively connected to a VCC power supply through resistors.
5. The system of any one of claims 1-4,
the operation unit is also used for setting a high-speed mode, a medium-speed mode and a low-speed mode;
the frequency of the analog grating signal in the high-speed mode > the frequency of the analog grating signal in the medium-speed mode > the frequency of the analog grating signal in the low-speed mode.
6. The system of any one of claims 1-4,
the 3D printer grating data acquisition card (10) comprises a grating signal receiving module (11) and a control kernel module (12) which are connected with each other;
the grating signal receiving module is used for collecting grating signals in a differential signal form respectively sent by an X motion axis, a Y motion axis and a Z motion axis of the 3D printer, converting the grating signals in the differential signal form into grating signals in an orthogonal square wave signal form and sending the grating signals to the control kernel module;
and the control kernel module is used for calculating the actual motion information of an X motion axis, a Y motion axis and a Z motion axis of the 3D printer according to the grating signals in the form of orthogonal square wave signals.
7. The system of claim 6,
the actual motion information comprises speed, coordinate and/or displacement information;
the raster signal receiving module (11) comprises a differential signal to single-ended signal circuit (111) and a level conversion circuit (112); the control core module (12) comprises a raster signal data processing module (121), an Ethernet interface module (122) and an Ethernet control core module (123); the raster signal data processing module (121) comprises a raster signal filtering algorithm processing module (124) and a real-time motion information algorithm processing module (125); the differential signal to single-ended signal conversion circuit, the level conversion circuit, the grating signal filtering algorithm processing module, the real-time motion information algorithm processing module, the ethernet interface module and the ethernet control core module are sequentially connected;
the differential signal to single-ended signal conversion circuit is used for collecting grating signals in a differential signal form respectively sent by an X motion axis, a Y motion axis and a Z motion axis of the 3D printer, converting the grating signals in the differential signal form into grating signals in an orthogonal square wave signal form and sending the grating signals to the level conversion circuit;
the level conversion circuit is used for converting the level of a grating signal in the form of an orthogonal square wave signal into a preset level and sending the grating signal subjected to level conversion to the grating signal filtering algorithm processing module;
the grating signal filtering algorithm processing module is used for filtering noise signals in grating signals in an orthogonal square wave signal form;
the real-time motion information algorithm processing module is used for carrying out frequency doubling, direction discrimination and reversible counting processing according to the grating signals in the form of orthogonal square wave signals, so that the actual motion information of an X motion axis, a Y motion axis and a Z motion axis of the 3D printer is calculated, and the actual motion information of the X motion axis, the Y motion axis and the Z motion axis is sent to the Ethernet interface module;
the Ethernet interface module is used for sending actual motion information of an X motion axis, a Y motion axis and a Z motion axis to the Ethernet control kernel module according to a set time sequence;
the Ethernet control kernel module is also used for sending out the actual motion information of the X motion axis, the Y motion axis and the Z motion axis according to an Ethernet communication protocol.
8. A3D printer grating data acquisition card test method is characterized by comprising the following steps:
sending a control instruction, wherein the control instruction comprises simulated printing state information;
generating an analog grating signal according to the control instruction and sending the analog grating signal to at least one grating data acquisition card of the 3D printer to be detected;
acquiring a feedback grating signal sent by a grating data acquisition card of the 3D printer to be detected;
the analog grating signal is compared to the feedback grating signal.
9. The method of claim 8,
the generation of the analog grating signal according to the control instruction and the transmission of the analog grating signal to at least one grating data acquisition card of the to-be-detected 3D printer are as follows:
generating a direction signal and a pulse signal according to the control instruction;
converting the direction signal and the pulse signal into an analog grating signal in a single-ended signal form;
and converting the analog grating signal in the single-ended signal form into an analog grating signal in a differential signal form and sending the analog grating signal to at least one grating data acquisition card of the 3D printer to be detected.
10. The method of claim 9,
the analog grating signals in the single-ended signal form comprise analog grating A signals, analog grating B signals and analog grating Z signals;
the analog grating signals in the differential signal form comprise analog grating A +/A-signals, analog grating B +/B-signals and analog grating Z +/Z-signals;
the analog grating A signal, the analog grating B signal and the analog grating Z signal respectively correspond to an analog grating A +/A-signal, an analog grating B +/B-signal and an analog grating Z +/Z-signal;
the simulation grating A +/A-signal corresponds to the motion state of an X motion axis of the 3D printer, the simulation grating B +/B-signal corresponds to the motion state of a Y motion axis of the 3D printer, and the simulation grating Z +/Z-signal corresponds to the motion state of a Z motion axis of the 3D printer;
the feedback grating signals comprise feedback grating A +/A-signals, feedback grating B +/B-signals and feedback grating Z +/Z-signals;
comparing the analog grating signal with the feedback grating signal comprises:
comparing the analog grating A +/A-signal of the analog grating signal with the feedback grating A +/A-signal of the feedback grating signal, comparing the analog grating B +/B-signal of the analog grating signal with the feedback grating B +/B-signal of the feedback grating signal, and comparing the analog grating Z +/Z-signal of the analog grating signal with the feedback grating Z +/Z-signal of the feedback grating signal.
CN201911383092.5A 2019-12-27 2019-12-27 3D printer grating data acquisition card test system and test method Active CN111045882B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911383092.5A CN111045882B (en) 2019-12-27 2019-12-27 3D printer grating data acquisition card test system and test method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911383092.5A CN111045882B (en) 2019-12-27 2019-12-27 3D printer grating data acquisition card test system and test method

Publications (2)

Publication Number Publication Date
CN111045882A true CN111045882A (en) 2020-04-21
CN111045882B CN111045882B (en) 2023-09-19

Family

ID=70240815

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911383092.5A Active CN111045882B (en) 2019-12-27 2019-12-27 3D printer grating data acquisition card test system and test method

Country Status (1)

Country Link
CN (1) CN111045882B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103257925A (en) * 2013-04-28 2013-08-21 株洲南车时代电气股份有限公司 Automatic testing device, system and method for train operation monitoring record software
CN103744781A (en) * 2013-12-27 2014-04-23 北京交控科技有限公司 Test method and test system for interlocking software
CN105549468A (en) * 2015-12-17 2016-05-04 华中科技大学 Grating signal simulated generator
CN105929271A (en) * 2016-04-21 2016-09-07 徐洋 Thermal transfer printing tag printer test system and method
CN108072830A (en) * 2017-12-28 2018-05-25 北京航天控制仪器研究所 The floating inertial platform veneer automatic test device of one kind three
CN211604099U (en) * 2019-12-27 2020-09-29 深圳市越疆科技有限公司 3D printer grating data acquisition card test system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103257925A (en) * 2013-04-28 2013-08-21 株洲南车时代电气股份有限公司 Automatic testing device, system and method for train operation monitoring record software
CN103744781A (en) * 2013-12-27 2014-04-23 北京交控科技有限公司 Test method and test system for interlocking software
CN105549468A (en) * 2015-12-17 2016-05-04 华中科技大学 Grating signal simulated generator
CN105929271A (en) * 2016-04-21 2016-09-07 徐洋 Thermal transfer printing tag printer test system and method
CN108072830A (en) * 2017-12-28 2018-05-25 北京航天控制仪器研究所 The floating inertial platform veneer automatic test device of one kind three
CN211604099U (en) * 2019-12-27 2020-09-29 深圳市越疆科技有限公司 3D printer grating data acquisition card test system

Also Published As

Publication number Publication date
CN111045882B (en) 2023-09-19

Similar Documents

Publication Publication Date Title
CN101758422B (en) Detection analysis device for technical indexes of numerical control device
CN107262907A (en) A kind of full servo supersonic welder
CN102508456B (en) Backplane bus type structure of vibration monitoring and protecting device and communication control method thereof
CN104503367B (en) A kind of turbo blade processing and on-line detecting system based on numerical control processing apparatus
CN211604099U (en) 3D printer grating data acquisition card test system
CN206614344U (en) A kind of three axis numerically controlled machine with detection function
CN107525967A (en) A kind of measurement apparatus and method of contactless fluted disc frequency
CN107124412A (en) A kind of BISS protocol datas coding/decoding method and interface system
CN103913122A (en) Workpiece length measurement device
CN103612491A (en) Laser marking control card
CN104897056B (en) A kind of synchronous data collection and telecommunication circuit
CN102521454B (en) Processing craft data evaluating method and device
CN111045882A (en) 3D printer grating data acquisition card test system and test method
CN103604453A (en) Multifunctional testing device for CVT gearboxes
CN204705323U (en) A kind of car body controller connector pin normotopia degree pick-up unit
CN110381253A (en) A kind of control method of quality testing, apparatus and system
CN204807990U (en) Material test machine controller
CN106886212A (en) A kind of test device of servo-drive system
CN104634600A (en) Automatic detection system of civil unmanned aircraft steering engine
CN207148218U (en) A kind of measurement apparatus of contactless fluted disc frequency
CN205904781U (en) Digit control machine tool cutter measurement system
CN206208920U (en) Equivalent unit sensing module in a kind of vibratory impulse test
CN104960203A (en) 3D printing system
CN111016180A (en) Grating data acquisition card, 3D printer and 3D printer control method
CN204423095U (en) A kind of processing of the turbo blade based on numerical control processing apparatus and on-line detecting system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant