Ö£ÖݱäƵÆ÷άÐÞ

¼¼ÊõÎÄÕÂ

̨´ï±äƵÆ÷ºÍPLCͨѶ¹¦ÄܵÄʵÏÖ·½·¨
plcºÍ±äƵÆ÷ÊÇ×Ô¶¯»¯É豸ÉÏ*³£¼ûµÄ²¿¼þ¡£Æä*³õµÄ¿ØÖÆÐÍʽ´ó¶àÊÇÓÃplcµÄi/oµãºÍÄ£ÄâÁ¿Ä£¿éÖ±½Ó¿ØÖƱäƵÆ÷µÄÆôÍ£ºÍʵÏÖµ÷ËÙ£¬µ«ÕâÖÖ¿ØÖÆ·½Ê½ÓÐÁ½´ó±×¶Ë£¬*´óµÄ±×¶ËÊÇÕ¼ÓÃplcµÄi/oµãºÍÐèÒªÔö¼Ó°º¹óµÄÄ£ÄâÁ¿Ä£¿é£¬Ôì³É¿ØÖƳɱ¾µÄÔö¼Ó¡£µ±±»¿ØÖƵıäƵÆ÷ÊýÁ¿½Ï¶àʱ£¬´Ë±×¶Ë¸üÊÇÃ÷ÏÔ¡£µÚ¶þ¸ö±×¶ËÊÇÄ£ÄâÁ¿¿ØÖÆÈÝÒ×ÊܸÉÈÅ£¬´«Êä¾àÀëÒ²ÈÝÒ×ÊÜÏÞÖÆ¡£

½ü¼¸ÄêÀ´×Ô¶¯»¯²úÆ·²»¶Ï¸üл»´ú£¬ÐÔÄܲ»¶ÏÌáÉý£¬¹¦ÄÜÈÕÒæÇ¿´ó¡£ÔÚСÐÍplc·½ÃæÕâ¸ö±ä»¯¸ü¼ÓÃ÷ÏÔ£¬ÏÖÔÚµÄСÐÍplc²»½öÖ´ÐÐËٶȴó´óÌá¸ß£¬Ö¸ÁÄÜÈÕÒæ·á¸»£¬¸üÖØÒªµÄÊÇ´ó¶¼Ö§³Ö¶àÖÖͨѶЭÒ飬²¢ÌṩÁ˸ü¶àµÄͨѶ½Ó¿Ú¡£Í¬Ê±´ó¶àµÄ±äƵÆ÷Ò²¾ßÓÐÁËrs485½Ó¿Ú£¬Ò²ÄÜÖ§³Ö¶àÖÖͨѶЭÒ飬*³£¼ûµÄ¾ÍÊÇmodbusЭÒé¡£ÕâÖÖ¼¼ÊõµÄ½ø²½ÎªplcºÍ±äƵÆ÷ͨѶµÄʵÏÖ£¬ÌṩÁËÈí¼þÉϵÄЭÒéºÍÓ²¼þÉϵÄÎïÀí½Ó¿Ú£¬´Ó¶øΪµÍ³É±¾¸ßÐÔÄܵÄͨѶ¿ØÖƵÄʵÏÖ´òÏÂÁËÁ¼ºÃµÄ»ù´¡¡£

2 ͨѶÏà¹ØµÄ»ù´¡ÖªÊ¶

2.1 ͨѶЭÒécommunications protocol

ͨÐÅЭÒéÊÇָͨÐÅË«·½µÄ*ÖÖÔ*¨¡£Õâ¸öÔ*¨°üÀ¨¶ÔÊý¾Ý¸ñʽ¡¢Í¬²½·½Ê½¡¢´«ËÍËٶȡ¢´«ËͲ½Öè¡¢*¾À´í·½Ê½ÒÔ¼°¿ØÖÆ×Ö·û¶¨ÒåµÈÎÊÌâ×ö³öͳ*¹æ¶¨£¬Í¨ÐÅË«·½±ØÐ빲ͬ×ñÊØ¡£Òò´Ë£¬Ò²½Ð×öͨÐÅ¿ØÖƹæ³Ì£¬»ò³Æ´«Êä¿ØÖƹæ³Ì¡£

