Releases: wiesson/DDEAgent
Releases · wiesson/DDEAgent
The first version
It is a first draft.
- Add your desired dataitems in the config.xml file
- monitor the port at the host computer you've set in the config.xml (on unix e.g. nc -lk 4444).
- Start the Sinumerik Interface
- after it's loaded, switch with alt-tab to the explorer and start the application.
- check the host system
Some sinumeric variables:
<DataItem unified="SPINDLE_SPEED" name="/Channel/Spindle/cmdSpeed[1]" />
<DataItem unified="SPINDLE_OVR" name="/Channel/Spindle/speedOvr[1]" />
<DataItem unified="SPINDLE_LOAD" name="/Channel/Spindle/driveLoad[1]" />
<DataItem unified="POSITION_X" name="/Channel/MachineAxis/actToolBasePos[1]" />
<DataItem unified="POSITION_Y" name="/Channel/MachineAxis/actToolBasePos[2]" />
<DataItem unified="POSITION_Z" name="/Channel/MachineAxis/actToolBasePos[3]" />
<DataItem unified="LINE" name="/Channel/ProgramInfo/actLineNumber" />
<DataItem unified="BLOCK" name="/Channel/ProgramInfo/singleBlock[2]" />
<DataItem unified="PROGRAM" name="/Channel/ProgramPointer/progName[u1]" />
<DataItem unified="PATH_FEEDRATE" name="/Channel/State/actFeedRateIpo" />
<DataItem unified="PATH_FEEDRATEOVR" name="/Channel/State/feedRateIpoOvr" />
<DataItem unified="TOOL_NUMBER" name="/Channel/State/actTNumber" />
<DataItem unified="EXECUTION" name="/Channel/State/progStatus" />
<DataItem unified="PROGRAM_STATUS" name="/Channel/ProgramPointer/actInvocCount" />
<DataItem unified="CONTROLLER_MODE" name="/Bag/State/opMode" />
<DataItem unified="ALARM" name="/Channel/State/chanAlarm" />
expected output:
<?xml version="1.0" encoding="utf-8" ?><message dataPointID="se.kth.xpres.cnc"><header><type>EventNotification</type><timestamp>2013-08-09T18:59:05.139+02:00</timestamp><sender>E2</sender></header><body><int name="PROGRAM_STATUS" value="1" type="" /></body></message>```