Please enable JavaScript to view this site.

MovingCap Ethernet Antriebe - Software-Handbuch

Python-Ausgaben und Fehlermeldungen über UDP Port 14999

Python-Konsole-Ausgaben wie print(..) und Python-Fehlermeldungen können über eine Netzwerkverbindung auf UDP Port 14999 erhalten werden.

Öffnen Sie eine UDP Peer-Verbindung zu der IP-Adresse des MovingCap-Servoantriebs und UDP Port 14999.

Schicken Sie eine leere Textzeile bzw. das ASCII Zeichen CR ("\r" , ASCII Code 13 dezimal).

HINWIS: Bei mehreren UDP-Verbindungen arbeitet die UDP Debugschnittstelle so wie die REFGO-Schnittstelle , oder ein entsprechendes Python-Objekt aus dem mcnet-Modul - Die Antwort des MovingCap wird immer nur an die Verbindung gesendet, von der zuletzt eine Anfrage erhalten wurde.

In Windows können Sie dies mit dem Werkzeug Docklight Scripting wie folgt durchführen:

Laden Sie Docklight Scripting herunter und installieren Sie es. Sie benötigen keinen Lizenzschlüssel für einfache Tests / Anzeigen.

Gehen Sie zum movingcap.de Service-Portal, suchen Sie nach Docklight_MovingCap_ETH_Debug_Output.zip, laden Sie diese Datei herunter und entpacken Sie sie.

Starten Sie Docklight Scripting und öffnen Sie das Projekt Docklight_MovingCap_ETH_Debug_Output.ptp

Beachten Sie die in Docklight Scripting angezeigte Projektdokumentation (aus der Datei Docklight_MovingCap_ETH_Debug_Output.ptn):

MovingCap ETH Debug Interface via UDP Port 14999

 

* Click the "---> Connect" Send Sequence to open the connection and send an initial <CR> to the MovingCap.

 

A typical initial response could look like this:

 

12.12.2022 12:55:54.950 [PC] - <CR>

 

12.12.2022 12:55:54.955 [mc] - SYS_Initialize: The MPFS2 File System is mounted<CR><LF>

TCP/IP Stack: Initialization Ended - success <LF><CR>

Host MOVINGCAP TCP   - NBNS disabled<CR><LF>

IP Address: 192.168.2.150 <CR><LF>

REFGO - opening server<CR><LF>

code: starting upload...<CR><LF>

code: upload complete, script id: maxTRACK N23 demo rev8<CR><LF>

<CR>

><CR><LF>

 

From this point on, you can see both Python print() output, but also Python errors in the Docklight communication window:

 

12.12.2022 12:57:11.074 [mc] - code: compile, script id: maxTRACK N23 demo rev8<LF><CR>

code: execute, script id: maxTRACK N23 demo rev8<LF><CR>

Hello World from MovingCap!<CR><LF>

 

Here is what MovingCap reports after uploading and starting a script that contains an obvious Python error - the amount of spaces in line 22 is incorrect, rep. this line is not properly indented. See the Internet for "Python Indentation" and why this is important:

 

12.12.2022 12:58:57.769 [mc] - code: starting, script id: maxTRACK N23 demo rev8<LF><CR>

 

12.12.2022 12:58:57.869 [mc] - code: compile, script id: maxTRACK N23 demo rev8<LF><CR>

Traceback (most recent call last):<CR><LF>

 File "<stdin>", line 22<CR><LF>

IndentationError: unexpected indent<CR><LF>