Is there any string function that I can use in xml to extract a substr from a string, for example mid(input,start_pos,number_char).
Ok thanks but is there an alternative, I have a dynamic paramter for kawasaki robot called Clamp1. When there is no servo gun it will be (ON,1,1,1) or (OFF,0,0,0) or (OFF,1,0,0) ..... and if there is a servo gun it will be (ON,1,1,1;0,0,0,0,0,0,0). but also possible to have different values between each comma.
I was thinking of using the semicolon as an indication that it is a servo gun but how to do this. The only idea is to make large switch function for all possible combination but I was hoping that there is somehting simple I could put in an if statement.
Yes I think that will work now my only problem is to split the string up
need to be added to the line in different position.
JOINT SPEED9 ACCU0 TIMER0 TOOL1 WORK0 CLAMP1 (ON,1,1,1) CLAMP2 (OFF,0,0,O) OX= WX= CL1=0,0,0,0,0,0,0 #