|
readCoils |
Top |
|
readCoils read Modbus Server coil registers values (Hardware: Modbus dual Masters Adaptor from Dafulai Electronic Inc ) Since R2019b
Library: Modbus Client ( Dafulai Electronics) /readCoils
Description
This block reads coil registers values. Start Address is from Input port "StartAddr" (1-based address without 0x prefix), Read Quantities are equal to the dimension of Input port "Data Var" . Why do we use the dimension of Input port "Data Var" instead of "coil Data QTY" scalar? The reason is for "Embedded Code generator", in this way, embedded code will know variable 's coil register address easily.
If any error (CRC, Timeout, Not supported FC, address range,....) occurs, Outport "Data" will keep previous value, and Outport "Success" will be false.
Parameters
Please double click this block to open parameters dialog below:
Let us explain parameters.
Ports
Input
Outport
|