Cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Fanuc download template settings

Siemens Phenom Siemens Phenom
Siemens Phenom

Here is a simple sample

 

<RobotController Name="Fanuc-Rj">
  <RoboticParams>
	<Param Name="MyDelay(ms)" ValueType="double" MinVal="0.1" MaxVal="1000" Default="10"/>
 </RoboticParams>
 <Aliases>
	<Alias Name="MyDelayInstruction">
		<Item Type="const">CALL MyDelay(</Item>
		<Item Type="parameter">MyDelay(ms)</Item>
		<Item Type="const">)</Item>
	</Alias>
 </Aliases>
  <OlpCommands>
    <Command Name="MyDelay">
      <RoboticParamRef>
		<Param>MyDelay(ms)</Param>
      </RoboticParamRef>
      <Layers>
         <UILayer>
			<Line>
				<Alias>MyDelayInstruction</Alias>
			</Line>
         </UILayer>
        <SimulationLayer>
			<Line>
				<Item Type="const"># SetVariable DelayInSec </Item>
				<Item Type="parameter">MyDelay(ms)</Item>
				<Item Type="const">/1000</Item>
			</Line>
			<Line>
				<Item Type="const"># WaitTime DelayInSec</Item>
			</Line>
        </SimulationLayer>
        <DownloadLayer>
			<Line>
				<Alias>MyDelayInstruction</Alias>
				<Item Type="const"> ;</Item>
			</Line>
        </DownloadLayer>
      </Layers>
    </Command>
 </OlpCommands>

  <OlpDialogs>
    <Dialog Title="Customer|Training|MyDelay" 
			Description="Training example MyDelay">
      <OlpCommandRef>
		<OlpCommand>MyDelay</OlpCommand>
      </OlpCommandRef>
    </Dialog>
  </OlpDialogs>
</RobotController>

Re: Fanuc download template settings

Solution Partner Pioneer Solution Partner Pioneer
Solution Partner Pioneer

Thanks you very much!!!

I hope this sample can helps other people too.