Showing results for 
Search instead for 
Do you mean 
Reply

custom olp commands

is there a possibility to work with "base Nr" in custom OLP commands?

 

i will read the Base Nr from location

the user can select a base Nr from robot

the selected base Nr is only for olp custom download layer.

 

thanks

Kind regards,

Benjamin Voelzke
4 REPLIES

Re: custom olp commands

[ Edited ]

Do you want to access the location "Base Nr" in the download layer of the custom Olp Command linked to the location? Or do you want to select a "Base Nr" among the available ones and set it on your custom Olp Command, independent from the "Base Nr" assigned to the parent location?

 

In the second case, see this example from Fanuc (using "Payload" instead of "Base Nr", but it is the same mechanism. The important item is DynamicCombo="true"):

 

     <RoboticParams>
        <Param Name="Payload" ValueType="int" DynamicCombo="true"/>    
    </RoboticParams>
    <OlpCommands>
        <Command Name="MyPayload">
            <RoboticParamRef>
                <Param>Payload</Param>
            </RoboticParamRef>
            <Layers>
                <UILayer>
                    <Line>
                        <Item Type="const">PAYLOAD[</Item>
                        <Item Type="parameter">Payload</Item>
                        <Item Type="const">]</Item>
                    </Line>
                </UILayer>
                <SimulationLayer>
                    <Line>
                        <Item Type="const">PAYLOAD[</Item>
                        <Item Type="parameter">Payload</Item>
                        <Item Type="const">]</Item>
                    </Line>
                </SimulationLayer>
                <DownloadLayer>
                    <Line>
                        <Item Type="const">PAYLOAD[</Item>
                        <Item Type="parameter">Payload</Item>
                        <Item Type="const">] ;</Item>
                    </Line>
                </DownloadLayer>
            </Layers>
        </Command>
    </OlpCommands>

Re: custom olp commands

everyone knows that!

 

Thanks

Smiley Very Happy

Kind regards,

Benjamin Voelzke

Re: custom olp commands

i testet the function.

 

But i think dosn't work with Base Nr.

 

Base Nr is type "complex"

 

in OLP command i can write in Base Nr Parameter the value -2147483648 to +2147483648.

 

i have no combo box for selected the existing Base Nr from robot.

 

Kind regards,

Benjamin Voelzke

Re: custom olp commands

i start ps again and it's works correctly.

 

thanks

 

thats the solution.

Kind regards,

Benjamin Voelzke