Cancel
Showing results for 
Search instead for 
Did you mean: 

question about custom xml

Gears Phenom Gears Phenom
Gears Phenom

hello everybody,

 

i search a way to create automaticly comments before a weld point.

 

problem:

the weld point name has the correct name with all information (location name)

i can insert an OLP command on these location to read the name of this loaction and write this download layer. (Custom Motion Parameter is not available)

 

But i need the comment before the weld point.

 

i tested path template with loc range and lot of other parameters.

 

but i found no way.

 

can everybody help me please?

 

thanks

 

Kind regards,

Benjamin Voelzke
6 REPLIES

Re: question about custom xml

Valued Contributor
Valued Contributor

Hi

 

I have exactly the same problem, has there been a solution to this please

 

Regards

Re: question about custom xml

Experimenter
Experimenter

I have exactly the same problem:

 

 

<RobotController Name="Kuka-Vkrc" Version="All">
<ActionList>

<Action Name="Punktname_in_via_davor" LocRange="All" LocationTypes="weld" Description="Insert weld point name as OLP comment in via before">
	<Olp Name=";--THIS SHOULD BE THE NAME OF THE FOUND WELD POINT -- " ApplyOn="-1"/>
</Action>

</ActionList>
<ActionFilter>
</ActionFilter>
</RobotController> 

Thanks in advance!

 

DS

Re: question about custom xml

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi All,

 

you can create a OLP command first.

<Command Name="TextBeforeWP">
			<RoboticParamRef>
			</RoboticParamRef>
			<Layers>
				<UILayer>
					<Line>											
						<Item Type="dynamicParameter">Loc+1 Loc Name</Item>
					</Line>
				</UILayer>
				<SimulationLayer>
					
				</SimulationLayer>
				<DownloadLayer> 
					<Line>						
						<Item Type="dynamicParameter">Loc+1 Loc Name</Item>
					</Line>
				</DownloadLayer>
			</Layers>
		</Command>	 

and then call this olp command in Path Template

 

<Action Name="AddLocationBeforeWP" LocationTypes="Weld" LocRange="All">
			<AddLoc Name="AnfahrLocation" Placed="Before" RefLoc="Itself" RelZ="20" />
			<Olp CustomizedDialogName="TextBeforeWP" ApplyOn="-1" />
		</Action>

Best regards

Patrick

 

 

Re: question about custom xml

Experimenter
Experimenter

Hi,

 

thanks for your quick answer. I fear I am kind of a beginner at this...

 

First I made a new .xml in my "OlpConfiguration" folder (since there wasn't one) containing the following:

 

<RobotController Name="Kuka-Vkrc">

<RoboticParams>

</RoboticParams>

<OlpCommands>
<Command Name="TextBeforeWP">
			<RoboticParamRef>
			</RoboticParamRef>
			<Layers>
				<UILayer>
					<Line>											
						<Item Type="dynamicParameter">Loc+1 Loc Name</Item>
					</Line>
				</UILayer>
				<SimulationLayer>
					
				</SimulationLayer>
				<DownloadLayer> 
					<Line>						
						<Item Type="dynamicParameter">Loc+1 Loc Name</Item>
					</Line>
				</DownloadLayer>
			</Layers>
		</Command>	 
</OlpCommands>

<OlpDialogs>

</OlpDialogs>

</RobotController>

Secondly I inserted your code for adding the Location before the weld point into my PathTemplateConfiguration" .xml.

 

This is the error I'm getting: Using of customized OLP dialog name which wasn't defined in customized OLP XMLs: TextBeforeWP.

 

What am I doing wrong here?

 

 

Thanks in advance!

 

DS

Re: question about custom xml

Siemens Phenom Siemens Phenom
Siemens Phenom

Sorry but I thought just providing some snipped will help.

 

you also need this:

<OlpDialogs>
		<Dialog Title="TextBeforeWP" >
			<OlpCommandRef>
				<OlpCommand>CommentBeforeWP</OlpCommand>
			</OlpCommandRef>
		</Dialog>	
	</OlpDialogs>

this will give you the command within the "add OLP command" dialog.

 

Best regards

Patrick

 

 

Re: question about custom xml

Experimenter
Experimenter

Hi Patrick,

 

thank you for your answer!

 

It works!

 

It took me some time to figure out that the Vkrc controller needs some tinkering with the alterante paths-xml as it ignores custom olp configuration XMLs by default (at least with our installation).

 

Cheers

DS