modbusЭÒéÊǹ¤Òµ¿ØÖÆÆ÷ÖÐʹÓýÏÆÕ±éµÄ*ÖÖÍøÂçЭÒ顣ͨ¹ý´ËЭÒ飬¸÷ÖÖ¿ØÖÆÆ÷Ö®¼ä£¨±ÈÈçplc¡¢±äƵÆ÷¡¢ËÅ·þÇý¶¯Æ÷¡¢¸÷ÖÖÖÇÄÜÒÇ±í£©¡¢¿ØÖÆÆ÷ͨ¹ýÆäËüÍøÂ磨±ÈÈçÒÔÌ«Íø£©ºÍÆäËüÉ豸֮¼ä¶¼¿ÉÒÔͨÐŽ»»»ÐÅÏ¢¡£¸ÃЭÒ鶨ÒåÁË*¸ö¿ØÖÆÆ÷¿ÉÒÔʶ±ðµÄÐÅÏ¢¼Ü¹¹£¬´Ó¶øʹ²»Í¬³§ÉÌÉú²úµÄÖ§³Ö´ËЭÒéµÄ¸÷ÖÖ¹¤¿Ø²úÆ·¿ÉÒÔÁ¬½Óµ½*¸öÍøÂçÉϽøÐм¯ÖпØÖƺÍÐÅÏ¢½»»»¡£

2.2 rs485½Ó¿ÚµÄÌصã

rs485½Ó¿ÚÊÇÔÚ´ó*ÊìÖªµÄrs232½Ó¿ÚµÄ»ù´¡ÉÏÍƳöµÄÐÔÄܸüÓŵÄ*ÖÖ´®¿Ú¡£ÓÉÓÚrs485½Ó¿Ú¾ßÓÐÁ¼ºÃµÄ¿¹ÔëÉù¸ÉÈÅÐÔ£¬³¤µÄ´«Êä¾àÀëºÍ¶àÕ¾¹¦ÄܵÈÓŵ㣬Ëü³ÉΪӦÓÃÔ½À´Ô½¹ã·ºµÄ´®Ðнӿڡ£ ´ËÍ⣬rs485½Ó¿Ú×é³ÉµÄ°ëË«¹¤ÍøÂç*°ãÖ»Ðè¶þ¸ùÆÁ±ÎË«½ÊµçÏߣ¬ÕâΪ³¤¾àÀëµÄͨѶÏß·½ÚÊ¡Á˺ܶàÅäÏߣ¬½µµÍÁËϵͳµÄ³É±¾¡£

3 ̨´ïplcºÍ±äƵÆ÷ͨѶ¹¦ÄܵÄÌصã

̨´ïµÄdvpϵÁÐplc¶¼¾ßÓÐÁ½¸öͨѶ¿Ú£¬com1ÊÇrs232£¬com2ÊÇrs485£¬Ö§³Ömodbus ascii/rtuͨѶ¸ñʽ£¬Í¨Ñ¶ËÙÂÊ*¸ß¿É´ï115200bps£¬Á½Í¨Ñ¶¿Ú¿ÉÒÔͬʱʹÓá£ËùÒÔ*ÐèÓÃÈκÎÀ©Õ¹Ä£¿é¾Í¿ÉÒÔʵÏּȿÉÁ¬½ÓÓÃÓÚ²ÎÊýÉèÖõÄÈË»ú½çÃæÓÖ¿ÉÓÃͨѶµÄ·½Ê½¿ØÖƱäƵÆ÷µÈÆäËüÉ豸¡£²¢ÇÒdvpϵÁÐplcÌṩÁËÕë¶Ômodbus ascii/rtuģʽµÄ*ÓÃͨѶָÁÕâÑùÔÚ±àдͨѶ³ÌÐòʱ¾Í¿ÉÒÔ´ó´ó¼ò»¯£¬*ÐèÏñÓô®ÐÐÊý¾Ý´«ËÍÖ¸ÁîrsÄÇÑùÒª½øÐи´ÔÓµÄУÑéÂë¼ÆËãºÍ×ñÑ­¸´ÔÓµÄÖ¸Áî¸ñʽ¡£

