
USR-CANET200ÊÇÒ»¿î»ùÓÚCAN×ÜÏßתÒÔÌ«Íø·þÎñÆ÷É豸£¬CANÓëÍøÂçÉ豸ͨÐŵÄͨÐÅÉ豸£¬ÊµÏÖCANÊý¾ÝÓëÍøÂç·þÎñÆ÷µÄÊý¾ÝͨÐÅ¡£ËüÄÚ²¿¼¯³ÉÁËÁ½Â·CAN½Ó¿ÚºÍһ·EtherNet½Ó¿ÚÒÔ¼°TCP/IPÐÒéÕ»£¬ Óû§Ê¹ÓÃËü¿ÉÒÔÇáËÉÍê³ÉCAN-busÍøÂçºÍEtherNetÍøÂçµÄ»¥Á¬»¥Í¨£¬½øÒ»²½ÍØÕ¹CAN-busÍøÂçµÄ·¶Î§¡£

CANET200ÓµÓÐCANÖм̡¢CANתRS485¹¦ÄÜ£¬ÊµÏÖCAN¡¢ÒÔÌ«ÍøºÍRS485Ö®¼ä»¥Ïàת»»¡£ÔÚÆôÓÃË«·þÎñÆ÷״̬Ï£¬¿ÉʵÏÖÁ½Â·SocketÒ»¹ÜÒ»¿ØµÄ¹¦ÄÜ£¬·½±ãÓû§²Ù×÷¡£
CANÓëCANÖ®¼ä»¥Ïàת»»±»³Æ×÷¡°CANÖм̡±£¬CANET200¿ÉʵÏÖCAN1¿ÚÓëCAN2¿ÚÖ®¼ä»¥ÏàͨѶ£»
CANÉ豸CANET200Ôö¼Óһ·RS485´®¿ÚͨѶ·½Ê½£¬¿ÉʵÏÖCAN¿ÚÓëRS485Ö®¼ä»¥ÏàͨѶ£¬Í¨ÐžàÀë¸üÔ¶£¬´«ÊäÄÜÁ¦¸üÇ¿¡£

¹¦Äܽṹͼ






¹¤×÷ģʽ
TCP Serverģʽ
CanתÒÔÌ«Íø·þÎñÆ÷¼àÌýÉ趨µÄ¶Ë¿Ú²¢µÈ´ýTCP¿Í»§¶ËÁ¬½Ó¡£
CanÉ豸·¢Ë͵ÄÊý¾Ý½«Í¨¹ýCAN·þÎñÆ÷͸Ã÷´«Êä¸øËùÓÐÁ¬½Ó³É¹¦µÄ¿Í»§¶Ë¡£

TCP Clientģʽ
CanתÒÔÌ«Íø·þÎñÏòÉ趨µÄIPµØÖ··¢ÆðTCPÁ¬½Ó£¬
ÈôÁ¬½Óʧ°Ü£¬CANÉ豸½«²»¶Ï³¢ÊÔÖØÁ¬Ö±µ½³É¹¦¡£
ÈôÁ¬½Ó³É¹¦£¬·þÎñ¶Ë¾Í¿ÉÒÔÓëCANÉ豸˫Ïò͸Ã÷´«ÊäÊý¾Ý¡£

UDPģʽ
CanתÒÔÌ«Íø·þÎñ½«CANÉ豸µÄÊý¾Ýͨ¹ýUDP°üµÄÐÎʽ·¢Ë͸øÖ¸¶¨µÄIPÍøÂçÉ豸¡£
CanתÒÔÌ«Íø·þÎñͬʱ¼àÌý¶Ë¿Ú£¬½«ËùÓнÓÊÕµÄÊý¾Ýת·¢¸øCANÉ豸¡£


ÌØÉ«¹¦ÄÜ
CANÖм̹¦ÄÜ
CANÖм̹¦¿ÉʵÏÖCANÍøÂç´«ÊäËÙÂʺʹ«Êä¾àÀëµÄì¶Ü£¬Í¬Ê±À©´óͨÐÅÍøÂçÊýÁ¿¡£

CAN ID¹ýÂË
CANET200½ö½ÓÊÕÉèÖ÷¶Î§ÄÚµÄCAN IDµÄÊý¾Ý£¬¹ýÂ˵ô²»·ûºÏ½ÓÊÕ·¶Î§µÄCANÖ¡¡£

ÐÄÌø°ü¹¦ÄÜ
CANÐÄÌø°ü£º×÷Ϊ¹Ì¶¨µÄ²éѯָÁͨ¹ýÐÄÌø°üµÄ·½Ê½·¢Ë͵½CANÍøÂç¡£
ÍøÂçÐÄÌø°ü£º·þÎñÆ÷ͨ¹ý¶¨Ê±·¢ËÍÐÄÌø°ü֪ͨ·þÎñÆ÷´¦ÓÚ»îԾ״̬£¬²¢±£³ÖÓë·þÎñÆ÷µÄÕý³£ÍøÂçÁ´½Ó¡£
CANÐÄÌø°ü£º·þÎñÆ÷֪ͨCANÉ豸´¦ÓÚ»îԾ״̬£¬Ò²¿ÉÓû§Ö÷¶¯×¥È¡´«¸ÐÆ÷µÄÊý¾Ý¡£

