Division of data of CMOS of have the aid of increases memorial function for PCNC equipment

  • Time:
  • Click:113
The article offers the summary one kind is in PCNC control system, division of data of CMOS of have the aid of increases operating mode to remember functional method for PCNC equipment, the analysis that can realize information of operating mode of numerical control equipment conveniently and save, the function that uses coder of opposite increment type to realize coder of absolutely increment type and need not be revised or add other hardware. Still pointed out this occupies the other utility of the area in article. The keyword remembers a function, PCNC, operating mode, of 1 problem of coder   put forward to use a technology as the computer the ceaseless development in industrial domain, the numerical control equipment that computer of have the aid of regards control as core already received very wide application in the enterprise, among them the micro computer because the rich sex of the open sex of its system and software, have large quantities of one special interface more in recent years to it form a complete set, for example A/D, D/A, I/O, Amp.

, port of communication, SSR. The industrial control of the ISA bus line that is based on personal computer in fact, PCI bus line already made standard of a kind of industry with computer industry. The operating mode that records labour to control device is labour controls one of basic functions of equipment. For example machine tool tool carrier shows buy of v/arc be on the throne, equipment is active machine mode, athletic mode all is the significant control parameter that makes sure equipment machines quality and equipment safety. For example, after sudden incident happens, if cause equipment to cut off the power, before cut off the power equipment is in why to plant operating mode, also be the operating mode information that knowledge needs after control system is started. Accordingly, always want to save a few information more or less with the computer as industrial control, so as to improves equipment intelligence, reduce artificial interpose time. However commonly used card of the servo control card that controls a system at servo, coder of opposite increment type, I/O all do not have cut off the power the function that saves information. So, be designed to save the information such as equipment position, operating mode to be about to revise interface or use coder of absolutely increment type, causing control system cost to increase from this is inevitable, little criterion more than 1000 yuan, many thousands of yuan. Although save data information to be able to use disk, but the access time of disk is too long, performance of real time control is poorer. If use an electron dish technology, although rate issue can be solved, but the price is too high. Accordingly, whether use device already some resource will finish operating mode information to save the job, become a problem that has research sense very. Data of 2 implementation method makes clear, since 80286 personal computer come out, personal computer advocate board go up much the chip of special CMOS RAM that can be used at saving systematic time and systematic configuration together, batteries of the You Li after the system cuts off the power maintains data to be not lost for its. The data length that in its information of the system in storage space takes up is 64 byte. However, practice shows the memory capacity of this chip is 128 byte or more commonly. So, the user still has 64 byte to be able to be controlled at least, the resource that this abounds is used at industrial control, can save the floating-point position information that amounts to 15 axes, it is OK to be returned additionally the rest 4 byte use at saving facility amount to the operating mode condition of on 100 million to code, perhaps use 64 byte to save 512 I/O information to wait, such information saves a quantity to use personal computer to be told to control numerical control device of the center to great majority can satisfy a requirement completely. DOS technology data makes clear, make to content of division of data of the CMOS RAM in personal computer read write an operation to want to use two port to come true, standard regulation uses the port that find site 070 keep the data division address that wants a visit, and read by data write port 071 complete the operation that numerate or keeps information of a byte [1] [2] . A paragraph of small program that writes with C language below will how the specification numerates from inside the memery block of chip or keep data. {Unsigned Char State [64] , index, last_state [64] ; ...   of   of   of   of   of   of   of   of   of   of   of   of   of       / / it is the content Disable() in reading port below; / / shut interrupt For(index=0; Index<64; Index++){  Outportb(070, 040+index) ; / / write to the port that find site wait for visit address Last_state [Index] =inportb(071) ; / / the data } Enable() that in reading in CMOS, already put; / / allow to interrupt   of   of   of   of   of   of   of   of   of   of   of   of   of   of   of       / / operating mode of operating mode analysis and equipment is adjusted...   of   of   of   of   of   of   of   of   of   of   of   of   of       / / fill in equipment operating mode comes; For(index=0; Index<64; Index++){  Outportb(070, 040+index) ; / / write to the port that find site wait for visit address Outportb(071, state [Index] ) ; / / the}enable() in keeping operating mode information CMOS; ... reading in program of}   give typical examples before keeping an operation, shut interrupting is to assure to read address not by other interrupt program or systematic program to change read address, make sure the record reads written accuracy thereby. Can see by the example of above, although should achieve the record of many operating mode,be being cost also is very brief. Because be in process of device control character, as advocate control the computer main job is in interrupt mode to fall [2] , so advocate accuse the computer to enough time will analyse, save information of real time operating mode, make corresponding processing. 3 last words are narrated on put together, the CMOS data division of personal computer of have the aid of, can assure efficient apace memory and get data. When necessary, in suspending afore-mentioned program park the program, the array State specification that saves the user machine operating mode becomes global variable, can be in namely time break has the executive result of the main program when interrupting, achieve the goal that saves information thereby. In addition, measuring in accusing a system to design, often ask to be delivered each other in what news makes between two programs, also can regard an information as to deposit a station CMOS RAM area right now, use at explaining the working state with two respective now programs is reached to be used at data switch. Except exchange and save information besides, the diagnostic code of software is written when the user still can use some a few byte in division of this one data to be installed in software, so that make,software and data get trifling increase close protection. The author is measured in the industry that comes more than 10 years in controlling systematic development and development, the fund that uses this technology to save already amounted to several yuan, if promotion is used, believe to be able to be manufacturing industry of equipment of our country numerical control to bring the profit with sizable brushstroke, and improve the performance of equipment. It is in order to produce per year the medium and small businesses of machine tool of 100 2 coordinate exemple, replace absolutely coder to save hardware to invest 6000 yuan with opposite coder with equipment of every 2 coordinate plan, can save about 600 thousand yuan every year, its are potential social benefit and economic benefits are unassailable. CNC Milling