(»¶Ó­À´µç×Éѯ¡¡ Ö£ÖÝÖÐöÎ×Ô¶¯»¯É豸ÓÐÏÞ¹«Ë¾¡¡ÍøÖ·£ºwww.hnzkwx.com  µç»°£º0371-60133978 ÊÖ»ú£º13837132021 )

̨´ïµÄvfdϵÁбäƵÆ÷ÄÚ½¨Óе¥*µÄrs485´®ÁªÍ¨Ñ¶½çÃ棬²¢ÇÒÒ²×ñÑ­modbus ascii/rtuͨѶ¸ñʽ£¨vfd-aϵÁгýÍ⣩¡£»ùÓëÒÔÉÏÌص㣬̨´ïµÄplcºÍ±äƵÆ÷Ö®¼ä¿ÉÒÔÓÐÈýÖÖ·½Ê½µÄͨѶ¿ØÖÆ¡£*ÊÇÓô®ÐÐͨѶrsÖ¸Áµ«ÕâÖÖͨѶ·½Ê½Òª×ñÊØÌض¨µÄÖ¸Áî¸ñʽºÍ½øÐи´ÔÓµÄУÑé¼ÆË㣬±È½Ï·±ÔÓ£¬±¾ÎIJ»×÷˵Ã÷¡£¶þÊÇÀûÓÃdvpϵÁÐplcÌṩµÄmodbus*ÓÃͨѶָÁîʵÏÖ£¬Õâ¸ö¹¦ÄÜÊÊÓÃÓÚȫϵÁеÄdvpϵÁÐplc¡£ÈýÊÇÀûÓÃdvpϵÁÐplcµÄeasy plc link¹¦ÄÜÀ´ÊµÏÖ£¬Õâ¸ö¹¦ÄÜÊÊÓóýes/ex/ssÍâµÄÆäËüϵÁÐplc¡£±¾Îľͽ²ÊöÒÔºóÁ½ÖÖ·½Ê½µÄͨѶ¹¦ÄܵÄʵÏÖ¡£

4 ʵÏÖplcºÍ±äƵÆ÷ͨѶʱµÄ×¼±¸¹¤×÷

4.1 plcÏà¹ØͨѶ¿ÚͨѶ¸ñʽµÄÉèÖ÷½·¨

̨´ïdvpϵÁÐplcµÄÿ*¸öͨѶ¿Ú¶*ÔÓ¦ÓÐÏà¹ØµÄÌØÊâ¼Ä´æÆ÷dºÍÌØÊâ¼ÌµçÆ÷m£¬ÒÔ½øÐÐͨѶÏà¹ØµÄ²ÎÊýÉèÖúÍÐÅÏ¢µÄ´«ËÍ¡£±¾ÎÄÖÐҪʹÓõÄcom2¶ÔÓ¦µÄÖ÷ÒªÌØdÌØm¼°ÆäÒâÒå¼û±í1¡£

±í1 ÌØÊâ¼Ä´æÆ÷ºÍÌØÊâ¼ÌµçÆ÷µÄÒâÒå
newmaker.com

