Hello all,
I receive some data on the robot and want to send response (send INTs from robot to external computer). And I have difficulties with function CAST_TO
XML file:
Code
<ETHERNETKRL>
<CONFIGURATION>
<EXTERNAL>
<TYPE>Client</TYPE>
</EXTERNAL>
<INTERNAL>
<ENVIRONMENT>Program</ENVIRONMENT>
<BUFFERING Mode="FIFO" Limit="512"/>
<BUFFSIZE Limit="65534"/>
<ALIVE Set_Flag="600"/>
<Meassages Display="disabled" Logging="disabled"/>
<IP>172.31.1.147</IP>
<PORT>54600</PORT>
</INTERNAL>
</CONFIGURATION>
<RECEIVE>
<RAW>
<ELEMENT Tag="Buffer" Type="STREAM" EOS="255,255,255,255" Size="3600" />
</RAW>
</RECEIVE>
<SEND/>
</ETHERNETKRL>
Display More
This code works fine. I received all data
Code
{FF}{FF}{46}{46}{46}{46}{46}{46}{46}{46}{46}{46}{46}{46}{46}{46}{46}{46}{46}{46}{46}{46}{FF}{FF}
on my external computer:
Code
...
CHAR bytes_response[16]
...
FOR i=(1) TO (16)
bytes_response[i]=70
ENDFOR
...
RET = EKI_Send("control", bytes_response[])
But this code doesn't work. I received only
on my external computer. Why?