PROSOFT 5304-MBP-PDPM邏輯通訊模塊
功能代碼05–廣播命令Modbus實(shí)施:強(qiáng)制單線圈PQM實(shí)施:執(zhí)行操作此功能代碼允許主機(jī)請(qǐng)求特定通信鏈路上的所有PQM清除所有需求數(shù)據(jù)。如果從地址被發(fā)送為0,則PQM將識(shí)別分組為廣播命令。以下是清除所有需求數(shù)據(jù)的廣播命令示例。功能代碼06–存儲(chǔ)單設(shè)定點(diǎn)Modbus實(shí)現(xiàn):預(yù)設(shè)單寄存器PQM實(shí)現(xiàn):存儲(chǔ)單設(shè)點(diǎn)此命令允許主機(jī)將單個(gè)設(shè)定點(diǎn)存儲(chǔ)到PQM的存儲(chǔ)器中。從屬設(shè)備對(duì)該功能代碼的響應(yīng)是響應(yīng)整個(gè)主傳輸。消息格式和示例:請(qǐng)求從設(shè)備17將值01E4存儲(chǔ)在設(shè)定點(diǎn)地址1020中。本示例中的傳輸完成后,設(shè)置點(diǎn)地址1020將包含值01E4。功能代碼07–讀取設(shè)備狀態(tài)Modbus實(shí)施:讀取異常狀態(tài)PQM實(shí)施:讀取設(shè)備狀態(tài)這是一個(gè)用于快速讀取所選設(shè)備狀態(tài)的功能。短消息長度允許快速讀取狀態(tài)。根據(jù)從屬設(shè)備的狀態(tài),返回的狀態(tài)字節(jié)將具有設(shè)置為1或0的單個(gè)位。
Function Code 05 – Broadcast Command Modbus Implementation: Force Single Coil PQM Implementation: Execute Operation This function code allows the master to request all PQMs on a particular communications link to Clear All Demand Data. The PQM will recognize a packet as being a broadcast command if the SLAVE ADDRESS is transmitted as 0. Below is an example of the Broadcast Command to Clear All Demand Data.Function Code 06 – Store Single Setpoint Modbus Implementation: Preset Single Register PQM Implementation: Store Single Setpoint This command allows the master to store a single setpoint into the memory of a PQM. The slave response to this function code is to echo the entire master transmission. MESSAGE FORMAT AND EXAMPLE: Request slave 17 to store the value 01E4 in setpoint address 1020. After the transmission in this example is complete, setpoint address 1020 will contain the value 01E4.Function Code 07 – Read Device Status Modbus Implementation: Read Exception Status PQM Implementation: Read Device Status This is a function used to quickly read the status of a selected device. A short message length allows for rapid reading of status. The status byte returned will have individual bits set to 1 or 0 depending on the status of the slave device.