Personal computer and many machining center are serial the implementation of communication

  • Time:
  • Click:63
  • source:AVELLINO CNC Machining
[summary] application grinds China compose of ADAM series module builds ADAM data to collect a network to be versed in in order to realize personal computer and Duotaijia serial communication of the center. Design of the to the system hardware implementation method in article, software undertook detailed discussion. Construction of system simple, dependability tall, expansibility is strong, moving result is favorable. [keyword] machining center; Serial communication; ADAM; Data collects a network the serial data news report of 1 introductive personal computer and machining center uses RS commonly - 232C, RS - 485 standards of 422 / . RS - 232C uses circuit of molded lines of blame balance voltage, its distributing the transmission space that capacitance limitted it and communication rate, and do not have fight in all the model disturbs ability, can use at stone's throw to choose the situation that corresponds to the dot only. RS - 422 / circuit of 485 molded lines of balance of the cent that it is difference, have stronger fight in all the model disturbs ability, communication distance can amount to 1 200m, the oldest deferent rate can amount to 10Mbps, can realize much dot to transmit, very apply to production the much stage that the spot disperses below harsh environment makes equipment reliable ground interconnection. Golden city group rivers bend greatly from Japan the company introduced machining center of horizontal of much stage OSP7000, consider because of doing not have when introducing this machining center with CIM system compositive, so machining center did not deploy NDC (DNC: Direct figure is controlled) interface and its software. Worker of the operation in actual production uses notebook computer to will wait for the NC order that processes a spare parts to input machining center temporarily, such doing handle a trouble not only, and do not accord with workshop ground floor to make equipment and superstratum CIM system realize compositive requirement. In JC - CIMS2 period in the project, for will flexible the net of couplet of many machining center of production unit, of implementation and CIM system compositive, the author is used grind China ADAM module compose was built be based on RS - the ADAM data of 485 standards collects a network, personal computer of implementation unit control and flexible the efficient, stability of many machining center inside production unit, reliable serial communication. Realize method and software design to wait to systematic hardware undertake bat around. The hardware of 2 systems comes true 2. Implementation of 1 system hardware is implementation personal computer and the join of many machining center, use grind China ADAM module comes network of communication of layer of compose construction equipment, if pursue 2, 1 is shown. Among them ADAM4520 module realizes RS - 232C signal to RS - the input end of ADAM4521 module is with respect to direct link on the data bus line of ADAM network, the RS that outputs end and machining center - 232C mouth is linked together. System of numerical control of machining center of OSP7000 series horizontal offers BTR means and means of DC code control to realize the data news report of machining center and exterior communication equipment, the system chooses DC code to control fashion. Because OSP7000 series machining center contains 25 needles serial communication interface (socket) , and ADAM4520 contains 9 needles serial communication interface (socket) , both cannot join directly, because this must abstain cable (graph 2, 1 in join cable 2) the join with both implementation. When cable of the join that make, want those who notice ADAM4521 module to string together a mouth to use a needle 2 represent TXD signal, with the needle 3 represent RXD signal, OSP machining center is the serial interface of 25 needles, with the needle 2 represent TXD signal, with the needle 3 represent RXD signal. If the wiring of the join cable of machining center and ADAM4521 pursues 2, 1 is shown. ADAM4520 module direct link controls personal computer RS in unit - 233C compares difficulty on serial port, abstained cable of a communication so (graph 2, 1 in join cable 1) use at lengthening unit to control the computer serial port, implementation unit controls the join of personal computer and ADAM4520 module, this cable uses 3 lines to be not across to receive a standard. Those who need an attention is power source of every ADAM module use dc to supply, the basis is factual the circumstance is many OKer module is operable a power source, fall considering lead pressing, must make sure voltage is between 30V of + of + 10V ~ . What because impedance is discontinuous,be transmitted on bus line to prevent signal and bring about transmission signal is lack fidelity, the terminal that adds 120 Ω in the two end of bus line matchs resistor. The address that joins in ADAM number collects the machining center on network data bus line is decided by the ADAM4521 module place that is linked together with its, can pass pair of ADAM4521 module initialization to come set its address. 2. 2 systems initialization   A) the ability after initialization of module of ADAM of initialization of ADAM series module receives ADAM data to collect a network. Initialization method is press the ADAM4521 module of an ADAM4520 module and need set address the plan 2, 1 shows connection, short the GND end that receives ADAM4521 module and INIT * end (restore to be installed to leave factory) , receive electrify source next, the initialization software with this accessary module runs on control computer. This initialization software can install module address, data to transmit a format (data, stop, desired result means) wait with communication baud rate. After set is finished, move go the lead that * weak point of GND and INIT receives makes set become effective, this set will be written into the EPROM inside module. B) the system of numerical control of initialization OSP machining center that machining center parameter installs has a lot of control parameter, must install these parameter ability correctly to realize DNC communication. The NC of system of OSP numerical control is optional parameter cent is optional ginseng is digital (Bit) , optional parameter word (Word) and optional parameter grows a word (Long Word) 3 kinds, among them NC is optional join digital pilot choice of means of communication of system of control of the 8th parameter and communication parameter, choice DC controls fashion, amount to of communication parameter setting is occupied 8, stop 1, occasionally control of code of desired result, DC, such NC are optional join digital pilot setting of the 8th parameter is 01111011, after this parameter is installed, restart machining center with making parameter installs become effective. NC is additionally optional the 6th parameter installs parameter word to be led for systematic communication baud, the setting is 9600bps; NC is optional ginseng is digital the 1st joins a several 0 settings for 1, 3 settings 1, the ASCII character of ISO is used in order to assure when number is defeated as it is said, CNC Machining file must accord with the following format: group is the file " % " , the 2nd behavior is uppercase " O " with 4 digit word denotive file name, the 3rd is numerical control to dictate later, last behavior is used " % " the end mark that regards NC as the program. Writer of design of 3 systems software uses the Visual Basic 6 below Windows platform to develop unit to control the communication software of personal computer and machining center. The MSComm serial communication that use VisualBasic 6 provides controls a visit computer serial port, realize the serial communication with machining center. ADAM data collects a network to use principal and subordinate model network structure. Communication agreement consults the consultative arrangement model of the OSI of ISO, use simplifying three-layer structure, namely physical layer, data link layer and applied layer. Network agreement chooses the agreement of XON / XOFF of system of OSP numerical control. ADAM module offerred very good process designing port, through sending control instruction market to this module, can mode of job of set ADAM module and control module have data news report, the data news report of this module has two kinds of kind. (1) the format that controls command mode to should control an instruction is: [separator] [address] [dictate] [data] [examination] [carriage return] . For example " S016OSP - > of 1 < CR " the label setting that expresses to be the address the equipment of 01 is " OSP - 1 " , "01 # of { > of 04 < CR " express data " # 04 " in sending an address to be the equipment of 01. This kind of means can send length to be less than the command of 32 byte only, every are deferent the system awaits from of machine respondent, use at undertaking commanding counting seizing deferent occasion with machining center. (2) DATAGATE means should convey when NC program, deferent data bulk is great, send through the ADAM4521 module to AA address " > of SAA810 < CR " the DATAGATE that can open module, can transmit much data to module directly below this kind of means, and need not await from of machine respondent, deferent rate is rapidder. Be like a graph to the order flow of machining center from program of NC of personal computer download 3, 1 is shown. Length of be confined to, from machining center program carrying NC controls the program code of personal computer to be omitted to unit. Because workshop spot condition is abominable, power plant is much, the interference of generation may cause character to be piled up by accident. To ensure NC the dependability with deferent machine program, while DNC system software is using odd even desired result, increase time send the means that examines quite, namely systematic communication software will convey to be answered to the NC program in machining center controller pass, compare those who answer the NC program that conduct and original order to have character of one by one by apace of unit control personal computer, discover the mistake conveys afresh. Practice proves communication of this kind of method is reliable, improved work efficiency, avoided those who process work to discard as useless with machining center accident. Module of 4 series of ADAM of last word   in machining center the application in serial communication still is belonged to first. The author is entering a country JC of group of city of gold of 863 plans Nanjing - CIMS2 period in the process that collateral project carries out, with grind China ADAM4000 module compose builds ADAM data to collect a network, the serial news report that gives unit control personal computer in the development on its foundation reachs systematic software, successful ground will be flexible production system and CIM system implementation are compositive. Think through carrying out the author, in workshop spot equipment news report of dispersive, data is apart from far circumstance, use ADAM data to collect a network will flexible net of couplet of many machining center inside production unit realizes serial data news report, construction of system simple, dependability tall, expansibility strong, development cycle short, moving result is favorable. Carried a state in October 2000 ' 863 plans " group of CIMS theme expert is checked and accept. At present this system moves stable, reliable, achieve expectant goal. CNC Milling