±í1ÖеÄd1120ÊÇ16λµÄ¼Ä´æÆ÷£¬Í¨¹ý³ÌÐòÉèÖô˼ĴæÆ÷µÄÊýÖµ£¬ÒÔ±ãʹplcµÄͨѶЭÒéÓë´ýͨѶµÄ´Ó»úЭÒé*Ö¡£d1120Öи÷Êý¾Ýλ´ú±íµÄÒâÒåÈç±í2Ëùʾ£¬Ê¹ÓÃdeltaµÄ*ÓÃmodbusͨѶָÁîʱd1120¸ß8λµÄÊý¾Ý¿ÉÒÔ²»ÉèÖ㬿ÉÒÔ¿´×÷ȫΪ0¡£±ÈÈçÎÒÃÇÒªÓõÄͨѶ¸ñʽΪ£º7λÊý¾Ý³¤¡¢Å¼Êý¡¢1λֹͣ루Ò༴³£ËµµÄЭÒéΪ£º7e1£©£¬Í¨Ñ¶ËÙÂÊΪ9600£¬Ôòͨ¹ý´Ëͼ±íÎÒÃÇ¿ÉÒÔÖªµÀd1120ÖеÄÊý¾ÝΪ£º0000 0000 1000 0110£¬¼´d1120=h86¡£ÕâÑùÔÚ±àͨѶ³ÌÐòʱ°Ñh86дÈëd1120£¬È»ºóset m1120£¬¾ÍÉ趨ºÃÁËplc com2¿ÚµÄͨѶЭÒé¡£

±í2 d1120Öи÷Êý¾Ýλ´ú±í
newmaker.com

4.2 ½øÐÐͨѶʱ±äƵÆ÷ÐèÒªÉ趨µÄÏà¹Ø²ÎÊý¼°ÐèҪʹÓõÄͨѸµØÖ·

±äƵÆ÷ÐèÒªÉ趨µÄ²ÎÊý¼°ËµÃ÷¼ûͼ±í3¡£Èç¹û½øÐбäƵÆ÷µÄͨѶ¿ØÖÆʱ±ØÐèÉ趨ÕâЩ²ÎÊý£¬²¢ÇÒÉ趨ֵҪºÍplcµÄd1120ÖµÉèÖÃ*Ö¡£

±í3 ±äƵÆ÷ÐèÉèÖòÎÊý±í
newmaker.com

µ±plc¶Ô±äƵÆ÷ͨѶ½øÐÐÊý¾ÝµÄдÈëºÍ¶Á³öʱ£¬¾ÍÐèÒªÖªµÀ±äƵÆ÷Ëù¶¨ÒåµÄÏà¹Ø¹¦ÄܵĵØÖ·¡£È»ºóÒÀ¾ÝÕâЩµØÖ·½øÐÐÊý¾ÝдÈëºÍ¶Á³ö£¬²ÅÄÜʵÏÖ¶Ô±äƵÆ÷µÄ¿ØÖƺ͵õ½±äƵÆ÷µÄµ±Ç°ÐÅÏ¢¡£vfd-mϵÁбäƵÆ÷¶¨ÒåµÄ±¾Í¨Ñ¶ÊµÀýÖÐÐèÓõ½µÄ×ÖÖ·¼°ÆäÒâÒåÈç±í4Ëùʾ¡£¸ù¾Ý´Ë±í¿ÉÒÔÖªµÀ£¬µ±ÐèÒª±äƵÆ÷ÒÔ20hzÕýÏòÔËתʱ£¬¾ÍÖ»ÐèÔÚ±äƵÆ÷ͨѶÏà¹ØµÄ²ÎÊý×ÖÖ·2000hдÈ룺0000 0000 0001 0010£¬¼´Ê®Áù½øÖƵÄh12»òÊ®½øÖƵÄk18£»ÔÚ2001hÖÐдÈëk2000¡£

±í4 ±äƵÆ÷µÄͨѶ²ÎÊý×ÖÖ·¶¨Òå
newmaker.com

4.3 plcºÍ±äƵÆ÷¼äµÄͨÐÅÏßµÄÁ¬½Ó

±äƵÆ÷ͨѶ½Ó¿Ú¸÷½Å·Ö²¼¼°¶¨ÒåÈçͼ1Ëùʾ¡£µ±Óëplc½øÐÐrs485ͨѶʱ£¬½öÐèʹÓñàºÅΪ3ºÍ4µÄ½Å£¬ÆäÖÐ3½ÅºÍplcµÄrs485½Ó¿ÚµÄ£­ÏàÁ¬£¬4½ÅÓërs485¿ÚµÄ+ÏàÁ¬¼´¿É¡£±äƵÆ÷½Ó¿ÚΪrj£­11½Ó¿Ú£¬ºÍ³£Óõĵ绰»úµÄ½Ó¿ÚÊÇÏàͬµÄ£¬¶øplc¶ËÊÇÆÕͨ½ÓÏ߶Ë×Ó²º£¬Òò´ËͨѶÏßµÄÖÆ×÷·Ç³£¼òµ¥£¬*ÐèÓÃ*Óýӿں¸½ÓͨѶÏß¡£±ÊÕßÔøÓôӵ绰»úÉϲðϵÄ*¶Îµç»°ÏßʵÏÖÁËplcÓë±äƵÆ÷¼äµÄͨѶ¡£

