enableDevice | Top

enableDevice enable Modbus Server communication Since R2019b Library: Modbus Server ( Dafulai Electronics) /enableDevice Description This block enables/Disables Modbus servers Communication. If we never use this block, the Modbus Servers communication will be enabled. Parameters Please double click this block to open parameters dialog below: Let us explain parameters.
• | Object ID for multiple Modbus slave Simulator Hardware — In one PC, we may use multiple Modbus slave simulators, this is for identifying each one.
Ports Input
• | Enable — "logical" data type's scalar for Modbus TCP server or logical" data type's vector for Modbus RTU/ASCii servers. In Modbus TCP Server situation, rising Edge from false to true causes "Enable server communication". Falling Edge from true to false causes "Disable server communication". In Modbus RTU/ASCii Server situation, Enable vector element numbers must be equal to device QTY, and any element changes will force to cause "Enable/Disable relative server communication". If true, then cause "Enable relative server communication", or false causes "Disable relative server communication"
Outport
• | Success — "logical" data type's scalar. If succeed to enable/disable, it will become true, otherwise false.