The stage amounts to interface of DOP series man-machine practical communication example

  • Time:
  • Click:191
  • source:COCKRIEL CNC Machining
Be in at present on the market, the good character that the stage amounts to DOP series to touch screen makes it got the favour of numerous user, the market is had rate in ceaseless promotion. However, before as a result of reason of a few histories, the open sex that causes many control equipment ability of very poor, communication is weak, the product of a few manufacturer or system need because of keeping secret, also do not use open communication agreement, make initial stage of much products plan had not considered communication to join, these make feeling screen and communication join face a lot of difficulty. Now, market demand drove technical progress, of the product change make increasing product uses high-grade controller, from sheet piece machine arrive again to PLC PC, communication capability is stronger and stronger, and with sheet piece the system of machine also begins compositive communication deliberation, so, powerful communication ability assured to feel the wide application foreground of screen. It is the communication introduction that the stage amounts to interface of DOP series man-machine below: The stage amounts to itself of DOPA series product compositive two serial communication interface (if pursue) , label respectively for COM1, COM2. Among them COM1 is RS232, COM2 is RS232/RS485 (optional) . AE series provides opening of 3 serial communication, it is with A series DOP exemple undertake demonstrative. Want to realize a stage to amount to DOP to feel the communication of screen and exterior other equipment, match besides character of communication mouth physics outside, still need communication to just use same communication stipulations of an agreement each (correspond namely agreement) , look from OSI7 layer model, this part belongs to data link layer (complex communication agreement is returned with network layer closely related) , main body conveys in information frame now agreement (include error control) on. Information frame is deferent the agreement includes to have the following shares: Of data link build and demolish: Synchronous, address affirms, send and receive relation, last time to transmit information (format, amount, receive approbate) transmission error control (desired result) unusual situation processing is current the stage amounts to DOP to offer the following kinds of means and different controller to correspond: 1. Use the oneself communication agreement of different manufacturer. The stage amounts to DOP to write the agreement of different manufacturer into drive compositive in ScreenEditor configuration software. For example the PPI agreement of Xi Menzi PLC, MPI agreement; The K agreement of KOYOPLC; The Hostlink agreement of PLC of abstruse Mu dragon; Mo Di health UniTelway agreement; The SNP-X agreement of GE is waited a moment. 2. Use open agreement. Look the open agreement that amounts to DOP to use downstage is MODBUS. MODBUS agreement is a kind of universal language that uses on electronic controller. Carry this agreement, controller mutual between, controller by network (for example aether net) with other can correspond between equipment. It has made standard of one general industry. Had it, the control equipment that different manufacturer produces can become industrial network repeatedly, undertake centralized monitoring. 3. Use stage amounts to DOP grand communication instruction. Grand it is an one big characteristic that amounts to DOP, communication instruction is OK the controller is not mark of very convenient join other. The communication example that Nextpage stage amounts to interface of DOP series man-machine 1. Exemple: Client first time uses a stage to amount to DOP, with an A57GSTD and join of S7-200 of a Xi Menzi. Join means: The stage amounts to DOP already compositive the PPI agreement of series of Xi Menzi S7-200, the user needs to do 2 measure to be able to complete news report only. Step1 makes cable of a communication according to the manual. Pursue as follows: Step2 is in ScreenEditor software [option] [setting module parameter] [general] if the graph chooses,do, be in [communication] if the graph installs,do can: 2. Exemple: An A57STD reachs an OMRONPLC join with PLC of an other trademark at the same time. In software, we can be in [option] [setting module parameter] [communication] in, with BasePort join CPM2A, with addition Link2 join FX2N, set communication parameter respectively can. Nextpage3. Exemple: An A10TCTD monitoring 3 A57CSTD, every A57CSTD joins a stage amounts to PLC. Join explains: The join means of A57CSTD and PLC is the same as exemple 1, no longer tired narrate, the key depends on how to join between A10TCTD and A57CSTD. Pursue as follows: Because the stage amounts to DOP to support open MODBUS agreement, so we can pass MODBUS join. Set A10TCTD give priority to screen, PLC type chooses MODBUSASCII (Master) , give station number 10. A57 is set for from screen, ordinal setting is 1# , 2# , 3#PLC type chooses MODBUSASCII (Slave) , at the same time setting man-machine station number is respectively 1, 2, 3. Pass the RS485 communication mouth of every man-machine, can realize A10 to be opposite the monitoring of aleatoric A57. The amount is OK also augment reachs 255. 4. Exemple: The PC runs configuration king software to be able to read the $ that writes interface of 20 DOP man-machine and RCP address, at the same time man-machine interface and S7CPU224 join. Join explains: Use opening of communication of a RS485 only considering man-machine interface, for everybody so machine interface adds a RS232/RS485 to change module, this exemple chooses ADAM4520 (grind China) . CPU224 passes ADAM4520 and join of man-machine interface COM1. The COM2 of 20 man-machine interface passes an ADAM4520 and configuration king join, pursue as follows: Nextpage configuration king builds 20 join facility, at the same time every man-machine interface sets station number in ScreenEditor, OK very convenient establish link, final moving tableau pursues as follows: 5. Exemple: The stage amounts to DOP to amount to PLC communication through grand communication instruction and stage. Join explains: The stage amounts to PLC itself to support MODBUSASCII communication form, use LRC desired result, DOP is below adopt program of communication instruction and PLC connective. The controller of other, for example odd a machine, transducer also can make communication through communication instruction. # if $1.

The value of 0 is ON, just begin to implement communication directive: IF$1.

0==OFFTHENGOTOLABEL100IF$0.

0==ONTHENGOTOLABEL99# foundation platform amounts to the communication agreement of PLC, the set $0=IITCOM of initiative COM2 (1, 0, 0, 2, 0, 6, 0) if # has initiative success, $0.

0 meetings are set to be ON; If do not have initiative COM2 success, do not implement the following code: IF$0.

0==OFFTHENGOTOLABEL100CHR ($10, " : 01050500FF00F " ) $17=D36H$18=ANCHR ($30, " : 010505000000F " ) $37=OD35H$38=AHCHR ($50, " : 010205000010E " ) $57=OD38H$58=AHLABEL99IF$1.

0==OFFTHENGOTOLABEL100 # the data $10 in all 17 BYTE send PLC, put communication result in $20$20=PUTCHARS ($10, 17, 500) # is read take the data that delivers from PLC in all 17 BYTE, deposit the place that begins in $100, read the result that takes success or failure to be put in $21$21=GETCHARS ($100, 17, 500) the data of # general $30 in all 17 BYTE send PLC, put communication result in $22$22=PUTCHARS ($30, 17, 500) # is read take the data that delivers from PLC in all 17 BYTE, deposit the place that begins in $120, read the result that takes success or failure to be put in $23$23=GETCHARS ($120, 17, 500) GOTOLABEL99LABEL100 stage amounts to DOP to felt screen to offer the communication way that goes to the lavatory neatly, afore-mentioned a few also can be combined use, achieve richer control mode. CNC Milling CNC Machining