好文档就是一把金锄头!
欢迎来到金锄头文库![会员中心]
电子文档交易市场
安卓APP | ios版本
电子文档交易市场
安卓APP | ios版本

松下mewtocol通讯协议.pdf

19页
  • 卖家[上传人]:suns****4568
  • 文档编号:109955002
  • 上传时间:2019-10-28
  • 文档格式:PDF
  • 文档大小:135.66KB
  • / 19 举报 版权申诉 马上下载
  • 文本预览
  • 下载提示
  • 常见问题
    • Aromat Corporation 629 Central Avenue New Providence, NJ 07974 Tel : (908) 464-3550 Fax : (908) 464-5719 Member of Matsushita Group May 31, 2003 page 1 NAiSNAiS FP PLC OPEN PROTOCOL MEWTOCOL The programming port of all the FP PLC’s support OPEN MEWTOCOL-COM. This is very useful when you want to monitor PLC values/bits or to set PLC values or bits via your COMPUTER. You can use any language such as Basic, C, Pascal, Assembler or even if other suppliers of PLCs can send ASCII strings, they can talk to our PLCs to exchange data. * DDE is also available to monitor or set data on MS Excel, Intouch, Intellution or any software applicable to DDE. MEWTOCOL format Master/Slave communication(Half duplex communication)*4 ASCII strings (One frame is up to 118 characters.)*5 19200 bps (or 9600 bps *1 *3 ) 8 bit data length (or 7 bit *2 *3 ) 1 stop bit fixed *3 Odd parity fixed *3 Cr (Carriage Return) fixed *3 *1 Dip switch configurable, located next to programming port for FP1, FPM, FP3, FP10SH. For FP0 it is software configurable. The default for FP0 is 9600bps. *2 Configurable in PLC system register through the programming software (NPST-GR/FPsoft) using the programming port *3 Configurable in PLC system register through the programming software (NPST-GR/FPsoft) using the secondary port. *4 If you want the PLC to send some alarm signals or any other signals while the PLC is a slave use the FP3 CCU module when it’s one to one communications or FP3 MEWNET-W. When it’s one to N communication, it is duplex communications and has MEWTOCOL-DAT which will allow the PLC to send some command to a master station (computer typically). *5 If you need to send or receive more than 118 characters in one frame, use the delimiter so that you can ask the PLC to keep sending the continuous data. The other way is that you can keep sending 118 character frame repeatedly as one frame. MEWTOCOL Capabilities Here is a list of what this protocol can do. Read one bit ON/OFF info. (Input, Output, Timer, Counter, Internal relay) Read 8 mixed bits ON/OFF info. (Input, Output, Timer, Counter, Internal relay) Read 16 block bits ON/OFF info. (Input, Output, Internal relay) Read multiple word unit data value (Data, Timer/Counter preset/elapsed value) Read PLC status (mode, error, version number etc.) Set one bit ON/OFF (Output, Internal relay) Set 8 mixed bits ON/OFF (Output, Internal relay) Set multiple word unit data value (Data, Timer/Counter preset/elapsed value) Aromat Corporation 629 Central Avenue New Providence, NJ 07974 Tel : (908) 464-3550 Fax : (908) 464-5719 Member of Matsushita Group May 31, 2003 page 2 NAiSNAiS Applicable ports and Modules FP1 -------- Programming port (RS422) Secondary port (RS232C), configurable by PLC through software FPM ------- Programming port (RS232C) Secondary port (RS232C), configurable by PLC through software FP3 -------- Programming port (RS422) FP10SH -- Programming port (RS232C) Secondary port (RS232C), configurable by PLC through software FP3/FP10SH modules --Computer Communication Unit(AFP3462) (RS232C) Computer Communication Net Unit ( AFP3463) (RS485) Remote Slave Unit (AFP3741, AFP3743) (RS422 port) MEWNET-H (AFP3700) (RS232C, and through the network) MEWNET-W (AFP3720) (Through the network) MEWNET-P (AFP3710) (Through the network) Modbus Unit (AFP3492, AFP3413) (RS232C, RS485) Recommended format RS232C 19200 bps (or 9600 bps *1*3 ) 8 bit data length (or 7 bit *2*3 ) 1 stop bit fixed *3 Odd parity fixed *3 Cr (Carriage Return) fixed *3 *1 Dip switch selectable, located next to programming port. *2 Configurable in PLC system register through the programming software(NPST-GR) using the programming port. *3 Configurable in PLC system register through the programming software(NPST-GR) using the secondary port. Aromat Corporation 629 Central Avenue New Providence, NJ 07974 Tel : (908) 464-3550 Fax : (908) 464-5719 Member of Matsushita Group May 31, 2003 page 3 NAiSNAiS MEWTOCOL Procedure Computer sends a COMMAND to PLC as an ASCII string. Then the PLC automatically returns the RESPONSE based on the COMMAND. PLC mode (RUN/PROG )does not effect the response. Input information shall be returned as all “0” in PROG mode. Computer(PC) COMMAND1 COMMAND2 . PLC REPSONSE1 RESPONSE2 Maximum length of strings Maximum length of strings is 118 characters excluding “check code”+“terminater”. COMMAND format RESPONSE format RESPONSE format on Error % This is a fixed character. All the previous uncompleted text strings are ignored when PLC receives “%” which means the beginning of the next command. The completion is recognized by PLC when PLC receives the terminator. Station Number Two digit decimal number. Default is “01”. Configurable from 01 to 32 in PLC system register by NPST-GR software. On the network a unique station number must be set on each station. #, $, ! Indicates what the string is: COMMAND(#), RESPONSE($) or ERROR RESPONSE(!。

      点击阅读更多内容
      关于金锄头网 - 版权申诉 - 免责声明 - 诚邀英才 - 联系我们
      手机版 | 川公网安备 51140202000112号 | 经营许可证(蜀ICP备13022795号)
      ©2008-2016 by Sichuan Goldhoe Inc. All Rights Reserved.