Hello, I was trying to run the example XmlServer (code provided by KUKA) on my KRC4.
Here is the code:
Code
DEF XmlServer()
Declaration
DECL EKI_STATUS RET
INI
BASISTECH INI
BAS (#INITMOV, 0)
USER INI
;Make your modifications here
RET=EKI_Init("XmlServer")
RET=EKI_Open("XmlServer")
EKI_CHECK(RET, #QUIT)
;wait until server is connected
wait for $FLAG[1]
;wait until server is deconnected
wait for $FLAG[1] == FALSE
RET=EKI_Clear("XmlServer")
END
Display More
And the config file XmlServer.xml:
Code
<ETHERNETKRL>
<CONFIGURATION>
<EXTERNAL>
<TYPE>Client</TYPE>
</EXTERNAL>
<INTERNAL>
<IP>172.31.1.147</IP>
<PORT>59152</PORT>
<ALIVE Set_Flag="1" />
</INTERNAL>
</CONFIGURATION>
<RECEIVE>
<XML>
<ELEMENT Tag="Sensor/A" Type="BOOL" />
</XML>
</RECEIVE>
<SEND>
<XML>
<ELEMENT Tag="Robot/B" />
</XML>
</SEND>
</ETHERNETKRL>
Display More
The program fails on line RET=EKI_INIT("XmlServer"), with error:
EKI00006 Interpet of configuration failed. Cause <EthernetKRL>
All other examples in which KRC is configured as a client seem to work. The configuration file is in the right directory, and the set IP address is IP of KRC (I tried setting different IP addresses from the same group but it fails in the same way).
Any ideas on what I am doing wrong?