Ö§³ÖÖÐÐÄ
modbusЭÒé½âÎö
2021-10-25


±ê×¼Modbus RTUÖ¸Áî
¼Ä´æÆ÷µ¥Ôª£¨Ê®½øÖÆ£© ¹¦ÄÜÂë ×÷Óà ÇëÇó¼°ÏìÓ¦¸ñʽ
ÏßȦ¼Ä´æÆ÷
CoilStatus
£¨00001 - 09999£©
1λ  ¶Áд
0x01 ¶ÁÏßȦ ָʾ״̬1 = ON,0 = OFF        ʾÀý£º¶ÁÈ¡0x0001µ½0x000Aµ¥ÔªµÄ¿ª¹Ø״̬£¬ÏÖ³¡×´Ì¬ÎªÈ«¿ª£¨¼´È«1£©
ÇëÇó£º É豸ºÅ ¹¦ÄÜÂë ¼Ä´æÆ÷ÆðʼµØÖ· ¼Ä´æÆ÷µ¥Ôª³¤¶È CRCУÑé
id 01 00 00 00 0A crcl crch
ÏìÓ¦£º É豸ºÅ ¹¦ÄÜÂë ×Ö½ÚÊý Êý¾Ý CRCУÑé
id 01 02 FF 03 crcl crch
0x05 дµ¥¸öÏßȦ Ê®Áù½øÖÆFF 00ÖÃ״̬ΪON,Ê®Áù½øÖÆ00 00 ÖÃ״̬ΪOFF        ʾÀý£º½«0x00ADµ¥Ôª×´Ì¬ÖÃΪON/OFF
ÇëÇó£º É豸ºÅ ¹¦ÄÜÂë ¼Ä´æÆ÷ÆðʼµØÖ· ÖÃΪON/OFF CRCУÑé
id 05 00 AC FF 00 crcl crch
id 05 00 AC 00 00 crcl crch
ÏìÓ¦£º É豸ºÅ ¹¦ÄÜÂë ¼Ä´æÆ÷ÆðʼµØÖ· ÖÃΪON/OFF CRCУÑé
id 05 00 AC FF 00 crcl crch
id 05 00 AC 00 00 crcl crch
0x0F д¶à¸öÏßȦ ʾÀý£º´Ó0x0014¿ªÊ¼Ð´Èë10¸ö״ֵ̬£¬Êý¾ÝÄÚÈÝΪ2¸ö×Ö½Ú£ºÊ®Áù½øÖÆCD 01£¨¶þ½øÖÆ 1100 1101 0000 0001£©
ÇëÇó£º É豸ºÅ ¹¦ÄÜÂë ¼Ä´æÆ÷ÆðʼµØÖ· ¼Ä´æÆ÷µ¥Ôª³¤¶È ×Ö½ÚÊý Êý¾Ý CRCУÑé
id 0F 00 13 00  0A 02 CD 01 crcl crch
ÏìÓ¦£º É豸ºÅ ¹¦ÄÜÂë ¼Ä´æÆ÷ÆðʼµØÖ· ¼Ä´æÆ÷µ¥Ôª³¤¶È CRCУÑé
id 0F 00 13 00  0A crcl crch
ÀëÉ¢¼Ä´æÆ÷
InputStatus
£¨10001 - 19999£©
 1λ Ö»¶Á
