马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
<p style="margin-top:28px;margin-right:0;margin-bottom:23px;margin-left:0;padding:0 0 0 0 ;line-height:30px"><br/></p><p style="margin-top:24px;margin-right:0;margin-bottom:23px;margin-left:0;padding:0 0 0 0 ;line-height:30px"><span style="font-family: Arial;letter-spacing: 0;font-size: 18px;background: rgb(255, 255, 255)"><span style="font-family:宋体">例如,</span>AO Holding Register <span style="font-family:宋体">的</span></span><strong><span style="font-family: Arial;letter-spacing: 0;font-size: 18px;background: rgb(255, 255, 255)"><span style="font-family:宋体">第一个</span></span></strong><span style="font-family: Arial;letter-spacing: 0;font-size: 18px;background: rgb(255, 255, 255)"><span style="font-family:宋体">寄存器</span></span><strong><span style="font-family: Arial;letter-spacing: 0;font-size: 18px;background: rgb(255, 255, 255)"><span style="font-family:宋体">编号为</span></span></strong><span style="font-family: Arial;letter-spacing: 0;font-size: 18px;background: rgb(255, 255, 255)">40001<span style="font-family:宋体">,但其</span></span><strong><span style="font-family: Arial;letter-spacing: 0;font-size: 18px;background: rgb(255, 255, 255)"><span style="font-family:宋体">地址</span></span></strong><span style="font-family: Arial;letter-spacing: 0;font-size: 18px;background: rgb(255, 255, 255)"><span style="font-family:宋体">为</span> 0000<span style="font-family:宋体">。</span></span></p><p style="margin-top:24px;margin-right:0;margin-bottom:23px;margin-left:0;padding:0 0 0 0 ;line-height:30px"><span style="font-family: Arial;letter-spacing: 0;font-size: 18px;background: rgb(255, 255, 255)"><span style="font-family:宋体">这两个量之间的差异是</span><span style="font-family:Arial">“</span><span style="font-family:宋体">偏移量</span><span style="font-family:Arial">”</span><span style="font-family:宋体">。</span></span></p><p style="margin-top:24px;margin-right:0;margin-bottom:23px;margin-left:0;padding:0 0 0 0 ;line-height:30px"><span style="font-family: Arial;letter-spacing: 0;font-size: 18px;background: rgb(255, 255, 255)"><span style="font-family:宋体">每个表都有自己的偏移量,分别为:</span>1<span style="font-family:宋体">、</span><span style="font-family:Arial">10001</span><span style="font-family:宋体">、</span><span style="font-family:Arial">30001 </span><span style="font-family:宋体">和 </span><span style="font-family:Arial">40001</span><span style="font-family:宋体">。</span></span></p><p style="margin-top:24px;margin-right:0;margin-bottom:23px;margin-left:0;padding:0 0 0 0 ;line-height:30px"><span style="font-family: Arial;letter-spacing: 0;font-size: 18px;background: rgb(255, 255, 255)"><span style="font-family:宋体">下面是一个</span> Modbus RTU <span style="font-family:宋体">请求的示例,用于从寄存器</span><span style="font-family:Arial">#40108 </span><span style="font-family:宋体">到 </span><span style="font-family:Arial">40110 </span><span style="font-family:宋体">获取保持寄存器的 </span><span style="font-family:Arial">AI </span><span style="font-family:宋体">值,设备地址为 </span><span style="font-family:Arial">17</span><span style="font-family:宋体">。</span></span></p><p><br/></p> |