×¢²á°ü¹¦ÄÜ
×¢²á°üÊÇΪÁËÈ÷þÎñÆ÷Äܹ»Ê¶±ðÊý¾ÝÀ´Ô´É豸£¬»ò×÷Ϊ»ñÈ¡·þÎñÆ÷¹¦ÄÜÊÚȨµÄÃÜÂë¡£

Ó¦Óð¸Àý
³äµç×®½â¾ö·½°¸
À©´ó³äµç×®¹ÜÀí·¶Î§£¬½ÚÊ¡³É±¾£»
Ö§³ÖCANÖм̹¦ÄÜ£¬Ôö¼ÓÉ豸ͨОàÀ룻
ʵʱ¼à²âÿһ¸ö³äµç׮״̬£¬¼°Ê±°Ñ¿ØÏîĿ״̬¡£

Â¥Óî¿ØÖƽâ¾ö·½°¸
¹¤Òµ¼¶Éè¼Æ£¬ÊÊÓ¦»§Íâ¶ñÁÓ»·¾³µÄ¿¼Ñ飻
ÄÜʵÏÖCAN¡¢ÒÔÌ«Íø¡¢RS485ÈýÕß»¥×ª£¬Ó¦ÓÃÁé»î£»
¼æ¹Ë²»Í¬Â¥ÓîʵʱÐÅÏ¢£¬´«Êä¸øÔ¶³Ì·þÎñÆ÷ͳ³ïе÷¡£

¿óɽ¼à²â½â¾ö·½°¸
ʵʱ´«Êä¿óɽѹÁ¦¡¢·Û³¾¡¢ÎÂʪ¶ÈµÈÊý¾Ý£¬±£Ö¤°²È«Éú²ú£»
É豸×Ô´øµÄ¿´ÃŹ·Ó²¼þ»úÖÆ£¬ÈÃÏÖ³¡¸ÉÈÅÒòËز»ÔÙÊÇ×è°£»
Öм̹¦ÄÜ°ïÖúÑÓ³¤ÏµÍ³Í¨Ñ¶¾àÀ룬·½±ã¼à²â½Úµã²¼Öá£


USR-CANET200ÊÇÒ»¿î»ùÓÚCAN×ÜÏßתÒÔÌ«Íø·þÎñÆ÷É豸£¬CANÓëÍøÂçÉ豸ͨÐŵÄͨÐÅÉ豸£¬ÊµÏÖCANÊý¾ÝÓëÍøÂç·þÎñÆ÷µÄÊý¾ÝͨÐÅ¡£ËüÄÚ²¿¼¯³ÉÁËÁ½Â·CAN½Ó¿ÚºÍһ·EtherNet½Ó¿ÚÒÔ¼°TCP/IPÐÒéÕ»£¬ Óû§Ê¹ÓÃËü¿ÉÒÔÇáËÉÍê³ÉCAN-busÍøÂçºÍEtherNetÍøÂçµÄ»¥Á¬»¥Í¨£¬½øÒ»²½ÍØÕ¹CAN-busÍøÂçµÄ·¶Î§¡£

CANET200ÓµÓÐCANÖм̡¢CANתRS485¹¦ÄÜ£¬ÊµÏÖCAN¡¢ÒÔÌ«ÍøºÍRS485Ö®¼ä»¥Ïàת»»¡£ÔÚÆôÓÃË«·þÎñÆ÷״̬Ï£¬¿ÉʵÏÖÁ½Â·SocketÒ»¹ÜÒ»¿ØµÄ¹¦ÄÜ£¬·½±ãÓû§²Ù×÷¡£
CANÓëCANÖ®¼ä»¥Ïàת»»±»³Æ×÷¡°CANÖм̡±£¬CANET200¿ÉʵÏÖCAN1¿ÚÓëCAN2¿ÚÖ®¼ä»¥ÏàͨѶ£»
CANÉ豸CANET200Ôö¼Óһ·RS485´®¿ÚͨѶ·½Ê½£¬¿ÉʵÏÖCAN¿ÚÓëRS485Ö®¼ä»¥ÏàͨѶ£¬Í¨ÐžàÀë¸üÔ¶£¬´«ÊäÄÜÁ¦¸üÇ¿¡£

¹¦Äܽṹͼ






¹¤×÷ģʽ
TCP Serverģʽ
CanתÒÔÌ«Íø·þÎñÆ÷¼àÌýÉ趨µÄ¶Ë¿Ú²¢µÈ´ýTCP¿Í»§¶ËÁ¬½Ó¡£
CanÉ豸·¢Ë͵ÄÊý¾Ý½«Í¨¹ýCANÉ豸͸Ã÷´«Êä¸øËùÓÐÁ´½Ó³É¹¦µÄ¿Í»§¶Ë¡£

