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.
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.