0x02 ¶ÁÀëÉ¢ÊäÈë ʾÀý£º¶ÁÈ¡197¡ª218µÄ¿ª¹Ø״̬£¬204-197ÄÚÈÝΪ0xAC£¨¼´¶þ½øÖÆ1010 1100£©£¬212-205ÄÚÈÝΪ0xDB£¨¼´¶þ½øÖÆ1101 1011£©£¬218-213ÄÚÈÝΪ0x35£¨¼´¶þ½øÖÆ0011 0101£©
ÇëÇó£º É豸ºÅ ¹¦ÄÜÂë ¼Ä´æÆ÷ÆðʼµØÖ· ¼Ä´æÆ÷µ¥Ôª³¤¶È CRCУÑé
id 02 00 C4 00 16 crcl crch
ÏìÓ¦£º É豸ºÅ ¹¦ÄÜÂë ×Ö½ÚÊý Êý¾Ý CRCУÑé
id 02 03 AC DB 35 crcl crch
±£³Ö¼Ä´æÆ÷
Holding Register£¨40001 - 49999£© 16λ  ¶Áд
0x03 ¶Á±£³Ö¼Ä´æÆ÷ ʾÀý£º¶ÁÈ¡¼Ä´æÆ÷108¡ª110µÄÖµ£¬108µÄÄÚÈÝΪ0x022B£¨¼´555£©,109µÄÄÚÈÝΪ0x0000(¼´0),110µÄÄÚÈÝΪ0x0064(¼´100)
ÇëÇó£º É豸ºÅ ¹¦ÄÜÂë ¼Ä´æÆ÷ÆðʼµØÖ· ¼Ä´æÆ÷µ¥Ôª³¤¶È CRCУÑé
id 03 00 6B 00 03 crcl crch
ÏìÓ¦£º É豸ºÅ ¹¦ÄÜÂë ×Ö½ÚÊý Êý¾Ý CRCУÑé
id 03 06 02 2B 00 00 00 64 crcl crch
0x06 дµ¥¸ö¼Ä´æÆ÷ ʾÀý£º½«Êý¾Ý0x0003дÈë¼Ä´æÆ÷µ¥Ôª0x0002
ÇëÇó£º É豸ºÅ ¹¦ÄÜÂë ¼Ä´æÆ÷ÆðʼµØÖ· Êý¾Ý CRCУÑé
id 06 00 01 00 03 crcl crch
ÏìÓ¦£º É豸ºÅ ¹¦ÄÜÂë ¼Ä´æÆ÷ÆðʼµØÖ· Êý¾Ý CRCУÑé
id 06 00 01 00 03 crcl crch
0x10 д¶à¸ö¼Ä´æÆ÷ ʾÀý£º½«Êý¾Ý0x000AºÍ0x0102дÈë´Ó0x0002¿ªÊ¼µÄÁ½¸ö¼Ä´æÆ÷µ¥Ôª
ÇëÇó£º É豸ºÅ ¹¦ÄÜÂë ¼Ä´æÆ÷ÆðʼµØÖ· ¼Ä´æÆ÷µ¥Ôª³¤¶È ×Ö½ÚÊý Êý¾Ý CRCУÑé
id 10 00 01 00 02 04 00 0A 01 02 crcl crch
ÏìÓ¦£º É豸ºÅ ¹¦ÄÜÂë ¼Ä´æÆ÷ÆðʼµØÖ· ¼Ä´æÆ÷µ¥Ôª³¤¶È CRCУÑé
id 10 00 01 00 02 crcl crch
ÊäÈë¼Ä´æÆ÷
Input Register£¨30001 - 39999£© 16λ Ö»¶Á
0x04 ¶ÁÊäÈë¼Ä´æÆ÷ ʾÀý£º¶ÁÈ¡ÊäÈë¼Ä´æÆ÷0x0009µ¥ÔªµÄÖµ,ÏÖ³¡Êý¾ÝΪ0x000A
ÇëÇó£º É豸ºÅ ¹¦ÄÜÂë ¼Ä´æÆ÷ÆðʼµØÖ· ¼Ä´æÆ÷µ¥Ôª³¤¶È CRCУÑé
id 04 00 08 00 01 crcl crch
ÏìÓ¦£º É豸ºÅ ¹¦ÄÜÂë ×Ö½ÚÊý Êý¾Ý CRCУÑé
id 04 02 00 0A crcl crch
¿­·¢¡¤k8¹ú¼ÊÀ©Õ¹Ö¸Á±¾À©Õ¹Ö¸Áî·ÇModbus RTU±ê×¼£¬½öÊÊÓÃÓÚÉ豸Óë¿­·¢¡¤k8¹ú¼ÊÔÆÍøÂçͨѶµÄ¹æÔò£©
ΪʲôҪ×öÀ©Õ¹Ö¸Áî ÓÉÓÚModbus RTUЭÒéÊÊÓÃÓÚ°ëË«¹¤µÄ×ÜÏßЭÒ飬ֻÄÜÒ»ÎÊÒ»´ð£¬·þÎñÆ÷×öÖ÷»ú£¬½ÓÈëÉ豸×ö´Ó»ú£¬¿ÉÒÔʵÏÖÖ÷»úÖ÷¶¯²É¼¯ºÍ¿ØÖÆ¡£
µ«ÓÉÓÚÍøÂçͨѶ¿¼ÂÇÁ÷Á¿¡¢·þÎñÆ÷²¢·¢Á¿¡¢ÍøÂçÑÓ³ÙµÈÔ­Òò£¬ÎÞ·¨ÊµÏÖÀàËÆÔÚ×ÜÏßÖкÁÃ뼶µÄÂÖѯ¶ÁÈ¡£¬¶øÍøÂçͨѶÊôÓÚÈ«Ë«¹¤£¬Äܹ»Í¬Ê±Ë«Ïò¶Ô»°£¬¹ÊÀ©Õ¹Ö¸ÁîÌá³öÖ§³Ö´Ó»ú״̬Ö÷¶¯Éϱ¨µÄ¹æÔò¡£
Ó¦Óó¡¾°1
´Ó»úÖ÷¶¯Éϱ¨×´Ì¬
ÈçModbusЭÒéµÄ»·¾³¿ØÖÆÆ÷£¬·þÎñÆ÷×öÖ÷»ú10·ÖÖÓÂÖѯ²É¼¯£¬µ«ÈôÇ°¶ËÈ˹¤Ö÷¶¯¿ØÖÆ£¬·þÎñÆ÷±ØÐëµÈµ½Ï¸öÂÖѯ²ÅÄܵÃ֪״̬±ä»¯¡£
ÀûÓÃÀ©Õ¹Ö¸Áî¿ÉʵÏÖÈ˹¤Ö÷¶¯¿ØÖÆ£¬´Ó»úÖ÷¶¯Éϱ¨µ±Ç°µÄ״̬¡£
×¢£º±¾Ð­Òé½öÊÊÓÃÓÚʹÓÿ­·¢¡¤k8¹ú¼ÊÍøÂçÄ£¿é×ÔÖ÷¿ª·¢µÄ²úÆ·£¬ÈôÔÚRS-485×ÜÏßÖÐʹÓ㬻áÔì³É×ÜÏß»ìÂÒ¡£
Ó¦Óó¡¾°2
µÍ¹¦ºÄͨѶÉϱ¨¸ñʽ
ÈçNB-IoT¡¢LoraÕâÀàµÍ¹¦ºÄͨѶ·½Ê½£¬µÍ¹¦ºÄģʽ½öÖ§³ÖÖ÷¶¯Ïò·þÎñÆ÷Éϱ¨£¬Éϱ¨ºó¶Ïµç¶ÏÍøÐÝÃߣ¬´Ëʱ·þÎñÆ÷ÎÞ·¨×öÖ÷»úÖ÷¶¯²É¼¯Êý¾Ý¡£
ÀûÓÃÀ©Õ¹Ö¸Áî¸ñʽÖ÷¶¯Éϱ¨Êý¾Ý½â¾öÉÏÊöÎÊÌ⣬·þÎñÆ÷°´ÕÕModbusЭÒé½âÎö£¬Íê³ÉºóÃæµÄÊý¾Ý´æ´¢¡¢±¨¾¯¡¢ÍÆË͵ȹ¦ÄÜ¡£
²¹³ä£ºNB-IoTÔڸ߹¦ºÄģʽÏÂÒ²¿ÉÖ§³ÖÔƶËÖ÷¶¯Ï·¢²éѯָÁî¡£
¼Ä´æÆ÷µ¥Ôª£¨Ê®½øÖÆ£© ¹¦ÄÜÂë ×÷Óà ÇëÇó¼°ÏìÓ¦¸ñʽ
ÏßȦ¼Ä´æÆ÷
CoilStatus  £¨00001 - 09999£© 1λ  ¶Áд
0x45 Éϱ¨¶à¸öÏßȦ ʾÀý£º´Ó0x0014¿ªÊ¼Ð´Èë10¸ö״ֵ̬£¬Êý¾ÝÄÚÈÝΪ2¸ö×Ö½Ú£ºÊ®Áù½øÖÆCD 01£¨¶þ½øÖÆ 1100 1101 0000 0001£©
£¨¸ñʽÓëд¶à¸öÏßȦÏàͬ£© ÇëÇó£º É豸ºÅ ¹¦ÄÜÂë ¼Ä´æÆ÷ÆðʼµØÖ· ¼Ä´æÆ÷µ¥Ôª³¤¶È ×Ö½ÚÊý Êý¾Ý CRCУÑé
id 45 00 13 00  0A 02 CD 01 crcl crch
ÏìÓ¦£º É豸ºÅ ¹¦ÄÜÂë ¼Ä´æÆ÷ÆðʼµØÖ· ¼Ä´æÆ÷µ¥Ôª³¤¶È CRCУÑé
id 45 00 13 00  0A crcl crch
ÀëÉ¢¼Ä´æÆ÷
InputStatus£¨10001 - 19999£© 1λ Ö»¶Á
0x42 Éϱ¨¶à¸öÀëÉ¢¼Ä´æÆ÷ £¨¸ñʽÓëд¶à¸öÏßȦÏàͬ£©
±£³Ö¼Ä´æÆ÷
Holding Register£¨40001 - 49999£© 16λ  ¶Áд
0x46 Éϱ¨¶à¸ö±£³Ö¼Ä´æÆ÷ ʾÀý£º½«Êý¾Ý0x000AºÍ0x0102дÈë´Ó0x0002¿ªÊ¼µÄÁ½¸ö¼Ä´æÆ÷µ¥Ôª
£¨¸ñʽÓëд¶à¸ö±£³Ö¼Ä´æÆ÷Ïàͬ£© ÇëÇó£º É豸ºÅ ¹¦ÄÜÂë ¼Ä´æÆ÷ÆðʼµØÖ· ¼Ä´æÆ÷µ¥Ôª³¤¶È ×Ö½ÚÊý Êý¾Ý CRCУÑé
id 46 00 01 00 02 04 00 0A 01 02 crcl crch
ÏìÓ¦£º É豸ºÅ ¹¦ÄÜÂë ¼Ä´æÆ÷ÆðʼµØÖ· ¼Ä´æÆ÷µ¥Ôª³¤¶È CRCУÑé
id 46 00 01 00 02 crcl crch
£¨Ôݲ»Ö§³Ö£©
ÊäÈë¼Ä´æÆ÷
Input Register£¨30001 - 39999£© 16λ Ö»¶Á
£¨Ôݲ»Ö§³Ö£©
0x44
£¨Ôݲ»Ö§³Ö£©
Éϱ¨¶à¸öÊäÈë¼Ä´æÆ÷
£¨Ôݲ»Ö§³Ö£¬¸ñʽÓëд¶à¸ö±£³Ö¼Ä´æÆ÷Ïàͬ£©
×¢ÒâºÍ²¹³ä
ЭÒé½âÊÍ£º
1¡¢Êý¾Ý¡¢µØÖ·¡¢³¤¶ÈµÈĬÈÏ´ó¶ËÔÚÇ°£¬µ«CRCУÑéÊÇС¶ËÔÚÇ°£¨µÍ×Ö½ÚÔÚÇ°£©crcl crch£»
2¡¢¿­·¢¡¤k8¹ú¼ÊÀ©Õ¹Ð­Òé½öÊÊÓÃÓÚÉ豸Óë͸´«ÔƵÄÍøÂçͨѶ²ã£»


¹Ø×¢¿­·¢¡¤k8¹ú¼Ê΢ÐŹ«ÖÚºÅ
Á˽â¸ü¶àÐÅÏ¢

sitemap¡¢µØͼ