CN108332833A - A kind of film roll weight is read in and Transmission system - Google Patents
A kind of film roll weight is read in and Transmission system Download PDFInfo
- Publication number
- CN108332833A CN108332833A CN201810120252.6A CN201810120252A CN108332833A CN 108332833 A CN108332833 A CN 108332833A CN 201810120252 A CN201810120252 A CN 201810120252A CN 108332833 A CN108332833 A CN 108332833A
- Authority
- CN
- China
- Prior art keywords
- machine
- industry control
- film roll
- read
- data
- 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
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01G—WEIGHING
- G01G19/00—Weighing apparatus or methods adapted for special purposes not provided for in the preceding groups
- G01G19/40—Weighing apparatus or methods adapted for special purposes not provided for in the preceding groups with provisions for indicating, recording, or computing price or other quantities dependent on the weight
- G01G19/413—Weighing apparatus or methods adapted for special purposes not provided for in the preceding groups with provisions for indicating, recording, or computing price or other quantities dependent on the weight using electromechanical or electronic computing means
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Mathematical Physics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Cash Registers Or Receiving Machines (AREA)
Abstract
A kind of film roll weight of the present invention is read in and Transmission system, including following component part:Electronic platform scale(1), the corresponding electric signal of object generation for simulating the different weight on electronic platform balance, the electronic platform scale(1)Output end and weighing instrument(2)Input terminal by signal cable be connected;Weighing instrument(2), the weighing instrument(2)Asynchronous transmission standard interface and industry control PC machine(3)Asynchronous transmission standard interface passes through 232 cable two-way communications of RS, industry control PC machine(3), the industry control PC machine(3)Obtain the weighing data without parsing;Dynamic link library file ToFoMt.DLL(4), the weighing data for parsing the output of industry control PC machine.For weighing data of the present invention without interference from human factor, data are accurate, save labour, reduce production cost.
Description
Technical field
The invention belongs to film rolls during electrician's packaging field to weigh, and in particular to a kind of film roll weight is read in and transmission system
System.
Background technology
Films for electrical purposes film roll after cutting before packing, need to weigh its weight, weight data is first by manually from weighing instrument
It is read on table, then the weight column by its weight data to be manually input to the warehouse logistics information system on computer, then by storehouse
The manufacture label that storage logistic information systems generate prints, and the manufacture label printed is attached to outside corresponding packing case, together
When warehouse logistics information system back up corresponding information.Such artificial reading weight, input weight, print label exist due to people
It is also easy to produce error in reading and data entry error and ineffective drawback for factor.
Invention content
In view of the deficiencies of the prior art, the present invention provides a kind of no interference from human factor, weighing data is accurate, quick, section
About labour, the film roll weight for reducing production cost is read in and Transmission system, and a kind of film roll weight of the present invention is read in and transmission system
System, including following hardware composition part:
Electronic platform scale, the corresponding electric signal of object generation for simulate the different weight on electronic platform balance, electronic platform scale it is defeated
Outlet is connected with the input terminal of weighing instrument by signal cable;
Weighing instrument, asynchronous transmission standard interface and the industry control PC machine asynchronous transmission standard interface of weighing instrument pass through RS-232
Cable two-way communication;
Industry control PC machine is connect for printing emblem mark label, and by LAN with warehouse logistics information system;
It further include application software part:Dynamic link library file ToFoMt.DLL;
Dynamic link library file ToFoMt.DLL, the weighing data for parsing the output of industry control PC machine.Warehouse logistics information system
Software is the operation platform using the WINDOWS of Microsoft as software, can not directly receive com port data, it is necessary to pass through WINDOWS
API application programming interfaces operated, read com port demand data to meet information system, need self-defined dynamic
Link library file ToFoMt.DLL is used to parse the weighing data of the com port of industry control PC machine, and industry control PC machine is obtained without parsing
Weighing data, the weighing data through dynamic link library file ToFoMt.DLL parsings, and warehouse logistics information system software can be made
It can directly read.
As a further improvement on the present invention, the model plum Teller of electronic platform scale-support benefit BBA211-5CA300 types,
Mesa dimensions are 420 × 550mm, maximum capacity 150kg, verification scale interval 0.05kg, and electronic platform balance is mounted on packaging line
On.
As a preference of the present invention, the asynchronous transmission standard interface of weighing instrument and industry control PC machine asynchronous transmission standard interface
It is 9 stitch public affairs mouths, wherein 2 stitch are to read, 3 stitch are to write, 5 stitch ground connection, and the both ends of RS-232 cables are 9 Kong mother's mouths,
The industry control PC machine is mounted in packaging operation room.Model plum Teller-support benefit IDN231 of weighing instrument.
Beneficial effects of the present invention:The present invention is connected the data information that film roll weight is characterized in packaging process by weighing instrument
It resumes studies into and is transferred to industry control PC machine com port, parsing com port by self-defined dynamic link library file ToFoMt.DLL softwares claims
Tuple evidence makes film roll weight data in packaging process become the data that warehouse logistics information system can be read in, aobvious in industry control PC machine
The warehouse logistics information system window interface of display screen, when operating personnel manually click " preservation " warehouse logistics information, industry control PC machine
Film roll weight data is included in warehouse logistics information system, and prints outgoing label, due to film roll weight reading and input nobody
Exist for factor, data are accurate and data input is errorless;Film roll weight can be completed in " preservation " action at artificial window interface
The reading and input of amount, improve work efficiency.
Description of the drawings
Fig. 1 is the principle of compositionality figure of a kind of film roll weight reading of the present invention and Transmission system;
Wherein, 1 electronic platform scale, 2 weighing instruments, 3 industry control PC machine, 4 application software dynamic link library files
ToFoMt.DLL。
Specific implementation mode
As shown in Figure 1, a kind of film roll weight of the present invention is read in and Transmission system, including following hardware composition part:Electronics
Platform balance 1, the object for simulating the different weight on electronic platform balance generate corresponding electric signal, the output of the electronic platform scale 1
End is connected with the input terminal of weighing instrument 2 by signal cable;Model plum Teller-support benefit BBA211- of electronic platform scale 1
5CA300 types, mesa dimensions are 420 × 550mm, maximum capacity 150kg, verification scale interval 0.05kg.The electronic platform balance installation
On packaging line;Weighing instrument 2, asynchronous transmission standard interface and the 3 asynchronous transmission mark of industry control PC machine of the weighing instrument 2
Quasi- interface passes through RS-232 cable two-way communications;The asynchronous transmission standard interface of weighing instrument 2 and 3 asynchronous transmission of industry control PC machine
Standard interface is 9 stitch public affairs mouths, wherein 2 stitch are to read, 3 stitch are to write, 5 stitch ground connection, and the both ends of RS-232 cables are 9
Kong mother's mouth, model plum Teller-support benefit IDN231 of weighing instrument 2.Industry control PC machine 3, the industry control PC machine 3 is for printing
Emblem mark label, and connect with warehouse logistics information system by LAN, the industry control PC machine 3 is mounted in packaging operation room;Also
Including application software 4:Dynamic link library file ToFoMt.DLL, the dynamic link library file ToFoMt.DLL, for parsing
The weighing data of industry control PC machine output.Warehouse logistics information system software is that the operation using the WINDOWS of Microsoft as software is flat
Platform can not directly receive com port data, it is necessary to be operated by the API application programming interfaces of WINDOWS, in order to full
Sufficient information system reads com port demand data, needs self-defined dynamic link library file ToFoMt.DLL for parsing industry control PC machine
Com port weighing data, industry control PC machine obtains the weighing data without parsing, is solved through dynamic link library file ToFoMt.DLL
The weighing data of analysis, and can make warehouse logistics information system software that can directly read.The dynamic link library file
ToFoMt.DLL4 can be directly mounted under the catalogue of WINDOWS operating systems of PC machine.
Film roll weight described above is read in below and the present invention is done furtherly in Transmission system combination practical operation
It is bright:
1. film roll weight is converted into analog electrical signal by electronic platform balance, exported in real time by signal cable to the input of weighing instrument
End.
2. setting weighing instrument port configuration parameter to continuous output mode.Weighing instrument is on the one hand by electronic table at this time
Deserve to be called film roll weight with " KG " be unit show, on the other hand by film roll weight signal data by its com port continuously transmit to
Industry control PC machine com port.
3. weighing instrument com port(9 stitch public affairs mouths)With industry control PC machine com port(9 stitch public affairs mouths)Connected by RS-232 cables
It connects, RS-232 cable ends are 9 Kong mother's mouths.By weighing instrument after RS-232 cable connections and industry PC mechanism at two-way
Letter, i.e., 3 stitch write signal of weighing instrument com port is electrically connected with 2 stitch read signal of industry control PC machine com port, weighing instrument com port 2
Stitch read signal is electrically connected with 3 stitch write signal of industry control PC machine com port, meets the two-way of weighing instrument transport protocol to constitute
Communication, communication data contain 17 or 18 bytes.
4. the application software under the catalogue of the WINDOWS operating systems of PC machine:Self-defined dynamic link library file
Communication data is parsed into the data that warehouse logistics information system can be read in by ToFoMt.DLL.Its principle process is as follows:
4.1.TofoMt.DLL file call function GetMtWeight.GetMtWeight functions include port numbers intPort, again
Measure tri- character string strWeight, return value intValid parameters.Wherein port numbers refer to industry control PC machine and weighing instrument two-way
The com port of letter, weight character string refer to the need parsing weight character string of weighing instrument transmission, and return value is used for providing normal or abnormal
State identification.
4.2.TofoMt.DLL file initiating port.TofoMt.DLL files call the api function of WINDOWS to industry control
PC machine COM port initializes(Port default 1, baud rate 9600, data bit 8, stop position 1, effect position NONE), such as initialize end
Mouth error sends return value -1 (opening mistake in port) to GetMtWeight functions.
4.3.TofoMt.DLL file circularly monitoring industry control PC machine COM port state.The COM port of weighing instrument is sent out always
Weight signal data are sent, include ASCII starts of text character in data(0x02), when it is not 0x02 to receive character, abandon;When
When reception character is 0x02, successive character is saved into character array Buffer.As reading character array Buffer the 17th
When data are equal to 0x0D, TofoMt.DLL files enter weight data analysis;When reading the 17th data of character array Buffer
When not equal to 0x0D, empties character array Buffer, TofoMt.DLL file and return to circularly monitoring port status;More than three seconds nothings
Method enters weight data analysis, and it is 5 to send return value(Time-out)Give GetMtWeight functions, close port.
4.4.TofoMt.DLL file weight data is analyzed.Second character in character array Buffer is searched, with 0x07
Progress and operation, obtain the decimal point precision of weighing data, are stored in the dbRadix that data type is DOUBLE;Search word
Third character in array Buffer is accorded with, carries out, with after operation, deviating 4 to the right with 0x10, obtains the unit essence of weighing data
Degree(Kg, g), it is stored in the dbUnit that data type is DOUBLE;Third character in character array Buffer is searched, with
0x02 with after operation, deviate 1 to the right, obtain the symbol precision of weighing data(Sign), being stored in data type is
In the iSign of INT.
4.5.TofoMt.DLL file weight data converts.Search the 5th, 6,7,8,9,10 word in character array Buffer
Symbol carries out character string linking, is reconverted into number, multiplies dbRadix, dbUnit, iSign, obtain weighing data type DOUBLE
DbVal, dbVal is converted into character string, is assigned to the strWeight parameters of GetMtWeight functions, data is completed and reads
It takes.And it is 0 to send return value(Normally)Give GetMtWeight functions, close port.
5. industry PC cabin storing stream information system windows include the information of the palpus typing such as name of product, specification, lot number, when
When manually clicking " preservation " key on warehouse logistics information system window after these complete information of typing, warehouse logistics information system tune
With the weight data of self-defined dynamic link library file ToFoMt.DLL at this time.And the film that pop-up one is read on PC machine screen
Gravimetric value window is rolled up, which includes:Film roll weight as unit of KG, is confirmed whether the selection key " confirmation " preserved and " takes
Disappear ".Weight of the film roll weight i.e. automatic input that window is shown when click " confirmation " key to warehouse logistics information system window
Information bar, the weight information not typing when click " cancellation " key.
6. click " printing " key of warehouse logistics information system window, you can print warehouse logistics information system window
Including content manufacture label.
Film roll weight of the present invention is read in and Transmission system will characterize the data information of film roll weight by weighing in packaging process
Industry control PC machine com port is continuously read in and be transferred to instrument, and com port is parsed by self-defined dynamic link library file ToFoMt.DLL
Weighing data makes film roll weight data in packaging process become the data that warehouse logistics information system can be read in, is manually clicking
When " preservation " warehouse logistics information, film roll weight data is included in warehouse logistics information system by industry control PC machine, and prints outgoing label,
Since the reading of film roll weight exists with input without human factor, data are accurate and data input is errorless;It is artificial to click " preservation "
The reading and input of film roll weight can be completed in action, improves work efficiency.
Claims (5)
1. a kind of film roll weight is read in and Transmission system, it is characterised in that including following component part:
Electronic platform scale(1), the corresponding electric signal of object generation for simulating the different weight on electronic platform balance, the electronic table
Scale(1)Output end and weighing instrument(2)Input terminal by signal cable be connected;
Weighing instrument(2), the weighing instrument(2)Asynchronous transmission standard interface and industry control PC machine(3)Asynchronous transmission standard connects
Mouth passes through RS-232 cable two-way communications;
Industry control PC machine(3), the industry control PC machine(3)Obtain the weighing data without parsing;
Dynamic link library file ToFoMt.DLL(4), the weighing data for parsing the output of industry control PC machine.
2. a kind of film roll weight according to claim 1 is read in and Transmission system, which is characterized in that the electronic platform scale
(1)Model plum Teller-support benefit BBA211-5CA300 types, mesa dimensions be 420 × 550mm, maximum capacity 150kg, inspection
Calibration value 0.05kg.
3. a kind of film roll weight according to claim 1 is read in and Transmission system, which is characterized in that the weighing instrument
(2)Asynchronous transmission standard interface and industry control PC machine(3)Asynchronous transmission standard interface is 9 stitch public affairs mouths, wherein 2 stitch are
It reads, 3 stitch are to write, 5 stitch ground connection, and the both ends of the RS-232 cables are 9 Kong mother's mouths.
4. a kind of film roll weight according to claim 1 or 3 is read in and Transmission system, which is characterized in that the weighing instrument
Table(2)Model plum Teller-support benefit IDN231.
5. a kind of film roll weight according to claim 1 is read in and Transmission system, which is characterized in that the electronic platform balance peace
On packaging line, the industry control PC machine(3)In packaging operation room.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810120252.6A CN108332833B (en) | 2018-02-07 | 2018-02-07 | Film roll weight reading and transmission system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810120252.6A CN108332833B (en) | 2018-02-07 | 2018-02-07 | Film roll weight reading and transmission system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108332833A true CN108332833A (en) | 2018-07-27 |
CN108332833B CN108332833B (en) | 2020-01-03 |
Family
ID=62926991
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810120252.6A Active CN108332833B (en) | 2018-02-07 | 2018-02-07 | Film roll weight reading and transmission system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108332833B (en) |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101554726A (en) * | 2009-05-15 | 2009-10-14 | 北京工业大学 | Flexible two-wheel self-balance robot system and motion control method thereof |
CN101667034A (en) * | 2009-09-21 | 2010-03-10 | 北京航空航天大学 | Scalable monitoring system supporting hybrid clusters |
CN101881647A (en) * | 2010-06-04 | 2010-11-10 | 新余钢铁集团有限公司 | Remote automatic weighing system |
CN101916192A (en) * | 2010-09-14 | 2010-12-15 | 深圳市华力特电气股份有限公司 | Multi-language switching method and device for user interface |
CN102339314A (en) * | 2011-09-24 | 2012-02-01 | 国网电力科学研究院 | Cross-terminal data form description and presentation method based on extensive makeup language (XML) |
CN102663164A (en) * | 2012-03-16 | 2012-09-12 | 北京邮电大学 | Pass control algorithm test device and method based on multiobjective test case generation |
CN102930706A (en) * | 2012-11-12 | 2013-02-13 | 武钢集团昆明钢铁股份有限公司 | Remote concentration measurement multi-protocol data acquisition system and method |
CN104792651A (en) * | 2015-04-27 | 2015-07-22 | 安徽工程大学 | Automatic soil boundary water content detection device |
WO2016038267A1 (en) * | 2014-09-12 | 2016-03-17 | Bull Sas | Allocation of resources |
CN105954702A (en) * | 2016-07-18 | 2016-09-21 | 国家电网公司 | Electronic transformer calibrator phase error detection system and method |
CN106182017A (en) * | 2016-07-20 | 2016-12-07 | 上海交通大学 | The method and system of robot are controlled based on RS485 serial bus host computer IPC |
-
2018
- 2018-02-07 CN CN201810120252.6A patent/CN108332833B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101554726A (en) * | 2009-05-15 | 2009-10-14 | 北京工业大学 | Flexible two-wheel self-balance robot system and motion control method thereof |
CN101667034A (en) * | 2009-09-21 | 2010-03-10 | 北京航空航天大学 | Scalable monitoring system supporting hybrid clusters |
CN101881647A (en) * | 2010-06-04 | 2010-11-10 | 新余钢铁集团有限公司 | Remote automatic weighing system |
CN101916192A (en) * | 2010-09-14 | 2010-12-15 | 深圳市华力特电气股份有限公司 | Multi-language switching method and device for user interface |
CN102339314A (en) * | 2011-09-24 | 2012-02-01 | 国网电力科学研究院 | Cross-terminal data form description and presentation method based on extensive makeup language (XML) |
CN102663164A (en) * | 2012-03-16 | 2012-09-12 | 北京邮电大学 | Pass control algorithm test device and method based on multiobjective test case generation |
CN102930706A (en) * | 2012-11-12 | 2013-02-13 | 武钢集团昆明钢铁股份有限公司 | Remote concentration measurement multi-protocol data acquisition system and method |
WO2016038267A1 (en) * | 2014-09-12 | 2016-03-17 | Bull Sas | Allocation of resources |
CN104792651A (en) * | 2015-04-27 | 2015-07-22 | 安徽工程大学 | Automatic soil boundary water content detection device |
CN105954702A (en) * | 2016-07-18 | 2016-09-21 | 国家电网公司 | Electronic transformer calibrator phase error detection system and method |
CN106182017A (en) * | 2016-07-20 | 2016-12-07 | 上海交通大学 | The method and system of robot are controlled based on RS485 serial bus host computer IPC |
Non-Patent Citations (2)
Title |
---|
布赖特 等: "《Zortrch C++ V2.0 用户参考手册》", 28 February 1991 * |
张烈山: "多组舱段质量质心测量设备关键技术研究", 《中国优秀硕士论文全文数据库》 * |
Also Published As
Publication number | Publication date |
---|---|
CN108332833B (en) | 2020-01-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110502467B (en) | Universal acquisition interface software system based on serial port modbus communication protocol | |
US20050197916A1 (en) | Market data message format | |
JPH05501462A (en) | Method and apparatus for mail processing system | |
US6584113B1 (en) | Data transfer module and system using same | |
CN101992609B (en) | Label printing device based on large-size host machine platform | |
JPS6015739A (en) | Interactive type code conversion controller | |
US4642791A (en) | Interface for mailing system peripheral devices | |
CN107168834A (en) | Method and device for detecting computer startup fault | |
EP1531582B1 (en) | Remote monitoring system, remote monitoring method for electronic apparatus, notification method of apparatus monitoring information, high order monitoring apparatus, program and recording medium | |
US20060036558A1 (en) | Universal serial bus scale | |
CN108332833A (en) | A kind of film roll weight is read in and Transmission system | |
US20220182181A1 (en) | Operating method of self-service terminal and self-service terminal | |
US6061694A (en) | Message structure | |
CN106803319A (en) | A kind of process of exchange control device of the compatible difference weighing sensors of energy | |
CN112260925B (en) | Electronic scale data transmission method, device, equipment and storage medium of virtual network | |
CN203148547U (en) | Novel bar code printing and weighing system | |
CN102184476A (en) | Cotton bale high-speed on-line weighing tag system | |
CN207147606U (en) | Analytical balance weighing data electronization device | |
JP2003248005A (en) | Sample analysis system, sample analysis apparatus and server used for system | |
CN111698336A (en) | Internet of things information transmission method and device and terminal | |
CN202041957U (en) | High-speed online balance weight label system for cotton bales | |
CN108608740A (en) | Bar code printer system and its method for supplier's delivery bar code printing | |
CN110399326B (en) | Data conversion equipment | |
CN209673208U (en) | Weighing instrument and weighing system | |
JPS6010850A (en) | Transmission information output 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 |