|
readDiscretes |
Top |
|
readDiscretes read Modbus Server discrete input registers values (Hardware: Modbus dual Masters Adaptor from Dafulai Electronic Inc ) Since R2019b
Library: Modbus Client ( Dafulai Electronics) /readDiscretes
Description
This block reads discrete input registers values. Start Address is from Input port "StartAddr" (1-based address without 1x 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 "discrete input Data QTY" scalar? The reason is for "Embedded Code generator", in this way, embedded code will know variable 's discrete input 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
|