torayeff / fanucpy

Python Interface for FANUC robots
Apache License 2.0
109 stars 29 forks source link

I found bug in mappdk_server.kl #30

Open baconkcode opened 1 year ago

baconkcode commented 1 year ago

In the line 24 VAR ..... uframe_str: STRING[1] tool_str: STRING[1] This STRING[1] should be STRING[2] or STRING[254],because the out of function CNV_INT_STR() is more than STRING[1],it conclude a blank space. In the line 53 CNV_INT_STR(UFRAMENUM, 1, 0, uframe_str) CNV_INT_STR(TOOLNUM, 1, 0, tool_str) the mistake will make uframe_str=' ' and tool_str=' ',you can not set the correct MNUFRAME and MNTOOL by GET_VAR(entry, 'SYSTEM', '$MNUFRAME[1, ' + uframe_str + ']', $GROUP[1].$UFRAME, status) GET_VAR(entry, 'SYSTEM', '$MNUTOOL[1, ' + tool_str + ']', $GROUP[1].$UTOOL, status) My English is not good , I hope you can understand me.

torayeff commented 1 year ago

hi thanks for this, I am currently on holidays, I will verify this and update accordingly