Add
Adds a new item to the object or UI.
Add(Name, IP, Datatype='USINT', T_O_Length=4, O_T_Length=4, Config_Length=4, T_O_Instance=100, O_T_Instance=101, Config_Instance=102, Config_Data=None, Connection_Type='Exclusive_Owner', T_O_RPI=20000, O_T_RPI=20000, Inhibit=False, T_O_Header=False, O_T_Header=True, Run=True, Unicast=True, Implicit=True, Connected_Explicit=False, Connected_Explicit_Time=False, Timeout_Multiplier=16, Trigger='Cyclic', Priority=2, Variable_Size=False, Owner_Redundant=False, Vendor_ID=0, Device_Type=0, Product_Code=0, Major_Revision=0, Minor_Revision=0, Key_Format=0)
Arguments
| Argument | Default | Accepted values | What it does |
|---|---|---|---|
Name |
Required | Any valid value | Display/name identifier. |
IP |
Required | Any valid value | IP value used by the operation. |
Datatype |
'USINT' |
Any valid value | Datatype value used by the operation. |
T_O_Length |
4 |
Any valid value | T O Length value used by the operation. |
O_T_Length |
4 |
Any valid value | O T Length value used by the operation. |
Config_Length |
4 |
Any valid value | Config Length value used by the operation. |
T_O_Instance |
100 |
Any valid value | T O Instance value used by the operation. |
O_T_Instance |
101 |
Any valid value | O T Instance value used by the operation. |
Config_Instance |
102 |
Any valid value | Config Instance value used by the operation. |
Config_Data |
None |
Any valid value | Config Data value used by the operation. |
Connection_Type |
'Exclusive_Owner' |
Listen_Only |
Mode/value selector for connection type. |
T_O_RPI |
20000 |
Any valid value | T O RPI value used by the operation. |
O_T_RPI |
20000 |
Any valid value | O T RPI value used by the operation. |
Inhibit |
False |
Any valid value | Turns inhibit on or off. |
T_O_Header |
False |
Any valid value | Turns t o header on or off. |
O_T_Header |
True |
Any valid value | Turns o t header on or off. |
Run |
True |
Any valid value | Turns run on or off. |
Unicast |
True |
Any valid value | Turns unicast on or off. |
Implicit |
True |
Any valid value | Turns implicit on or off. |
Connected_Explicit |
False |
Any valid value | Turns connected explicit on or off. |
Connected_Explicit_Time |
False |
Any valid value | Turns connected explicit time on or off. |
Timeout_Multiplier |
16 |
Any valid value | Timeout Multiplier value used by the operation. |
Trigger |
'Cyclic' |
Any valid value | Trigger value used by the operation. |
Priority |
2 |
Any valid value | Priority value used by the operation. |
Variable_Size |
False |
Any valid value | Turns variable size on or off. |
Owner_Redundant |
False |
Any valid value | Turns owner redundant on or off. |
Vendor_ID |
0 |
Any valid value | Vendor ID value used by the operation. |
Device_Type |
0 |
Any valid value | Device Type value used by the operation. |
Product_Code |
0 |
Any valid value | Product Code value used by the operation. |
Major_Revision |
0 |
Any valid value | Major Revision value used by the operation. |
Minor_Revision |
0 |
Any valid value | Minor Revision value used by the operation. |
Key_Format |
0 |
Any valid value | Key Format value used by the operation. |
Output
Returns True/False to indicate success.