CN107066219A - A kind of network printing method of relay protection device of intelligent substation - Google Patents
A kind of network printing method of relay protection device of intelligent substation Download PDFInfo
- Publication number
- CN107066219A CN107066219A CN201710193759.XA CN201710193759A CN107066219A CN 107066219 A CN107066219 A CN 107066219A CN 201710193759 A CN201710193759 A CN 201710193759A CN 107066219 A CN107066219 A CN 107066219A
- Authority
- CN
- China
- Prior art keywords
- network
- protective relaying
- connection
- relaying device
- network printer
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1202—Dedicated interfaces to print systems specifically adapted to achieve a particular effect
- G06F3/1203—Improving or facilitating administration, e.g. print management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1202—Dedicated interfaces to print systems specifically adapted to achieve a particular effect
- G06F3/1222—Increasing security of the print job
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1236—Connection management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1278—Dedicated interfaces to print systems specifically adapted to adopt a particular infrastructure
- G06F3/1285—Remote printer device, e.g. being remote from client or server
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
The present invention relates to a kind of network printing method of relay protection device of intelligent substation, including:Protective relaying device is communicated by station level/interval layer network with the network printer, is judged between the network printer with the presence or absence of connection;If connection is not present between protective relaying device and the network printer, the connection between protective relaying device and the network printer is created by the address and TCP port number that set the network printer;After connection is created successfully, data to be printed are converted into Esc sequences and send the network printer by protective relaying device.The present invention in protective relaying device by setting a TCP port for supporting Esc sequence print datas; the Esc sequence print datas that protective relaying device directly can recognize printer are sent to the network printer; without setting special network print server again, the efficiency and reliability of data-printing are effectively increased.
Description
Technical field
The present invention relates to a kind of network printing method of relay protection device of intelligent substation, belong to transformer substation system equipment
Technical field.
Background technology
Run and in the protection device of transformer station is built at present, mainly there are two kinds of forms:GPF (General Protection False device and intelligence
Can protection device.Protection device debugging, put into operation, run, overhauling and maintenance process in, it is necessary to printing equipment software version number,
Systematic parameter, protection definite value, information point table, the report of various protection acts, various abnormal protection warning information, failure wave-recording and
Real-time Simulation value etc., these information and data can be used for achieving or crash analysis, be the important firsthand information in scene.
In conventional substation, a protection screen cabinet is equipped with an impact printer, for relatively large transformer station, the number of impact printer
Amount is just quite huge.Intelligent substation is also the pattern that an impact printer is configured using each protection screen cabinet in early stage, after
, in order to cost-effective, to reduce the quantity of impact printer, the mould of one or several impact printer is configured using each cell
Formula;Or only it is equipped with the network printer of a station level, and export again after transferring by monitoring system the relevant information of device
Printed to the network printer, but the information that this pattern can be printed is just very limited, and form is also with the phase of impact printer
Difference is far, is unsatisfactory for transporting the custom of inspection personnel.
Protection device is with being attached by RS232 serial ports between impact printer, by printing the performance institute of serial ports
Limit, very long, the printing of such as recorder data is often taken when data volume is larger.When intelligent station is configured using each protective chamber
During the pattern of one to two impact printers, a usual transformer station can use the protection device of several families, and different manufacturers
Protection device interface is likely to difference, so the dump of some protection devices can be caused not come out.In addition, this pattern
Under when printer is moved between different screen cabinets need frequently change wiring, in addition it is also necessary to AC power is provided, this give work on the spot
Bring a part of trouble.And when intelligent station is using only one station control layer network printer of configuration, monitoring system can only be transferred
To seldom a part of device parameter, such as definite value, and the definite value transferred with the definite value that prints on the spot comparatively, once being not
Comprehensively, two be that form is inconsistent with what is printed on the spot to the definite value of ground printing, does not meet the custom of fortune inspection personnel, is also unsatisfactory for achieving
The requirement of form.
For problem above, when seeking solution, protection device printing interface is transform as RS485 by some propositions,
Then whole station or the protection device of a cell are linked into by universal serial bus on the print control unit of a customization, the printing control
Device processed is output on printer by RS232 mouthfuls, but this mode does not solve the problem of printing effect is not high, and is added and applied
The difficulty of work.Some propositions set up a network print server using existing wall and station level network structure, work as guarantor
When protection unit has printing demand, print data is sent to network print server, network using existing standard traffic stipulations
Printing server is received to be converted data to the data format of printer and issues printer again after data.This pattern utilizes net
Network improves printing effect, but has an intermediate conversion links, and no matter this intermediate conversion is gone back in background monitoring machine
It is single, is required for carrying out intermediate storage and the conversion of data, printing effect is not only limit, while increasing data-printing
Uncertainty and security risk.
The content of the invention
It is an object of the invention to provide a kind of network printing method of relay protection device of intelligent substation, for solve after
Electrical protective device causes the problem of printing effect is poor needing progress data conversion during print data.
In order to solve the above technical problems, the invention provides a kind of network printing side of relay protection device of intelligent substation
Method, comprises the following steps:
Step 1, protective relaying device is communicated by station level/interval layer network with the network printer, is judged and net
With the presence or absence of connection between network printer;
Step 2, if connection is not present between protective relaying device and the network printer, by setting the network printer
Address and TCP port number create the connection between protective relaying device and the network printer;
Step 3, after connection is created successfully, data to be printed are converted into Esc sequences and send network by protective relaying device
Printer.
Further, the step of data to be printed are converted into Esc sequences by protective relaying device includes:
Step 3-1, reads character library and printing source file, and reads each style of writing notebook data in printing source file, calculates
Offset;
Step 3-2, searches character library, and each text data printed in source file is generated into Esc sequences.
Further, the TCP port number of the network printer is 9100.
Further, if in addition to be connected to the first setting time section in can not create success, carry out information alert.
Further, the first setting time section is 10s.
Further, if there is connection between protective relaying device and the network printer, protective relaying device is directly sharp
With the connection Esc sequences that data to be printed are converted are transmitted to the network printer.
Further, in addition to protective relaying device to the network printer transmit Esc the sequence ends after, second set when
Between determine whether new print out task in section, if without print out task, closing between protective relaying device and the network printer
Connection.
Further, if there is print out task, protective relaying device then continues with the connection and treated to network printer transmission
The Esc sequences of the data conversion of printing.
The beneficial effects of the invention are as follows:Data to be printed directly are converted into the network printer in protective relaying device can
With the Esc sequences of identification, the network printer then is sent using the existing station level of intelligent substation and wall network structure, by
In only needing to modify to software without increasing hardware, so as to without setting special network print server again, save
Intermediate storage and conversion links have been gone, the safety and reliability of printing effect and data-printing is improved.
Brief description of the drawings
Fig. 1 is inventive network structure chart;
Fig. 2 is print menu schematic diagram of the present invention;
Fig. 3 is inventive network printing flow chart.
Embodiment
Below in conjunction with the accompanying drawings and specific embodiment is further described in detail to technical scheme.
The protection device of intelligent station at this stage is more normal because of its cpu performance, memory size and other additional device performances
Rule protection device has the raising of matter, and this carries out Function Extension for it and provides premise.PCL(Printer Command
Language, printer control language) to be Hewlett-Packard Corporation be directed to one kind that its printer product is released the seventies in last century to language
Printer pages description language, come true at present on standard, obtained the printing device of different vendor's Multiple Type
Support.PCL print job commands and data are all made up of the Esc sequences with parameter.PCL language is for simple documents data
Support it is very good, therefore be also admirably suitable for print protective relaying device various documents and data.
As shown in figure 1, the protective relaying device of intelligent substation wall is using ICP/IP protocol and interval layer switch
Connection is set up, transformer station's station level only needs to configure a network printer, and its interface uses general RJ45, supports PCL to beat
Print control language, such as HP LaserJet 5200n.The center that the network printer is connected to intelligent substation station level is exchanged
Machine, as shown in Figure 1.Certainly, in order to further improve printing effect, many network printers be may also set up.
Communication is also to use RJ45 interfaces between intelligent substation protection device and monitoring backstage, telemechanical etc., between them
It is attached by being spaced layer switch and station level interchanger, forms network system.Protection device and monitoring backstage, telemechanical etc.
Between communication using standard communication protocol, such as communication protocol 103, communication protocol 104 and 61850, PCL use and these mark
The different TCP port number of quasi- stipulations, such as port numbers 9100.Therefore, protection device increase printing function will not be with original function
Clash.
For the serially printing function before compatibility, retaining the related setting option external demand of original serially printing in protection device
Upper some menu items of increase, as shown in Figure 2.The menu item related to network printing includes:Network printing, on the spot printing (serial ports
Printing), printing server IP address and printing server port numbers.When selection is printed on the spot, due to being uniterming, now
Network printing can not be selected again, using former serially printing pattern, and other serial port settings are with as before, printing server
This two settings of IP address and printing server port numbers do not work to it;When selecting network printing, due to being uniterming,
Now printing can not be selected again on the spot, using network printing pattern, need to set printing server IP address and printing server end
Slogan.During protection device power-up initializing, default server IP address and default server port can be distributed to the network printer
Number, for example, default server IP address is 10.100.100.250, default server port numbers are 9100.Scene can be according to reality
Border situation modification server ip address, and default server port numbers 9100 need not typically be changed.
When needing to print the data such as printing definite value, protection act report, protective relaying device using station level and
Interval layer network is directly communicated with the network printer, and printing flow is as shown in figure 3, specifically include following steps:
Step 1, protective relaying device judges whether to select network printing, if selection network printing, judges that relay protection is filled
Put to whether there is between the network printer and be connected.
After corresponding print menu is pressed, protective relaying device receives this print command, and carries out printing model
Judgement, if in printing model on the spot, then call former serially printing handling process to be handled, if network mould
Formula, then into network printing handling process.Under network mode, protective relaying device passes through station level/interval layer network and net
Network printer is communicated, and is judged between current protective relaying device and the network printer with the presence or absence of connection.
Step 2, if connection is not present between protective relaying device and the network printer, by setting the network printer
Address and TCP port number create the connection between protective relaying device and the network printer.
If connection is not present between protective relaying device and the network printer, protective relaying device and network are begun setting up
Connection between printer, if connection time-out can not be set up, i.e., can not create success in the first setting time section, then carry out
Information alert, for example, when overtime 10s connections can not be created successfully, then report " connection failure is set up with the network printer, please mistake
Can youngster retry " information.Certainly, the content of specific first setting time and prompt message can be with sets itself.
If in addition, there is connection between protective relaying device and the network printer, protective relaying device is directly utilized should
Connect to network printer transferring printing data, i.e., the Esc sequences that data to be printed are changed into.
Step 3, after connection is created successfully, data to be printed are converted into Esc sequences and send network by protective relaying device
Printer.
Wherein, the step of data to be printed are converted into Esc sequences by protective relaying device includes:
Step 3-1, sets job control command and page control command, reads character library and printing source file, and reading is beaten
Each style of writing notebook data in source file is printed, offset is calculated.
Wherein, job control command mainly has device reset (Ec E), printing number (Ec&l#X), two sides/one side printing
(Ec&l#S) etc.;Page control command mainly has paper source (Ec&l#H), antiquarian (Ec&l#A), direction (Ec&l#O)
Deng;Source file refers to the data file to be printed;Character library is our various Chinese characters, numeral, the dot-matrix font of character to be used
Storehouse;Then each style of writing notebook data in source file is read, offset is calculated, offset refers to one's own profession data start position distance
The position of left margin.
Step 3-2, according to character library, is sent to network by each text data generation Esc sequences printed in source file and beats
Print machine.
Simply, such as our file the first row only one of which "-" to be printed and in left margin position, then specifically
Esc sequences are as follows:
Due to the corresponding Esc sequences of each text data to be printed that are stored with character library, when needing each text data
When generating Esc sequences, the corresponding Esc sequences of the print text data only need to be called out from character library.When this needs is beaten
Print the All Files of transmission Esc sequences all send and terminate after, set printing to terminate order.
Step 4, protective relaying device is transmitted to the network printer after the Esc the sequence ends of data conversion to be printed,
New print out task is determined whether in second setting time section, has print out task, protective relaying device then continues with the company
Connect the Esc sequences that data conversion to be printed is transmitted to the network printer;If without print out task, close protective relaying device with
Connection between the network printer.
It is, starting timing after this print out task terminates, if had in defined second setting time new again
Print out task, then be continuing with the connection carry out print data transmission, if it exceeds setting time do not have new printing appoint
Business, then close the connection.Certainly, the second setting time is also that, according to actual conditions progress sets itself, can set by user
For 5s, 10s etc..
Specific embodiment is presented above, but the present invention is not limited to described embodiment.The base of the present invention
This thinking is above-mentioned basic scheme, for those of ordinary skill in the art, according to the teachings of the present invention, designs various changes
The model of shape, parameter simultaneously need not spend creative work.Without departing from the principles and spirit of the present invention to implementing
The change, modification, replacement and modification that mode is carried out are still fallen within protection scope of the present invention.
Claims (8)
1. a kind of network printing method of relay protection device of intelligent substation, it is characterised in that comprise the following steps:
Step 1, protective relaying device is communicated by station level/interval layer network with the network printer, judges to beat with network
With the presence or absence of connection between print machine;
Step 2, if connection is not present between protective relaying device and the network printer, by the address for setting the network printer
And TCP port number creates the connection between protective relaying device and the network printer;
Step 3, after connection is created successfully, data to be printed are converted into Esc sequences and send network printing by protective relaying device
Machine.
2. the network printing method of relay protection device of intelligent substation according to claim 1, it is characterised in that relay
The step of data to be printed are converted into Esc sequences by protection device includes:
Step 3-1, reads character library and printing source file, and reads each style of writing notebook data in printing source file, calculates skew
Amount;
Step 3-2, searches character library, and each text data printed in source file is generated into Esc sequences.
3. the network printing method of relay protection device of intelligent substation according to claim 1 or 2, it is characterised in that
The TCP port number of the network printer is 9100.
4. the network printing method of relay protection device of intelligent substation according to claim 1 or 2, it is characterised in that
If also including being connected in the first setting time section and can not create success, information alert is carried out.
5. the network printing method of relay protection device of intelligent substation according to claim 4, it is characterised in that described
First setting time section is 10s.
6. the network printing method of relay protection device of intelligent substation according to claim 1 or 2, it is characterised in that
If there is connection between protective relaying device and the network printer, protective relaying device directly utilizes the connection to network printing
Machine transmits the Esc sequences that data to be printed are changed into.
7. the network printing method of relay protection device of intelligent substation according to claim 1 or 2, it is characterised in that
Also include protective relaying device to transmit after Esc the sequence ends to the network printer, determined whether in the second setting time section
New print out task, if without print out task, the connection closed between protective relaying device and the network printer.
8. the network printing method of relay protection device of intelligent substation according to claim 7, it is characterised in that if having
Print out task, protective relaying device then continues with the Esc sequences that data conversion to be printed is transmitted in the connection to the network printer
Row.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710193759.XA CN107066219A (en) | 2017-03-28 | 2017-03-28 | A kind of network printing method of relay protection device of intelligent substation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710193759.XA CN107066219A (en) | 2017-03-28 | 2017-03-28 | A kind of network printing method of relay protection device of intelligent substation |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107066219A true CN107066219A (en) | 2017-08-18 |
Family
ID=59620448
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710193759.XA Pending CN107066219A (en) | 2017-03-28 | 2017-03-28 | A kind of network printing method of relay protection device of intelligent substation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107066219A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109656489A (en) * | 2018-10-31 | 2019-04-19 | 许继集团有限公司 | A kind of Embedded Relay Protector and its network printing method |
CN112527214A (en) * | 2020-10-23 | 2021-03-19 | 广西电网有限责任公司南宁供电局 | Nondestructive electronic reporting system for relay protection information of transformer substation |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030123075A1 (en) * | 2001-12-28 | 2003-07-03 | Ching-Ching Lin | Network printing system |
CN1432901A (en) * | 2002-01-16 | 2003-07-30 | 虹光精密工业股份有限公司 | Network print system |
CN103593149A (en) * | 2013-11-20 | 2014-02-19 | 中电科航空电子有限公司 | Printing method for achieving ARINC 744A-1 standard based on Ethernet and printing conversion device |
CN104281417A (en) * | 2013-07-08 | 2015-01-14 | 广东电网公司茂名供电局 | Distributed printing system and method for transformer substation device |
CN104281419A (en) * | 2013-07-08 | 2015-01-14 | 南京南瑞继保电气有限公司 | Transformer substation device universal printing method based on middleware |
-
2017
- 2017-03-28 CN CN201710193759.XA patent/CN107066219A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030123075A1 (en) * | 2001-12-28 | 2003-07-03 | Ching-Ching Lin | Network printing system |
CN1432901A (en) * | 2002-01-16 | 2003-07-30 | 虹光精密工业股份有限公司 | Network print system |
CN104281417A (en) * | 2013-07-08 | 2015-01-14 | 广东电网公司茂名供电局 | Distributed printing system and method for transformer substation device |
CN104281419A (en) * | 2013-07-08 | 2015-01-14 | 南京南瑞继保电气有限公司 | Transformer substation device universal printing method based on middleware |
CN103593149A (en) * | 2013-11-20 | 2014-02-19 | 中电科航空电子有限公司 | Printing method for achieving ARINC 744A-1 standard based on Ethernet and printing conversion device |
Non-Patent Citations (1)
Title |
---|
王雷等译: "《Oracle Applications应用大全》", 30 April 2001, 人民邮电出版社 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109656489A (en) * | 2018-10-31 | 2019-04-19 | 许继集团有限公司 | A kind of Embedded Relay Protector and its network printing method |
CN112527214A (en) * | 2020-10-23 | 2021-03-19 | 广西电网有限责任公司南宁供电局 | Nondestructive electronic reporting system for relay protection information of transformer substation |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2599535C2 (en) | Print control device, printing system and print control method | |
CN106649021A (en) | Testing device for PCIe slave device | |
CN107066219A (en) | A kind of network printing method of relay protection device of intelligent substation | |
CN109901802A (en) | A kind of information paperless recording method, apparatus, equipment and system | |
CN107808458A (en) | A kind of method of self-help wireless printing | |
CN103632468B (en) | A kind of method of invoice issuing controller and printing invoice | |
JP6015077B2 (en) | Printing control apparatus, printing system, and printing control method | |
CN110531942B (en) | Print data bridging system and bridging method based on embedded Linux | |
JP5843477B2 (en) | Printing system | |
US6925498B2 (en) | Information processing system, information processing device, control method therof, memory media having stored programs thereof and program thereof | |
CN105620060A (en) | Printer control circuit | |
CN1975701B (en) | Master machine driving external equipment method and system | |
JP2004030315A (en) | Interface expanding device, pos terminal provided with the same and pos system | |
CN103761395A (en) | Method for generating dynamic report of virtual terminal of intelligent substation | |
CN106610803A (en) | Graphic and storage method for condition data printing output of power protection apparatus | |
CN103067640A (en) | Image formation device and image formation method | |
CN202331672U (en) | Network invoicing machine | |
CN205486552U (en) | Intelligence all -in -one of making out an invoice | |
JP2000076030A (en) | Module for printer, its control method, and information storage medium | |
CN203444571U (en) | Multifunctional self-service bill filling machine | |
CN110032345A (en) | A kind of information paperless recording method, apparatus, equipment and system | |
CN210436823U (en) | Auxiliary printer and printing system | |
JPS6319887B2 (en) | ||
CN203405529U (en) | Small current grounding line selection device integrated with miniature printer | |
CN111756020A (en) | Automatic constant value checking device for relay protection |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170818 |
|
RJ01 | Rejection of invention patent application after publication |