freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

畢業(yè)論文外文翻譯之modbus通訊協(xié)議-wenkub.com

2025-10-31 21:32 本頁面
   

【正文】 該技術(shù)集智能傳感,控制,計(jì)算機(jī)和數(shù)字通信技術(shù)為一體,已成為自動(dòng)化技術(shù)發(fā)展的一個(gè)熱門,未來必會(huì)導(dǎo)致自動(dòng)化系統(tǒng)領(lǐng)域的設(shè)備之間的網(wǎng)絡(luò)通信的巨大變化。 Modbus 協(xié)議是應(yīng)用于電子控制器上的一種通用語言,也是一種通用的工業(yè)標(biāo)準(zhǔn)。整個(gè)過程要重復(fù) 8 次。 CRC 是先調(diào)入一值是全“ 1”的 16 位寄存器,然后調(diào)用一子程序?qū)⑾⒅羞B續(xù)的 8 位字節(jié)當(dāng)前寄存器中的值進(jìn)行處理。 CRC 域檢測(cè)了整個(gè)消息的內(nèi)容。 LRC 域是一個(gè)包含一個(gè) 8位二進(jìn)制值的字節(jié)。如果沒有指定奇偶校驗(yàn)位,傳輸時(shí)就沒有校驗(yàn)位,也不進(jìn)行校驗(yàn)檢測(cè)。如果指定了奇或偶校驗(yàn),“ 1”的位數(shù)將算到每個(gè)字符的位數(shù)中 (ASCII 模式 7 個(gè)數(shù)據(jù)位, RTU 中 8 個(gè)數(shù)據(jù)位 )。具體使用何種冗余校驗(yàn),視傳送方式而定。 Modbus 系統(tǒng)中的奇偶校驗(yàn)是任選項(xiàng),用戶在對(duì)接口設(shè)備進(jìn)行配置時(shí),應(yīng)對(duì)奇校驗(yàn)或偶校驗(yàn)進(jìn)行適當(dāng)選擇。 Modbus 通訊協(xié)議的兩種傳送方式 ASCⅡ和 RTU,其字符格式內(nèi)均有任選的奇偶校驗(yàn)位。通訊錯(cuò)誤一旦發(fā)生,報(bào)文便視為不可靠。奇偶校驗(yàn)對(duì)每個(gè)字符都可用,幀檢測(cè) (LRC 或 CRC)應(yīng)用于整個(gè)消息。 Modbus 系統(tǒng)對(duì)這兩種錯(cuò)誤各有專門的處理方式。故 CRC 的高位字節(jié)是發(fā)送消息的最后一個(gè)字節(jié)。 LRC 字符附加在回車換行符前面。 6)錯(cuò)誤檢測(cè)域 標(biāo)準(zhǔn)的 Modbus 網(wǎng)絡(luò)有兩種錯(cuò)誤檢測(cè)方法。如果沒有錯(cuò)誤發(fā)生,從從設(shè)備返回的數(shù)據(jù)域包含請(qǐng)求的數(shù)據(jù)。從主設(shè)備發(fā)給從設(shè)備消息的數(shù)據(jù)域包含附加的信息 :從設(shè)備必須用于進(jìn)行執(zhí)行由功能代碼所定義的所為。對(duì)異議回應(yīng),它返回 : 10000011 (十六進(jìn)制 83H) 除功能代碼因異議錯(cuò)誤作了修改外,從設(shè)備將一獨(dú)特的代碼放到回應(yīng)消息的數(shù)據(jù)域中,這能告訴主設(shè)備發(fā)生了什么錯(cuò)誤。當(dāng)從設(shè)備回應(yīng)時(shí),它使用功能代碼域來指示是正常回應(yīng) (無誤 )還是有某種錯(cuò)誤發(fā)生 (稱作異議回應(yīng) )。可能的代碼范圍是十進(jìn)制的 1?255 。當(dāng)從設(shè)備發(fā)送回應(yīng)消息時(shí),它把自己的地址放入回應(yīng)的地址域中,以便主設(shè)備知 道是哪一個(gè)設(shè)備作出回應(yīng)。一典型的消息幀如下所示 : 3)地址域 消息幀的地址域包含兩個(gè)字符 (ASCII)或 8Bit (RTU)。整個(gè)消息幀必須作為一連續(xù)的流傳輸。網(wǎng)絡(luò)設(shè)備不斷檢測(cè)網(wǎng)絡(luò)總線,包括停頓間隔時(shí)間內(nèi)。一個(gè)典型消息幀如下所示 : 2) RTU 模式 使用 RTU 模式,消息發(fā)送至少要以 個(gè)字符時(shí)間的停頓間隔開始。 1) ASCll 幀 使用 ASCH 模式,消息以冒號(hào) (:)字符 (ASCH 碼 3AH) 開始,以回車換行符結(jié)束 (ASC工 1 碼 ODH, OAH)。如果有錯(cuò)誤發(fā)生,功能代碼將被修改以用于指出回應(yīng)消息是錯(cuò)誤的,同時(shí)數(shù)據(jù)段包含了描述此錯(cuò)誤信息的代碼。數(shù)據(jù)段必須包含要告之從設(shè)備的信息 :從何寄存器開始讀及要讀的寄存器數(shù)量。同樣,當(dāng)控制器接收到一消息,它將建立一從設(shè)備回應(yīng)格式并返回給發(fā)送的控制器。這樣在單獨(dú)的通訊過程中,控制器既可作為主設(shè)備也可作為從設(shè)備。 Modbus 協(xié)議建立了主設(shè)備查詢的格式 :設(shè)備 (或廣播 )地址、功能代碼、所有要發(fā)送的數(shù)據(jù)、一錯(cuò)誤檢測(cè)域。典型的主設(shè)備 :主機(jī)和可編程儀表。 Modbus 網(wǎng)絡(luò)上轉(zhuǎn)輸 標(biāo)準(zhǔn)的 Modbus 口是使用一 RS232 兼容串行接口,它定義了連接口的針腳、電纜、信號(hào)位、傳輸波特率、奇偶校驗(yàn)。這種轉(zhuǎn)換也擴(kuò)展了根據(jù)具體的網(wǎng)絡(luò)解決節(jié)地址、路由路徑及錯(cuò)誤檢測(cè)的方法。它制定了消息域格局和內(nèi)容的公共格式。 Modbus 協(xié)議是一種在工業(yè)領(lǐng)域被廣為應(yīng)用的真正開放、標(biāo)準(zhǔn)的網(wǎng)絡(luò)通訊協(xié)議,被大部分 SCADA(Supervisor Control And Data Acquisition數(shù)據(jù)采集與監(jiān)視控制系統(tǒng) )HM 工 (Human Machine Interface 人機(jī)界面 )軟件支持,所以它實(shí)際上己經(jīng)成為一種通用的工業(yè)標(biāo)準(zhǔn)。每個(gè)字節(jié)的位包括 :1 個(gè)起始位 ,8 個(gè)數(shù)據(jù)位 ,1 個(gè)奇偶校驗(yàn)位 ,1個(gè)或 2 個(gè)停止 位 (無奇偶校驗(yàn)時(shí) )。在 RTU 方式中 ,每個(gè) 8Bit 字節(jié)包含兩個(gè) 4Bit 的十六進(jìn)制字符 ,其優(yōu)點(diǎn)是在同樣的波特率下 ,可比 ASCII 方式傳送更多的數(shù)據(jù) ,但是每個(gè)消息必須以連續(xù)的數(shù)據(jù)流傳輸。Modbus 規(guī)定 ,只有主站具有主動(dòng)權(quán) ,從站只能被動(dòng)的響應(yīng) ,包括回答出錯(cuò)信息。 ASCI data fields to work for the first eight parity bits ( 7 data bits, a parity bits ) . If you do not use parity, no parity bit is sent. Modbus parity system is optional。 otherwise the receiving device will consider transmission errors. A typical message frame is as follows: 2) RTU mode Use RTU mode, messages start with a silent interval of at least character times. In the work baud diverse character time, this is most easily achieved (as shown in the TlT2T3T4 below). The first field transmitted is the device address. You can use the transmission character hexadecimal 09, A F. Constantly testing the work bus work equipment, including pauses during the interval. When the first field (the address field) is received, each device decodes to determine whether destined for their own. After the last transmitted character, one of at least character times marks the end of the message. A new message can begin after this pause. The entire message frame is as a continuous stream to be transmitted. If, before pletion of the frame over the dwell time of character times, the receiving device flushes the inplete message and assumes that the next byte is the address field of a new message. Likewise, if a new message in less than then before the start, the receiving device will consider it a continuation of the previous message in the character times. This will result in an error because the value is not possible in the final CRC field is correct. A typical message frame is as follows: 3) The address field Address field of the message frame contains two characters (ASCII) or 8Bit (RTU). Possible from the device address is 0 ... 247 (decimal). The address range is a single device ... 247. It will be contacted by the master device from the device address into the address field of the message to strobe from the device. When sending response messages from the device, it put his address in response to the address field in order to know which one master device to respond. Address 0 is used as a broadcast address, so that all can understand from the device. When the work for a higher level of Modbus protocol, broadcast or otherwise may not be allowed to replace. 4) How the functional domains Message frame function code field contains the two characters (ASC Engineering I) or Hits (RTU). Possible decimal code range is 1 ... 255. Of course, some code is applicable to all controllers, some of which are used in some kind of control, and some reserved for later use. When the message is sent from the master device from the device, the function code field will tell what behavior from the device needs to perform. For example, to read the switch status input, read the contents of a set of data registers, read from the diagnostic status of the device, allowing transferred, records from the device calibration procedures. When the response from the device, it uses the function code field to indicate a normal response (correct) or have some kind of error occurred (called the opposition to respond). Normal response es from the device to respond only to the corresponding function code. Response to objections, the device returns from the normal code, a code equal to, but the position of the most significant logic one. For example: one sent from the master device required to read a message from a group holding registers, the code will produce the following functions: 00000011 (hexadecimal 03H) Normal response es from the device to respond only to the sa
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1