TCP Clientģʽ
CanתÒÔÌ«Íø·þÎñÏòÉ趨µÄIPµØÖ··¢ÆðTCPÁ´½Ó£¬ÈôÁ´½Óʧ°Ü£¬CANÉ豸½«²»¶Ï³¢ÊÔÖØÁ¬Ö±µ½³É¹¦¡£
ÈôÁ¬½Ó³É¹¦£¬·þÎñ¶Ë¾Í¿ÉÒÔÓëCANÉ豸˫Ïò͸Ã÷´«ÊäÊý¾Ý¡£

UDPģʽ
CanתÒÔÌ«Íø·þÎñ½«CANÉ豸µÄÊý¾Ýͨ¹ýUDP°üµÄÐÎʽ·¢Ë͸øÖ¸¶¨µÄIPÍøÂçÉ豸¡£
CanתÒÔÌ«Íø·þÎñͬʱ¼àÌý¶Ë¿Ú£¬½«ËùÓнÓÊÕµÄÊý¾Ýת·¢¸øCANÉ豸¡£


ÌØÉ«¹¦ÄÜ
CANÖм̹¦ÄÜ
CANÖм̹¦¿ÉʵÏÖCANÍøÂç´«ÊäËÙÂʺʹ«Êä¾àÀëµÄì¶Ü£¬Í¬Ê±À©´óͨÐÅÍøÂçÊýÁ¿¡£

CAN ID¹ýÂË
CANET200½ö½ÓÊÕÉèÖ÷¶Î§ÄÚµÄCAN IDµÄÊý¾Ý£¬¹ýÂ˵ô²»·ûºÏ½ÓÊÕ·¶Î§µÄCANÖ¡¡£

ÐÄÌø°ü¹¦ÄÜ
CANÐÄÌø°ü£º×÷Ϊ¹Ì¶¨µÄ²éѯָÁͨ¹ýÐÄÌø°üµÄ·½Ê½·¢Ë͵½CANÍøÂç¡£
ÍøÂçÐÄÌø°ü£º·þÎñÆ÷ͨ¹ý¶¨Ê±·¢ËÍÐÄÌø°ü֪ͨ·þÎñÆ÷´¦ÓÚ»îԾ״̬£¬²¢±£³ÖÓë·þÎñÆ÷µÄÕý³£ÍøÂçÁ´½Ó¡£
CANÐÄÌø°ü£º·þÎñÆ÷֪ͨCANÉ豸´¦ÓÚ»îԾ״̬£¬Ò²¿ÉÓû§Ö÷¶¯×¥È¡´«¸ÐÆ÷µÄÊý¾Ý¡£

×¢²á°ü¹¦ÄÜ
×¢²á°üÊÇΪÁËÈ÷þÎñÆ÷Äܹ»Ê¶±ðÊý¾ÝÀ´Ô´É豸£¬»ò×÷Ϊ»ñÈ¡·þÎñÆ÷¹¦ÄÜÊÚȨµÄÃÜÂë¡£


Ó¦Óð¸Àý
³äµç×®½â¾ö·½°¸
À©´ó³äµç×®¹ÜÀí·¶Î§£¬½ÚÊ¡³É±¾£»
Ö§³ÖCANÖм̹¦ÄÜ£¬Ôö¼ÓÉ豸ͨОàÀ룻
ʵʱ¼à²âÿһ¸ö³äµç׮״̬£¬¼°Ê±°Ñ¿ØÏîĿ״̬¡£

Â¥Óî¿ØÖƽâ¾ö·½°¸
¹¤Òµ¼¶Éè¼Æ£¬ÊÊÓ¦»§Íâ¶ñÁÓ»·¾³µÄ¿¼Ñ飻ÄÜʵÏÖCAN¡¢ÒÔÌ«Íø¡¢RS485ÈýÕß»¥×ª£¬Ó¦ÓÃÁé»î£»¼æ¹Ë²»Í¬Â¥ÓîʵʱÐÅÏ¢£¬´«Êä¸øÔ¶³Ì·þÎñÆ÷ͳ³ïе÷¡£

¿óɽ¼à²â½â¾ö·½°¸
ʵʱ´«Êä¿óɽѹÁ¦¡¢·Û³¾¡¢ÎÂʪ¶ÈµÈÊý¾Ý£¬±£Ö¤°²È«Éú²ú£»É豸×Ô´øµÄ¿´ÃŹ·Ó²¼þ»úÖÆ£¬ÈÃÏÖ³¡¸ÉÈÅÒòËز»ÔÙÊÇ×è°£»Öм̹¦ÄÜ°ïÖúÑÓ³¤ÏµÍ³Í¨Ñ¶¾àÀ룬·½±ã¼à²â½Úµã²¼Öá£