newmaker.com
ͼ1 ±äƵÆ÷rs-485½Ó¿Ú¸÷½Å¶¨Òå

5 ÓÃmodrwÖ¸ÁîʵÏÖplc¶Ô±äƵÆ÷µÄͨѶ¿ØÖÆ

modrwÖ¸ÁîÊÇdvpϵÁÐplcÌṩµÄmodbusÊý¾Ý¶ÁдָÁ´ËÖ¸ÁîÊÊÓÚdvpȫϵÁÐplc¡£Òò´Ë¿ÉÒÔÀûÓõͶ˵ÄesÖ÷»úÍê³ÉÓë±äƵÆ÷µÄͨѶ¿ØÖÆ£¬ÊµÏÖ¿ØÖÆϵͳµÄ*¼ÑÐÔ¼Û±ÈÅäºÏ¡£±¾Í¨Ñ¶ÊµÀý¾ÍÒÔesϵÁÐplc¿ØÖÆvfd-m±äƵÆ÷£¬ÒÔʵÏÖ¶à¶ÎËٵĵ÷ËÙ²Ù×÷¡£

modrwÖ¸Áî¸ñʽΪ£ºmodrw s1 s2 s3 s n¡£s1ΪÁª»ú×°ÖõĵØÖ·£¬Óë±äƵÆ÷ͨѶʱ¼´Îª²ÎÊýp88µÄÉèÖÃÖµ¡£s2ΪͨѶ¹¦ÄÜÂ룬´ËÖ¸ÁîÖ§³ÖÈý¸ö¹¦ÄÜÂ룬¼´h03(¶ÁÈ¡¶à±ÊÃüÁî)¡¢h06(µ¥±ÊÊý¾ÝдÈëÃüÁî)¡¢h10(¶à±ÊÊý¾ÝдÈëÃüÁî)¡£s3ΪÓû¶ÁдµÄͨѶ´Ó»úµÄµØÖ·¡£sΪÓû¶ÁдµÄÊý¾ÝµÄ´æ´¢µØÖ·¡£nÊÇÓû¶ÁдµÄÊý¾Ý³¤¶È£¬esϵÁÐplcµ±Îªascii ģʽʱ´ËÖµÉ趨·¶Î§ÊÇk1-k8£¬µ±ÎªrtuģʽʱΪk1-k16¡£
(»¶Ó­À´µç×Éѯ¡¡ Ö£ÖÝÖÐöÎ×Ô¶¯»¯É豸ÓÐÏÞ¹«Ë¾¡¡ÍøÖ·£ºwww.hnzkwx.com  µç»°£º0371-60133978 ÊÖ»ú£º13837132021 )


