AddUnit

<< Click to Display Table of Contents >>

Manual > Reference > Methods >

AddUnit


 

Register the unit (PLC).

 

 

 


syntax

bResult = AxEng1.AddUnit(

                                 ParamStr

                                 )


Parameters

ParamStr

 

type:

string

 

"Unit name#parameter string"

Example) “U01#MIT.QQ.E:,8192,0.0.0.0,8192,UDP,0,3000,N,0,Y,Y,0”

 

Return Value

bResult

 

type:

bool

 

FALSE - Failure. TRUE - Success.

 


Commentary

The AddUnit method adds a unit, which is the first level of the tag, from within the program. For information on parameter strings, see "Tag Edition".

 

 

 

 

 


reference

 

DelUnit