Quantcast
Channel: Mein MATLAB Forum - goMatlab.de
Viewing all articles
Browse latest Browse all 28441

Matlab und Modbus TCP

$
0
0
Hallo, ich habe folgendes Beispiel im Internet gefunden: http://blog.csdn.net/stevenking55/article/details/9735025 Mit link = connect_create('192.168.2.177',502) baue ich eine Verbindung auf, mit read_reg_one (link, 40001,1) will ich Register 40001 auslesen. Leider bekomme ich folgende Meldung: Warning: Unsuccessful read: The specified amount of data was not returned within the Timeout period. Attempted to access out(6); index out of bounds because numel(out)=0. Error in read_reg_one (line 47) msg_back_num = out(6); Angeschlossen habe ich einen Modbus slave (Arduino mit Ethernet und Modbus). P.s.: Modbus auf dem Arduino funktioniert, habe es mit einem Labview Programm getestet.

Viewing all articles
Browse latest Browse all 28441

Latest Images

Trending Articles