±¾Í¨Ñ¶ÊµÀýÊÇÀûÓÃplc¶Ô±äƵÆ÷½øÐжà¶ÎËÙµ÷ËÙ¿ØÖÆ£¬ÒÔʵÏÖ*¸öµ¥Öᶨλ²Ù×÷¡£ÆäʵÏÖ¹ý³ÌÊÇÕâÑùµÄ£¬×Ô¶¯¶¯×÷¿ªÊ¼Ê±£¬plcÒÔͨѶµÄ·½Ê½ÈñäƵÆ÷´ø¶¯µç»ú¸ßËÙÔËת£¬ÓÃplcµÄ¸ßËÙ¼ÆÊýÆ÷½ÓÊÕ»úеÔËתµÄλÖÃÐÅÏ¢£¬È»ºóͨ¹ý¶ÔλÖÃÐÅÏ¢µÄÅжϣ¬ÊµÏÖÔÚ½Ó½üÉ趨λÖÃʱ±äƵÆ÷´ø¶¯µç»ú¼õËÙÔ˶¯£¬Ö±µ½*ºóλÖõ½´ïʱֹͣ£¬ÒÔʵÏÖ¶¨Î»¹¦ÄÜ¡£ÊµÏִ˹¦ÄܵÄplc³ÌÐòÖ÷Òª·ÖÈý¸ö²¿·Ö£¬Æä*ÊǸßËÙ¼ÆÊý³ÌÐò¼°±È½ÏÊä³ö£¬Æä¶þÊǸù¾Ý¸ßËÙ¼ÆÊýÆ÷µÄ±È½ÏÊä³ö×¼±¸´ýͨѶµÄÊý¾Ý£¬ÆäÈý¾ÍÊÇͨѶ³ÌÐò¡£µÚ*²¿·Ö²»ÊDZ¾ÎÄÌÖÂÛ·¶Î§£¬µÚ¶þ²¿·ÖºÍµÚÈý²¿·ÖµÄÀý×Ó³ÌÐò¼ûͼ2¡¢Í¼3¡£

newmaker.com
ͼ2 ´ýͨѶÊý¾ÝдÈë³ÌÐò

newmaker.com
ͼ3 ͨѶ³ÌÐò

6 ÓÃeasy plclink¹¦ÄÜʵÏÖplcÓë±äƵÆ÷µÄͨѶ

̨´ïµÄplc link¹¦ÄÜÊÇÒÔmodbusͨѶЭÒéΪ»ù´¡À´½øÐÐÊý¾Ý¶Áд£¬ÆäÌصãÊǽøÐÐÊý¾Ý¶Áдʱ²»ÐèÒªÌØÊâÓ¦ÓÃÖ¸ÁֻÐèÓÃmovÖ¸Áî½øÐÐÊý¾Ý½»»»¡£eh/eh2/sv plc×÷Ö÷վʱ֧³Öm1353=on£¬¿ÉÆô¶¯32̨link¹¦Äܼ°³¬¹ý16±Ê¶Áд¹¦ÄÜ£»sa/sx/scÖ÷»ú½öÖ§³Ö16̨link¹¦Äܼ°16±Ê¶Áд¹¦ÄÜ¡£µ«ÄÜ¿ØÖÆ16̨Ö÷»úµÄÄÜÁ¦¾Í×ãÒÔÓ¦¸¶´ó¶à¼òµ¥¿ØÖÆϵͳ¡£ÓÃplcʵÏÖ link¹¦ÄÜʱͬÑùÐèÒªÈÃÖ÷´ÓÉ豸µÄͨѶ¿ÚµÄͨѶ¸ñʽÉèÖÃ*Ö£¬ËùÉèÖõķ½·¨Í¬Ç°ÎÄËùÊö¡£

½øÐÐplc link¶Áд´ÓÕ¾Êý¾Ýʱ£¬×÷ΪÖ÷Õ¾µÄplcÆäËüÐèÒªÉèÖõÄÏîÄ¿Èç±í5Ëùʾ¡£

±í5 plc linkʱÐèÉèÖõļĴæÆ÷
newmaker.com

ÖªµÀÉÏÊöÕâЩÐèÒªÉèÖõÄÊý¾Ý£¬¾Í¿ÉÒÔ±àдplcÓë´Ó»ú¼äʵÏÖlink¹¦ÄܵijÌÐòÁË¡£±¾ÀýÒÔsa plc×÷Ö÷»ú¿ØÖÆvfd-m±äƵÆ÷ʵÏÖÉÏÀýËùÊöÖ®¶à¶ÎËÙ¿ØÖƹ¦ÄÜ¡£±äƵÆ÷µÄÉèÖü°Í¨Ñ¶ÏßµÄÁ¬½ÓºÍÉÏÀýÏàͬ¡£

ºÓÄϱäƵÆ÷άÐÞ