cancel
Showing results for 
Search instead for 
Did you mean: 

OLP Robotics XML

Valued Contributor
Valued Contributor

Hi

 

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

 

Regards

4 REPLIES

Betreff: OLP Robotics XML

PLM World Member Phenom PLM World Member Phenom
PLM World Member Phenom

no way

Kind regards,

Benjamin Voelzke

Betreff: OLP Robotics XML

Valued Contributor
Valued Contributor

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.

 

Thanks

Betreff: OLP Robotics XML

Siemens Phenom Siemens Phenom
Siemens Phenom

You may try to switch on dynamic parameter "Servo Value"? It should be empty ("") in case there is no servo gun.

Betreff: OLP Robotics XML

Valued Contributor
Valued Contributor

Yes I think that will work now my only problem is to split the string up

 

(ON,1,1,1;0,0,0,0,0,0,0)

 

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 #