CN111045882B - 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 PDFInfo
- Publication number
- CN111045882B CN111045882B CN201911383092.5A CN201911383092A CN111045882B CN 111045882 B CN111045882 B CN 111045882B CN 201911383092 A CN201911383092 A CN 201911383092A CN 111045882 B CN111045882 B CN 111045882B
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/26—Functional testing
- G06F11/261—Functional testing by simulating additional hardware, e.g. fault simulation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection 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
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
Abstract
The application provides a 3D printer grating data acquisition card test system, which comprises a test plate, an operation unit and an analog 3D printing main controller which are connected in sequence; the test plate is also connected to at least one analog output grating signal module for respectively connecting to at least one grating data acquisition card to be tested. The application also provides a 3D printer raster data acquisition card test method, which comprises the steps of sending out a control instruction; generating a simulated grating signal according to the control instruction; collecting a feedback grating signal sent by a grating data acquisition card to be tested; the analog grating signal is compared with the feedback grating signal. The grating data acquisition card test system and the grating data acquisition card test method can test the 3D printer grating data acquisition card without depending on real 3D printer equipment, can improve the organization production efficiency, and save the material cost, the time cost and the labor cost of users.
Description
Technical Field
The application relates to the technical field of 3D printers, in particular to a 3D printer grating data acquisition card test system and a test method.
Background
The 3D printing technology, also called rapid prototyping technology, is a high-new manufacturing technology based on a material stacking method, and according to three-dimensional model data of a part or an object, a real object or a real model can be manufactured in a material stacking manner through a prototyping device. The application is for solving the technical defects that the printing precision of the 3D printer in the prior art is seriously insufficient, the printed product can not meet the expected requirement, and a high-precision 3D printer grating data acquisition card is designed, can synchronously acquire the grating signals of the X axis, the Y axis and the Z axis of the 3D printer in real time, and detects whether the motors of all the axes are stuck according to the acquired grating signals. However, the grating data acquisition card is used as a product, and a technical scheme for detecting the quality of the product does not exist in the prior art.
Disclosure of Invention
According to a first aspect of the application, a 3D printer raster data acquisition card test system is provided, which comprises a test plate, an operation unit and an analog 3D printing main controller which are sequentially connected; the test plate is used for being connected to at least one analog output grating signal module, and the at least one analog output grating signal module is used for being correspondingly connected to at least one to-be-tested 3D printer grating data acquisition card; the operation unit is used for sending a control instruction to the test plate; the control instruction includes simulated printing status information; the test plate is used for generating a simulated grating signal according to the control instruction and sending the simulated grating signal to a corresponding grating data acquisition card of the 3D printer to be tested through the simulated output grating signal module; the simulation 3D printing main controller is used for being connected to the at least one 3D printer raster data acquisition card to be tested, and is used for acquiring feedback raster signals sent by the 3D printer raster data acquisition card to be tested and sending the feedback raster signals to the operation unit; the operation unit is also used for comparing the analog grating signal with the feedback grating signal.
According to a second aspect of the present application, there is provided a 3D printer raster data acquisition card test method, comprising the following steps:
issuing a control instruction, wherein the control instruction comprises simulated printing state information;
generating a simulated grating signal according to the control instruction and sending the simulated grating signal to at least one grating data acquisition card of the 3D printer to be tested;
collecting a feedback grating signal sent by a grating data acquisition card of the 3D printer to be tested;
the analog grating signal is compared with the feedback grating signal.
The grating data acquisition card test system and the grating data acquisition card test 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 test process, thereby improving the tissue production efficiency and saving the material cost, the time cost and the labor cost of users.
Drawings
Fig. 1 is a schematic structural diagram of a 3D printer raster data acquisition card test system according to a first embodiment;
FIG. 2 is a schematic diagram of a test board according to the first embodiment;
fig. 3 is a schematic circuit diagram of a module circuit of an analog grating signal generator according to the first embodiment;
fig. 4 is a schematic diagram of a 3D printer raster data acquisition card used for detection by the test system according to the first embodiment;
FIG. 5 is a flowchart of a method for testing a raster data acquisition card of a 3D printer according to the first embodiment;
FIG. 6 is a simulated raster signal state transition diagram and state transition representation according to the first embodiment;
FIG. 7 is a simulation diagram of the output signal of the simulated grating scale according to the first embodiment when it moves in the forward direction;
fig. 8 is a simulation diagram of the output signal when the simulated grating scale of the first embodiment moves reversely.
Detailed Description
The application will be described in further detail below with reference to the drawings by means of specific embodiments. Wherein like elements in different embodiments are numbered alike in association. In the following embodiments, numerous specific details are set forth in order to provide a better understanding of the present application. However, one skilled in the art will readily recognize that some of the features may be omitted, or replaced by other elements, materials, or methods in different situations. In some instances, related operations of the present application have not been shown or described in the specification in order to avoid obscuring the core portions of the present application, and may be unnecessary to persons skilled in the art from a detailed description of the related operations, which may be presented in the description and general knowledge of one skilled in the art.
Furthermore, the described features, operations, or characteristics of the description may be combined in any suitable manner in various embodiments. Also, various steps or acts in the method descriptions may be interchanged or modified in a manner apparent to those of ordinary skill in the art. Thus, the various orders in the description and drawings are for clarity of description of only certain embodiments, and are not meant to be required orders unless otherwise indicated.
The numbering of the components itself, e.g. "first", "second", etc., is used herein merely to distinguish between the described objects and does not have any sequential or technical meaning. The term "coupled" as used herein includes both direct and indirect coupling (coupling), unless otherwise indicated.
Embodiment one:
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, personal Computer, i.e., an operation unit), a test board 20, an analog 3D printing main controller 40, and a plurality of analog output raster signal modules. As shown in fig. 2, the test board 20 includes an FPGA core board 21 and a grating single-ended signal-to-differential signal circuit module 22; 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, the number of the analog output grating signal modules is three, namely, the number 1 3D printer analog X/Y/Z axis output grating signal module 31, the number 2 3D printer analog X/Y/Z axis output grating signal module 32, and the number 3D printer analog X/Y/Z axis output grating 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 circuit module 22 are sequentially connected, and the grating single-ended signal-to-differential signal circuit module 22 is respectively connected to the No. 1 3D printer analog X/Y/Z axis output grating signal module 31, the No. 2 3D printer analog X/Y/Z axis output grating signal module 32 and the No. 3D printer analog X/Y/Z axis output grating signal module 33.
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 GND pin No. 13, the OE pin of the chip U5, the GND pin No. 13, 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, B7 pin, B6 pin, B5 pin, B4 pin, B3 pin, B2 pin, B1 pin, and B8 pin, B7 pin, B6 pin, and B5 pin of the chip U5 are connected to the 12 th port (transmit THA1 signal), the 11 th port (THB 1 signal), the 10 th port (THZ 1 signal), the 9 th port (RA 1 signal), the 8 th port (RB 1 signal), the 7 th port (RZ 1 signal), the 6 th port (ZA 1 signal), the 5 th port (ZB 1 signal), the 4 th port (ZZ 1 signal), the 3 rd port (TA 1 signal), the 2 nd port (TB 1 signal), and the 1 st port (TZ 1 signal) of the pin P3, respectively. The 23 rd 3.3V pin, 24 th 3.3V pin, and 23 rd 3.3V pin and 24 th 3.3V pin of the chip U5 are connected to a 3.3V power supply.
The 12 th GND pin, the 11 th GND pin, the DIR pin of the chip U5, the 12 th GND pin, the 11 th GND pin and the DIR pin of the chip U12 are grounded. The A8 pin (pass THA signal), A7 pin (THB signal), A6 pin (THZ signal), A5 pin (RA signal), A4 pin (RB signal), A3 pin (RZ signal), A2 pin (ZA signal), A1 pin (ZB signal), and A8 pin (ZZ signal), A7 pin (TA signal), A6 pin (TB signal), and A5 pin (TZ signal) of the chip U12 are connected to the 2A pin, 1A pin, 4A pin, 3A pin, and 2A pin, 1A pin, 4A pin, 3A pin of the chip U6, and the 2A pin, 1A pin, 4A pin, and 3A pin of the chip U9, respectively.
The VCC pin of the chip U6, the 1,2EN pin, the 3,4EN pin, and the VCC pin of the chip U7, the 1,2EN pin, the 3,4EN pin, and the VCC pin, the 1,2EN pin, and the 3,4EN pin of the chip U9 are connected to a 5V 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 (transfer 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 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 (passing 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 6 th, 7 th, 3 rd, 4 th, 1 st and 2 nd ports of the pin J2.
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, 1Z pin, 2Y pin, 2Z pin, 3Y pin, 3Z pin, 4Y pin, 4Z pin of the chip U6 and the 1Y pin, 1Z pin, 2Y pin, 2Z pin, 3Y pin, 3Z pin, 4Y pin, 4Z pin and the 1Y pin, 1Z pin, 2Y pin, 2Z pin, 3Y pin, 3Z pin, 4Y pin and 4Z pin of the chip U9 are also connected to VCC power supply through 4.7K resistors, respectively.
The 15 TH, 8 TH and 15 TH ports of pin J1 (i.e., th_15_d) and pin J2 (i.e., r_15_d), the 8 TH and 15 TH, 8 TH and 15 TH and 8 TH ports of pin J3 (i.e., t_15_d) and pin J4 (i.e., z_15_d) are connected to a 5V power supply.
The 9 th port, 10 th port of the pin J1 and the 9 th port, 10 th port of the pin J2 and the 9 th port, 10 th port of the pin J3 and the 9 th port and 10 th port of the pin J4 are grounded.
When the system is tested, the No. 1 3D printer simulation X/Y/Z axis output grating signal module 31, the No. 2 3D printer simulation X/Y/Z axis output grating signal module 32 and the No. 3D printer simulation X/Y/Z axis output grating signal module 33 are respectively connected with the No. 1 tested 3D printer grating data acquisition card 01, the No. 2 tested 3D printer grating data acquisition card 02 and the No. 3 tested 3D printer grating data acquisition card 03. 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 master controller 40 is also connected to a PC 50.
Because the running speeds of the X moving axis, the Y moving axis and the Z moving axis of the 3D printer are different in the actual model printing process, the frequencies of grating signals output by the grating scales respectively corresponding to the X moving axis, the Y moving axis and the Z moving axis are also different, and the PC 50 can be set into 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 is greater than the frequency of the analog grating signal in the medium-speed mode by less than the frequency of the analog grating signal in the low-speed mode, and the motion axes are operated in the high-speed, medium-speed and low-speed states respectively.
Fig. 4 is a schematic diagram of a 3D printer raster data acquisition card 10 that can be detected by the test system of the present embodiment. The acquisition card 10 comprises 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 comprises 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 kernel module 123 are sequentially connected.
As shown in fig. 5, the function of each functional unit in the test system and the specific procedure of the test method are described in detail below.
St1, control PC 50 sends out the control command to the test plate 20; the control instruction contains simulated print status information such as at what speed the X-axis needs to move to a position of a certain X-coordinate value at a certain point in time, at what speed the Y-axis needs to move to a position of a certain Y-coordinate value at a certain point in time, and at what speed the Z-axis needs to move to a position of a certain Z-coordinate value at a certain point in time.
Specifically, the PC 50 simulates the running state of each shaft of the 3D printer, and sequentially generates a high-speed mode control command, a medium-speed mode control command, a low-speed mode control command, a control command when the X/Y/Z shaft is in a zeroing state, and a control command when a certain motor shaft motor is in a stuck and locked state, and sends the control commands to the test board 20.
St2, the Ethernet interface module 211 receives the control command and sends to the main control module 212 at a set timing.
The ethernet interface module 211 adopted in this embodiment mainly receives various sensor signals, and transmits the sensor signals to the main control module 212 (i.e. ethernet control core) according to a certain logic sequence, so as to provide an interface for data storage, and realize 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 the control command of the host computer (i.e. PC 50) and sends the direction signal D and the displacement pulse signal P to the simulated grating signal generator module 213.
St4, the analog grating signal generator module 213 converts the direction signal D and the displacement pulse signal P into analog grating signals in the form of single-ended signals with a certain review gear (mode) frequency and pulse number, and sends the analog grating signals to the grating single-ended signal to differential signal circuit module 22.
The analog grating signal in the form of single-ended signal comprises two paths of analog grating A signals, analog grating B signals and one path of zero signal, namely analog grating Z signals, which are 90 degrees out of phase, wherein the level voltage of the A, B, Z signal 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; and meanwhile, the frequency of the displacement pulse signal P is four times of that of the analog grating A signal and the analog grating B signal. As can be seen from the phase relation of the grating signals, when the grating ruler moves forward, the change relation between the analog grating A signal and the analog grating B signal is 00-10-11-01-00 …; when the grating scale moves reversely, the change relation between the analog grating A signal and the analog grating B signal is 00- & gt 01- & gt 11- & gt 10- & gt 00- & lt …. As shown in fig. 6, the state transition diagram and the state transition table for the automatic generation of the analog grating a signal and the analog grating B signal designed in the quartusII software show that the relationship of the a/B signal generated in the state S0 is 00, the relationship of the a/B signal generated in the state S1 is 01, the relationship of the a/B signal generated in the state S2 is 10, the relationship of the a/B signal generated in the state S3 is 11, and the states of s0→s2→s3→s1→s0 … are mutually converted when d=1, and the states of s0→s1→s3→s2→s0 … are mutually converted when d=0 under the condition that the rising edge of the displacement pulse signal P is triggered.
The simulation effect of the output signal when the simulated grating ruler moves forward is verified as shown in fig. 7, in order to generate a zero signal Z every a distance of the simulated grating ruler, it is designed to count the displacement pulse signals P, and generate a zero signal Z every 500P signal pulses. In the functional simulation diagram of the output signal A, B, Z when the analog grating moves forward, 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 of the P signal, count is a count value obtained by multiplying the frequency of the A, B signal by four, up is a signal obtained by multiplying the frequency of the A, B signal when the grating moves forward, and when the analog grating moves forward in the diagram, the phase of the signal A leads the phase of the signal B by 90 degrees, and the values of count1 and count are equal.
The simulation effect of the output signal when the simulated grating scale moves reversely is verified to be shown in fig. 8, 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 obtained by multiplying the frequency of the A, B signal by four, and down is a signal obtained by multiplying the A, B signal by four when the grating moves reversely. When the analog grating moves reversely in the figure, the phase of the signal A lags behind the phase of the signal B by 90 degrees, and the absolute value of count1 is equal to that of count; every 10P signals are sent out to generate a zero signal Z, and the simulation effect design meets the requirements.
St5, the grating single-ended signal-to-differential signal circuit module 22 converts the analog grating signal in the form of a single-ended signal into the analog grating signal in the form of a differential signal, namely two paths of grating square wave signals and one path of grating zero signal with 90 degrees of phase difference, and the analog grating signal is correspondingly transmitted to the grating data acquisition card 01 of the No. 1 tested 3D printer, the grating data acquisition card 02 of the No. 2 tested 3D printer and the grating data acquisition card 03 of the No. 3 tested 3D printer respectively through the analog X/Y/Z axis output grating signal module 31 of the No. 1 3D printer, the analog X/Y/Z axis output grating signal module 32 of the No. 2 3D printer and the analog X/Y/Z axis output grating signal module 33 of the No. 3D printer.
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 correspond to the analog grating A+/A-signal, the analog grating B+/B-signal and the analog grating Z+/Z-signal, respectively. The simulated grating A+/A-signal corresponds to the motion state of the X motion axis of the 3D printer, the simulated grating B+/B-signal corresponds to the motion state of the Y motion axis of the 3D printer, and the simulated grating Z+/Z-signal corresponds to the motion state of the Z motion axis of the 3D printer.
So far, the method has been equivalent to simulating a 3D printer, and the No. 1 tested 3D printer grating data acquisition card 01, the No. 2 tested 3D printer grating data acquisition card 02 and the No. 3 tested 3D printer grating data acquisition card 03 are all 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 an X/Y/Z axis grating reading head. The level voltage of the two pairs of incremental differential signals and the 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 prints the main controller 40 to gather the 3-way feedback grating signal that the 1 number is surveyed 3D printer grating data acquisition card 01, 2 number is surveyed 3D printer grating data acquisition card 02 and 3 number is surveyed 3D printer grating data acquisition card 03 and send to PC 50 respectively.
Each 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 circuit 111 synchronously collects the grating signals in the form of differential signals respectively sent by the No. 1 3D printer analog X/Y/Z axis output grating signal module 31, the No. 2 3D printer analog X/Y/Z axis output grating signal module 32 and the No. 3D printer analog X/Y/Z axis output grating signal module 33 in real time, converts the grating signals in the form of differential signals into the grating signals in the form of orthogonal square wave signals, 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 quadrature square wave signal into a preset level, and transmits 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 quadrature square wave signals. The real-time motion information algorithm processing module 125 calculates velocity, coordinate and/or displacement information of the X, Y and Z motion axes 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 this information to the ethernet control core module 123 at a set timing. The ethernet control kernel module 123 transmits the speed, coordinate and/or displacement information of the X, Y and Z motion axes to the analog 3D printing master controller 40 according to the ethernet communication protocol.
St7, PC 50 compares the analog raster signal with the 3-way feedback raster signal.
The PC 50 compares N1 with the number of grating pulses of the feedback grating signals returned by each acquisition card; and judging whether the grating data acquisition cards of the 3 tested 3D printers are normal or not. If the pulse number of the analog grating signal is inconsistent with the pulse number of the feedback grating signal of a certain 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 acquisition card, judging that the acquisition card is unqualified.
Specifically, the PC 50 compares the analog raster signal with the feedback raster signal returned by the raster 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 number of analog grating signal pulses on the X-axis is x_n1, the number of analog grating signal pulses on the Y-axis is y_n1, and the number of analog grating signal pulses on the Z-axis is z_n1 in the analog grating signals; for the grating data acquisition card 01 of the No. 1 tested 3D printer, if the pulse number of the feedback grating signal is acquired, the pulse number of the feedback grating signal of the X axis is X_N2, the pulse number of the feedback grating signal of the Y axis is Y_N2, and the pulse number of the feedback grating signal of the Z axis is Z_N2; the problem of the data acquisition of the No. 1 tested 3D printer grating data acquisition card 01 can be judged by respectively comparing the X_N1 with the X_N2, the Y_N1 with the Y_N2 and the Z_N1 with the Z_N2, and a judgment conclusion is made on whether the No. 1 tested 3D printer grating data acquisition card 01 is qualified.
Similarly, the PC 50 compares the analog grating signal with a feedback grating signal returned by the No. 2 tested 3D printer grating data acquisition card 02; the simulated grating signal is compared with the feedback grating signal returned by the No. 3 tested 3D printer grating data acquisition card 03, so that which path of data acquisition of the No. 2 tested 3D printer grating data acquisition card 02 or the No. 3 tested 3D printer grating data acquisition card 03 is problematic can be judged, and a judgment conclusion can be made as to whether the No. 2 tested 3D printer grating data acquisition card 02 or the No. 3 tested 3D printer grating data acquisition card 03 is qualified.
According to the grating data acquisition card testing system and the grating data acquisition card testing method, a plurality of 3D printer grating data acquisition cards can be tested simultaneously according to testing requirements, differential A+/A-grating signals, B+/B-grating signals and Z+/Z-grating signals with high anti-interference capability can be output simultaneously, the highest frequency of the grating signals A+/A+ and B+/B-is 2MHZ, and therefore the state that the grating scales of all shafts output grating signals simultaneously when the 3D printer operates under actual working conditions is simulated. The testing system can independently, efficiently and quickly detect whether the functions of a plurality of grating data acquisition cards are normal without depending on real 3D printer equipment, is favorable for reducing the probability of faults of the 3D printer in the assembly process, improves the tissue production efficiency, saves the material cost, the time cost and the labor cost of users, can realize huge economic benefits, and has wide market prospect.
The foregoing description of the application has been presented for purposes of illustration and description, and is not intended to be limiting. Several simple deductions, modifications or substitutions may also be made by a person skilled in the art to which the application pertains, based on the idea of the application.
Claims (9)
1. The method for testing the 3D printer grating data acquisition card is characterized by comprising the following steps of:
issuing a control instruction, wherein the control instruction comprises simulated printing state information;
generating a simulated grating signal according to the control instruction and sending the simulated grating signal to at least one grating data acquisition card of the 3D printer to be tested;
collecting a feedback grating signal sent by a grating data acquisition card of the 3D printer to be tested;
comparing the analog grating signal with the feedback grating signal;
the method comprises the steps that a simulated grating signal is generated according to the control instruction and is sent to at least one to-be-tested 3D printer grating data acquisition card, and the method comprises the following steps:
generating a direction signal and a pulse signal according to the control instruction;
converting the direction signal and the pulse signal into analog grating signals in the form of single-ended signals;
and converting the analog grating signal in the form of a single-ended signal into the analog grating signal in the form of a differential signal, and transmitting the analog grating signal to at least one grating data acquisition card of the 3D printer to be tested.
2. The method of claim 1, wherein,
the analog grating signal in the single-ended signal form comprises an analog grating A signal, an analog grating B signal and an analog grating Z signal;
the analog grating signals in the form of differential signals 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 correspond to the analog grating A+/A-signal, the analog grating B+/B-signal and the analog grating Z+/Z-signal respectively;
the simulated grating A+/A-signal corresponds to the motion state of the X motion axis of the 3D printer, the simulated grating B+/B-signal corresponds to the motion state of the Y motion axis of the 3D printer, and the simulated grating Z+/Z-signal corresponds to the motion state of the 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;
the comparison of the analog grating signal and the feedback grating signal is as follows:
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.
3. A 3D printer raster data acquisition card test system, characterized in that it is used for testing a 3D printer raster data acquisition card by applying the method according to any one of claims 1 to 2, and the acquisition card test system comprises a test board, an operation unit and an analog 3D printing main controller, which are sequentially connected;
the test plate is used for being connected to at least one analog output grating signal module, and the at least one analog output grating signal module is used for being correspondingly connected to at least one to-be-tested 3D printer grating data acquisition card;
the operation unit is used for sending a control instruction to the test plate; the control instruction includes simulated printing status information;
the test plate is used for generating a simulated grating signal according to the control instruction and sending the simulated grating signal to a corresponding grating data acquisition card of the 3D printer to be tested through a simulated 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 operation unit is also used for comparing the analog grating signal with the feedback grating signal.
4. The system of claim 3, wherein the system comprises,
the test plate comprises an FPGA core plate and a grating single-ended signal conversion differential signal circuit module;
the FPGA core board comprises an Ethernet interface module, a main control module and an analog grating signal generator module which are connected in sequence;
the Ethernet interface module is also connected to the operation unit and is used for receiving the control instruction sent by the operation 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 simulated grating signal generator module;
the analog grating signal generator module is used for converting the direction signal and the pulse signal into analog grating signals in the form of single-ended signals and transmitting the analog grating signals to the grating single-ended signal-to-differential signal circuit module;
the grating single-end signal-to-differential signal circuit module is used for converting an analog grating signal in a single-end signal form into an analog grating signal in a differential signal form and transmitting the analog grating signal to a grating data acquisition card of the 3D printer to be tested through the analog output grating signal module.
5. The system of claim 4, wherein,
the analog grating signal in the single-ended signal form comprises an analog grating A signal, an analog grating B signal and an analog grating Z signal;
the analog grating signals in the form of differential signals 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 correspond to the analog grating A+/A-signal, the analog grating B+/B-signal and the analog grating Z+/Z-signal respectively;
the simulated grating A+/A-signal corresponds to the motion state of the X motion axis of the 3D printer, the simulated grating B+/B-signal corresponds to the motion state of the Y motion axis of the 3D printer, and the simulated grating Z+/Z-signal corresponds to the motion state of the Z motion axis of the 3D printer;
the feedback grating signals sent by the grating data acquisition card of the 3D printer to be tested, which are 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 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.
6. The system of claim 4, wherein,
the simulated grating signal generator module 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 GND pin No. 13, the OE pin of the chip U5 and the GND pin No. 13, the B4 pin, the B3 pin, the B2 pin, the B1 pin and the OE pin of the chip U12 are grounded; the pin B8, pin B7, pin B6, pin B5, pin B4, pin B3, pin B2, pin B1, pin B8, pin B7, pin B6 and pin B5 of the chip U5 are respectively connected to the 12 th, 11 th, 10 th, 9 th, 8 th, 7 th, 6 th, 5 th, 4 th, 3 rd, 2 nd and 1 st port of the pin P3; the 23 rd 3.3V pin, the 24 th 3.3V pin of the chip U5 and the 23 rd 3.3V pin and the 24 th 3.3V pin of the chip U12 are connected to a power supply;
the No. 12 GND pin, the No. 11 GND pin, the DIR pin and the No. 12 GND pin, the No. 11 GND pin and the DIR pin of the chip U5 are grounded; the pin A8, pin A7, pin A6, pin A5, pin A4, pin A3, pin A2, pin A1 and pin A8, pin A7, pin A6 and pin A5 of the chip U12 are respectively connected to the pin 2A, pin 1A, pin 4A, pin 3A of the chip U6 and pin 2A, pin 1A, pin 4A, pin 3A of the chip U7 and pin 2A, pin 1A, pin 4A and pin 3A of the chip U9;
the VCC pin, 1,2EN pin, 3,4EN pin of the chip U6 and the VCC pin, 1,2EN pin, 3,4EN pin of the chip U7 and the VCC pin, 1,2EN pin and 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 6 th port, the 7 th port, the 3 rd port, the 4 th port of the pin J2 and the 3 rd port, the 4 th port, the 1 st port and the 2 nd port of the 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 1 st port, the 2 nd port of the pin J3, the 6 th port, the 7 th port of the pin J4 and the 6 th port, the 7 th port, the 3 rd port and the 4 th port of the pin J3;
the 1Y pin, 1Z pin, 2Y pin, 2Z pin, 3Y pin, 3Z pin, 4Y pin, 4Z pin of the chip U6 and the 1Y pin, 1Z pin, 2Y pin, 2Z pin, 3Y pin, 3Z pin, 4Y pin, 4Z pin of the chip U9 and the 1Y pin, 1Z pin, 2Y pin, 2Z pin, 3Y pin, 3Z pin, 4Y pin and 4Z pin of the chip U7 are also connected to VCC power supply through resistors, respectively.
7. The system of any one of claim 4 to 6, wherein,
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.
8. The system of any one of claim 4 to 6, wherein,
each 3D printer grating data acquisition card comprises a grating signal receiving module and a control kernel module which are connected with each other;
the grating signal receiving module is used for collecting grating signals in the form of differential signals 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 form of the differential signals into grating signals in the form of orthogonal square wave signals and sending the grating signals to the control kernel module;
the control kernel module is used for calculating 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.
9. The system of claim 8, wherein,
the actual motion information comprises speed, coordinates and/or displacement information;
the grating signal receiving module comprises a differential signal-to-single-ended signal circuit and a level conversion circuit; the control kernel module comprises a grating signal data processing module, an Ethernet interface module and an Ethernet control kernel module; the grating signal data processing module comprises a grating signal filtering algorithm processing module and a real-time motion information algorithm processing module; the differential signal-to-single ended signal 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 kernel module are connected in sequence;
the differential signal-to-single-ended signal circuit is used for collecting grating signals in the form of differential signals 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 form of the differential signals into grating signals in the form of orthogonal square wave signals and sending the grating signals to the level conversion circuit;
the level conversion circuit is used for converting the level of the grating signal in the form of the orthogonal square wave signal into a preset level and transmitting 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 the grating signals in the form of orthogonal square wave signals;
the real-time motion information algorithm processing module is used for carrying out frequency multiplication, direction identification and reversible counting processing according to the grating signals in the form of orthogonal square wave signals, so as to calculate the actual motion information of the X motion axis, the Y motion axis and the Z motion axis of the 3D printer, and send the actual motion information of the X motion axis, the Y motion axis and the Z motion axis to the Ethernet interface module;
the Ethernet interface module is used for sending the actual motion information of the X motion axis, the Y motion axis and the 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.
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 CN111045882A (en) | 2020-04-21 |
CN111045882B true 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)
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 |
-
2019
- 2019-12-27 CN CN201911383092.5A patent/CN111045882B/en active Active
Patent Citations (6)
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 |
---|---|
CN111045882A (en) | 2020-04-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN206614344U (en) | A kind of three axis numerically controlled machine with detection function | |
CN107262907A (en) | A kind of full servo supersonic welder | |
CN102275093B (en) | Workpiece measuring system based on five-axis numerical control system | |
CN107525967A (en) | A kind of measurement apparatus and method of contactless fluted disc frequency | |
CN104503367B (en) | A kind of turbo blade processing and on-line detecting system based on numerical control processing apparatus | |
CN107124412A (en) | A kind of BISS protocol datas coding/decoding method and interface system | |
CN211604099U (en) | 3D printer grating data acquisition card test system | |
CN101881637A (en) | Encoder test system based on virtual instrument | |
CN111045882B (en) | 3D printer grating data acquisition card test system and test method | |
CN106502212A (en) | A kind of integrated numerical-control system of laser Digit Control Machine Tool | |
CN103913122A (en) | Workpiece length measurement device | |
CN201903645U (en) | Automatic detecting device of ultrasonic wave sensor | |
CN103612491A (en) | Laser marking control card | |
CN106909125A (en) | A kind of monitoring system and method for motor processability index | |
CN105675115A (en) | Laser Doppler online vibration testing system and method | |
CN202710986U (en) | Backplane bus type structure of vibration monitoring protection device | |
CN102521454B (en) | Processing craft data evaluating method and device | |
CN109458969B (en) | Multi-axis synchronous measurement and control method of position full closed loop | |
CN101762252A (en) | Virtual three-coordinate measuring instrument and use method thereof | |
CN204807990U (en) | Material testing machine controller | |
CN207148218U (en) | A kind of measurement apparatus of contactless fluted disc frequency | |
CN203911823U (en) | Ethernet-based electromotor controller and control system | |
CN203567353U (en) | Production management system of corrugated carton printing machine | |
CN209477731U (en) | A kind of real-time acquisition system of XY worktable absolute optical gate signal | |
CN202582473U (en) | Personal computer (PC) open type controller-based measurement 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 |