
USR-M300Á¬½ÓÔ¶³Ì·þÎñÆ÷DO״̬Éϱ¨Ê¾Àý
±¸×¢£º±¾°¸ÀýÊÇUSR-M300ÁªÍø£¬Á¬½ÓÔ¶³Ì·þÎñÆ÷£¬DO¿ØÖÆ״̬Éϱ¨¡£
Ò»¡¢×ÊÁÏÏÂÔØ
USR-M300 ˵Ã÷Ê飺/Download/1332.html
USR-M300 ¹æ¸ñÊ飺/Download/1333.html
USR-M300 Ó¦ÓÃÖ¸µ¼£º/Download/1369.html
¡¾PC¶Ëµ÷ÊÔ¹¤¾ß¡¿ÍøÂçµ÷ÊÔÖúÊÖ ´®¿Úµ÷ÊÔÖúÊÖ¶þºÏÒ»/Download/27.html
¶þ¡¢Ó²¼þÁ¬½Ó
1¡¢ËùÐèÎïÆ·
USR-M300 ²úÆ· 1̨
12VµçÔ´ÊÊÅäÆ÷ 1¸ö
USB-RS485´®¿ÚÏß 1Ìõ
³¬ÎåÀàÍøÏß 1¸ù
±Ê¼Ç±¾µçÄÔ 1̨
2¡¢Ó²¼þÁ¬½Ó
USR-M300 ½ÓºÃ4GÌìÏߣ¬µçÔ´¶Ë×Ó½Ó12VµçÔ´ÊÊÅ䣬עÒâÕý¸º¼«²»Òª½Ó·´¡£
USR-M300 µÄLAN¿ÚÍøÏßÖ±Á¬µçÄÔ¡£
½ÓºÃÏßÖ®ºó£¬²úÆ·½Ó12VµçÔ´ÊÊÅäÆ÷Éϵ硣
Èý¡¢²úÆ·²ÎÊýÉèÖÃ
1¡¢µÇ½USR-M300ÍøÒ³
µçÄÔ´ò¿ªä¯ÀÀÆ÷£¬ÊäÈë192.168.1.1£¬µÇ½USR-M300ÄÚÖÃÍøÒ³£¬Óû§ÃûºÍÃÜÂ붼ÊÇadmin¡£
2¡¢Êý¾Ýµãλ£º²é¿´DOµãλÃû
µã¿ªÊý¾Ýµã룬µã»÷´Ó»úÏÂÃæµÄLocal_IO£¬ÔÚ´Ó»ú-µãλÁÐ±í£¬²é¿´DO01µãλÃû³ÆÊÇDO01£¬DO02µãλÃû³ÆÊÇDO02¡£
3¡¢±ßÔµÍø¹Ø£ºÍ¨ÐÅÁ´Â·--Á´Â·1--TCP²ÎÊýÉèÖÃ
£¨1£©µã»÷Á´Â·1£¬´ò¿ªÁ´Â·1¿ª¹Ø¡£
£¨2£©»ù´¡ÉèÖÃ
ͨÐÅÐÒ飺TCP client
·þÎñÆ÷µØÖ·£ºÌîUSR-M300 Á¬½ÓµÄÔ¶³Ì·þÎñÆ÷µØÖ·IP
±¾µØ¶Ë¿Ú0£¬Ô¶³Ì¶Ë¿Ú8234£¨ºÍÔ¶³Ì·þÎñÆ÷¶Ë¿ÚºÅ±£³ÖÒ»Ö£¬ÓÃÓÚTCPÁ¬½Ó£©¡£
ÆäËû²ÎÊý±£³ÖĬÈÏ¡£
µã»÷Ó¦Óá£
4¡¢Êý¾ÝÉϱ¨ÉèÖÃ
£¨1£©µã»÷Êý¾ÝÉϱ¨£¬µã»÷´´½¨
£¨2£©´´½¨Êý¾ÝÉϱ¨·Ö×é
ÉÏÐÐͨµÀÑ¡ÔñÁ´Â·-1£¬Éϱ¨¹æÔò¿ÉÒÔÑ¡Ôñ¿ªÆôÖÜÆÚÉϱ¨£¬Éϱ¨ÖÜÆÚʱ¼ä¸ù¾ÝÐèÒªÉèÖ㬵¥Î»ÊÇÃ룬Éϱ¨Êý¾ÝÀàÐÍÔÀàÐÍ
Éϱ¨jsonÄ£°æÌ{"DO1":"DO01","DO2":"DO02"}
DO01¡¢DO02ºÍ´Ó»úLocal_IOµãλÃû³Æ±£³ÖÒ»Ö¡£µã»÷È·¶¨¡££¨Ã°ºÅÇ°ÃæµÄDO1¡¢DO2ÊǼĴæÆ÷Ãû£¬¿ÉÒÔ×Ô¶¨Ò壩
£¨3£©µãλ±í£¬µã»÷Ìí¼Ó
£¨4£©Ñ¡Ôñ´Ó»úLocal_IO£¬¹´Ñ¡2¸öµãλDO01¡¢DO02£¬µã»÷È·¶¨¡£
5¡¢×îºóÍøÒ³µã»÷ÖØÆô£¬µÈ´ýUSR-M300ÖØÆôÍê³É¡£
ËÄ¡¢Ô¶³Ì·þÎñÆ÷DO״̬JSONÉϱ¨
1¡¢µÇ¼Զ³Ì×ÀÃæ
Ô¶³Ì·þÎñÆ÷£¬´ò¿ªÍøÂçÖúÊÖ£¬ÐÒéÀàÐÍTCP server£¬±¾µØÖ÷»ú¶Ë¿ÚÌî8234¡£µã»÷´ò¿ª¡£
2¡¢µÇ½USR-M300ÍøÒ³£¬IO¹ÜÀí£¬IO״̬£¬¿ÉÒÔ¿ØÖÆDO01¡¢DO02µÄ״̬¡£
±¸×¢£º2·DO£¬3 ÏßÖÆ£¬Ä¬Èϳ£±Õµã£¨NC£©±ÕºÏ£¬³£¿ªµã£¨NO£©¶Ï¿ª¡£
3¡¢ÍøÒ³¿ØÖÆDO1¡¢DO2¶Ï¿ª£¬Éϱ¨Êý¾Ýµ½Ô¶³Ì·þÎñÆ÷
ÍøÒ³IO¹ÜÀí£¬IO״̬£¬µã»÷DO01¶Ï¿ª£¬µã»÷DO02¶Ï¿ª¡£
½ÓÊջظ´Êý¾Ý{"DO1":"1","DO2":"1"}¡£
4¡¢ÍøÒ³¿ØÖÆDO1¡¢DO2±ÕºÏ£¬Éϱ¨Êý¾Ýµ½Ô¶³Ì·þÎñÆ÷
ÍøÒ³IO¹ÜÀí£¬IO״̬£¬µã»÷DO01±ÕºÏ£¬µã»÷DO02±ÕºÏ¡£
½ÓÊջظ´Êý¾Ý{"DO1":"0","DO2":"0"}¡£
±àдÈË£º½ðÖ¾·½ ±àдÈÕÆÚ£º2024-08-05
ÉóºËÈË£º½ðÖ¾·½ ÉóºËÈÕÆÚ£º2024-08-05
¶©Õý°æ±¾£ºV1.0 ¶©ÕýÄÚÈÝ£º³õ¸å