API Help
Eplan.EplApi.DataModel.EObjects Namespace / Terminal Class / Create Method / Create(PLC,FunctionDefinition) Method
PLC where the Terminal will be located on
The Eplan.EplApi.DataModel.FunctionDefinition that the Terminal will have assigned

In This Topic
    Create(PLC,FunctionDefinition) Method
    In This Topic
    Creates a Terminal object related to a PLC given as the parameter and having the specified function definition. The function definition must be of the 'PLC Terminal' category; otherwise a WrongCategoryException is thrown.
    Syntax
    public void Create( 
       PLC plc,
       FunctionDefinition funcDef
    )
    public:
    void Create( 
       PLC^ plc,
       FunctionDefinition^ funcDef
    ) 

    Parameters

    plc
    PLC where the Terminal will be located on
    funcDef
    The Eplan.EplApi.DataModel.FunctionDefinition that the Terminal will have assigned
    Exceptions
    ExceptionDescription
    Thrown when the Terminal cannot be created.
    Thrown when plc parameter is null.
    Thrown when variant parameter is null.
    Thrown when the function has already been created.
    Thrown when the funcDef parameter does not point to a function definition of the 'PLC Terminal' category.
    See Also