📄 mmsvar.cfg
字号:
############################################################################ COMPONENT_NAME: MMS-EASE Variable and Object Configuration File## mmsvar.cfg## The entries in this file allow MMS objects to be added to the # MMS-EASE Demo. There are several object sections that must be # in the following order, Domains, ProgramInvocations, NamedTypes, # NamedVariables, and NamedVariableLists. Not all sections # are required as not all objects need be supported by the # application. ## SECTION: DomainSection## Each NamedDomain is formed from the 2 keywords: # 1) 'DomainName=', and 2) 'Capability='. There may be more than one# capability to a Domain. Spaces, Tabs, and the LineJoin # character '|' may be used to improve readability. A brief # description of each keyword is listed below:## DomainName= This is the name of a MMS Domain visible on the # network as a NamedDomain object. All entries found in this # section are entered into the default VMD of the MMS-EASE # demo.## Capability= This is a one word capability string added to the# list of capabilities for the Domain being configured. A # capability list is optional for a Domain or there# may be more than one capability associated with a Domain. # The list of capabilites for a Domain is terminated by # the beginning of the next DomainName or the end of the # Domain section.## SECTION: ProgramInvocationSection## Each ProgramInvocation is formed from the 2 keywords: # 1) 'PiName=', and 2) 'Domain='. Spaces, Tabs, and the LineJoin # character '|' may be used to improve readability. A brief # description of each keyword is listed below:## PiName= This is the name of a MMS Program visible on the # network as a ProgramInvocation object. All entries found # in this section are entered into the default VMD of the # MMS-EASE demo.## Domain= This is the name of a NamedDomain object associated with# the Program being configured. A list of Domains is optional # for a ProgramInvocation or there may be more than one # Domain referenced by a ProgramInvocation. Names found after # this keyword must be created by the application or be # configured in the DomainSection of this file. The list of # Domains is terminated by the beginning of the next PiName # or the end of the ProgramInvocation section.## SECTION: TypesSection## Each complex MMS Type is formed from the 2 keywords: # 1) 'TypeName=', and 2) 'TypeDef='. Spaces, Tabs, and the LineJoin # character '|' may be used to improve readability. A brief # description of each keyword is listed below:## TypeName= This is the name of a MMS Type visible on the network# as a NamedType object. The name may be up to 32 characters# corresponding to the rules of an ISO Identifier. All # entries found in this section are entered into the # default VMD of the MMS-EASE demo.## TypeDef= This is an MMS NamedType Definition as described using# MMS Type Definition Language ( TDL ).## SECTION: VarsSection## Each Named Variable is formed from the 2 keywords: 1) 'VarName=',# 2) 'TypeName='. Spaces, Tabs, and the LineJoin # character '|' may be used to improve readability. A brief # description of each keyword is listed below:## VarName= This is the name of a MMS Variable visible on the network# as a NamedVariable object. The name may be up to 32 # characters corresponding to the rules of an ISO Identifier. # Entries found in this section are added by default to # the default VMD of the MMS-EASE demo. Variables may also # be added to a Domain from the DomainSection by prefixing # the name of the Domain to the name of the variable. The # period '.' character is required when adding a Domain # Specific variable to separate the name of the Domain from # the name of the Variable. Data space for the variable is # allocated by the demo program and initialized to default # values of all 0.## VarNameInit= This is the same as the VarName keyword except that # the user will be prompted to enter the data for this # variable after the variable is added to the database. ## TypeName= This is the name of a NamedType object associated with# the Variable being configured. The name that follows # this keyword must be created by the application or be # defined in the 'TypesSection' of this file.## SECTION: VarListSection## Each Named Variable List is formed from the keywords found# between : 'VarList=', 'VarListEnd'. Possible keywords found # in between the start and end keywords include 1) 'Domain=' and# 'VarName='. There may be at most 1 'Domain' entry for the # NamedVariableList and this implies that not only is the # Named Variable List Domain specific, but all the NamedVariables# referenced in the list by 'VarName=' must also already exist # in the same Domain. Spaces, Tabs, and the LineJoin character '|' # may be used to improve readability. A brief description of each # keyword is listed below:## VarList= This is the name of a list MMS Variables visible on the # network as a NamedVariableList object. The name may be # up to 32 characters corresponding to the rules of an # ISO Identifier. Entries found in this section are # added by default to the default VMD of the MMS-EASE demo. # Variables may also be added to a Domain from the # DomainSection by including the 'Domain=' keyword in the # configuration.## Domain= This is the name of a NamedDomain object associated with# the NamedVariableList being configured. The name found after # this keyword must be created by the application or be # configured in the DomainSection of this file.## VarName= This is the name of a NamedVariable object which must# exist in the same scope as the NamedVariableList being# configured. The name found after this keyword must be # created by the application or be configured in the # VarsSection of this file.## VarListEnd - This key word terminates the configuration for a # NamedVariableList and causes the object to be created.############################################################################## ------- SECTION: DomainSection#%DomainsBegin DomainName = DadsDomain | Capability = Lift | Capability = Haul Capability = Drink | Capability = Eat DomainName = ChildsDomain | Capability = Play | Capability = School Capability = Sleep DomainName = MomsDomain | Capability = Shop | Capability = Phone Capability = Swim DomainName = DomainOfTheUnsigned DomainName = DomainNamed1 DomainName = DomainNamed2 DomainName = DomainNamed3 DomainName = DomainNamed4 DomainName = DomainNamed5%DomainsEnd## ------- SECTION: ProgramInvocationSection#%PisBegin PiName = FamilyFunctionPI Domain = DadsDomain Domain = MomsDomain Domain = ChildsDomain PiName = EmptyPI PiName = GTWY_PI Domain = Robot Domain = Flex_Gage PiName = FivePartPI Domain = DomainNamed1 Domain = DomainNamed2 Domain = DomainNamed3 Domain = DomainNamed4 Domain = DomainNamed5%PisEnd## ------- SECTION: TypesSection#%TypesBegin TypeName = cc_dispatch_typ | TypeDef = {Ushort, Ubyte} TypeName = surge_status_typ | TypeDef = {Ubyte, [7:Bool]} # struct mixed_int # { # BOOLEAN b; # SHORT s; # LONG l; # }; TypeName = mixed_int | TypeDef = {(b)Bool,(s)Short,(l)Long} # struct mixed_int2 # { # BOOLEAN b; # LONG l; # SHORT s; # }; TypeName = mixed_int2 | TypeDef = {(b)Bool,(l)Long,(s)Short} TypeName = arr_5_short | TypeDef = [5:Short] TypeName = dim2_arr | TypeDef = [2:[3:Short]] # struct oct_str # { # BOOLEAN b1; # UBYTE ostr1[3]; /* fixed length octet string */ # BOOLEAN b2; # SHORT ostr2_len; /* variable length octet string */ # UBYTE ostr2[7]; # LONG l; # }; TypeName = oct_Str | TypeDef = {(b1)Bool,(ostr1)[3:Ubyte],(b2)Bool,(ostr2_len)Short,(ostr2)[7:Ubyte],(l)Long} # struct bit_str # { # BOOLEAN b1; # UBYTE bstr1[3]; /* fixed length (24) bit string */ # BOOLEAN b2; # UBYTE bstr2[6]; # LONG l; # }; TypeName = bit_str | TypeDef = {(b1)Bool,(bstr1)Bstring24,(b2)Bool,(bstr2)Bstring48,(l)Long} # struct vis_str # { # BOOLEAN b1; # UBYTE vstr1[6]; /* Fixed length visible string */ # BOOLEAN b2; # UBYTE vstr2[11]; /* Fixed length visible string */ # LONG l; # }; TypeName = vis_str | TypeDef = {(b1)Bool,(vstr1)Vstring5,(b2)Bool,(vstr2)Vstring10,(l)Long} # struct flt_str # { # BOOLEAN b1; # FLOAT f; /* 4 byte float */ # BOOLEAN b2; # DOUBLE d; /* 8 byte float */ # }; TypeName = flt_str | TypeDef = {(b1)Bool,(f)Float,(b2)Bool,(d)Double} # struct bcd_str # { # BYTE bcd2; /* 2 digit BCD */ # SHORT bcd4; /* 4 digit BCD */ # LONG bcd5; /* 5 digit BCD */ # LONG bcd6; /* 6 digit BCD */ # SHORT bcd3; /* 3 digit BCD */ # LONG bcd7; /* 7 digit BCD */ # LONG bcd8; /* 8 digit BCD */ # BYTE bcd1; /* 1 digit BCD */ # }; TypeName = bcd_str | TypeDef = {(bcd2)Byte,(bcd4)Short,(bcd5)Long,(bcd6)Long,(bcd3)Short,(bcd7)Long,(bcd8)Long,(bcd1)Byte} # struct time_str # { # BOOLEAN b1; # LONG btime1; /* Binary Time Of Day - 4 byte */ # BOOLEAN b2; # LONG btime2; /* Binary Time Of Day - 6 byte */ # BOOLEAN b3; # LONG gtime; /* Generalized Time */ # BOOLEAN b4; # MMS_UTC_TIME utc; /* UTC Time */ # BOOLEAN b5; # }; TypeName = time_str | TypeDef = {(b1)Bool,(btime1)Long,(b2)Bool,(btime2)Long,(b3)Bool,(gtime)Long,(b4)Bool,(utc)Utctime,(b5)Bool} # struct mixed_int # { # BOOLEAN b; # SHORT s; # LONG l; # }[3]; TypeName = arr_str1 | TypeDef = [3:{(b)Bool,(s)Short,(l)Long}] # struct # { # LONG l; # struct # { # UBYTE ub1; # ULONG ul; # } arr_str[10]; # UBYTE ub2; # }; TypeName = etc1_typ | TypeDef = { Short, Short, Long, Double, Bool, Bool, Ushort, Ulong, Vstring16, Vstring80, Ubyte, Ubyte } TypeName = etc2_typ | TypeDef = { Vstring16, Vstring80, Long, Ulong, Bool, { Short, Short, Vstring16 }, { Long, Short, Vstring80 } } TypeName = etc3_typ | TypeDef = { Bool, Short, Long, Bool, Long, Short } TypeName = nest4 | TypeDef = { Ubyte, { Long, { Ubyte, { Long, { Ubyte } } } } } TypeName = complex1 | TypeDef = {(l)Long,(arr_str)[10:{(ub1)Ubyte,(ul)Ulong}],(ub2)Ubyte} TypeName = VarOstr10 | TypeDef = OVstring10 TypeName = VarBstr20 | TypeDef = BVstring20 TypeName = Bstr20 | TypeDef = Bstring20 TypeName = exstr1 | TypeDef = {(comp1)Short,(comp2)Short,(comp3)Short} TypeName = exstr2 | TypeDef = {(comp4)Long,(comp5)Long,(comp6)Long} TypeName = exstr_2 | TypeDef = {(arr1)[23:Short],(arr2)[41:Short]} TypeName = arr2dim | TypeDef = [5:[10:Short]] TypeName = str1 | TypeDef = {(l)Long,(str2){(arr_str)[10:{(ub)Ubyte,(ul)Ulong}]}} TypeName = str3 | TypeDef = {(l)Long,(arr_str)[10:{(ub1)Ubyte,(ul)Ulong}],(ub2)Ubyte} TypeName = arr | TypeDef = [10:Short] TypeName = arr_str | TypeDef = [5:{(l)Long,(comp1)[5:{(ub1)Ubyte,(ul1)Ulong}],(comp2)[5:{Ubyte,(ul2)Ulong}]}] TypeName = arr_str2 | TypeDef = {(arr_str1)[5:{(arr_str11)[5:{(ub1)Ubyte,(ul1)Ulong,}],(ubl1)Ulong}],(arr_str2)[5:{(ub2)Ubyte,(ul2)Ulong}]}%TypesEnd## ------- SECTION: VarsSection#%VarsBegin VarName = DomainOfTheUnsigned.UnsignedOctet | TypeName = Unsigned8 VarName = DomainOfTheUnsigned.UnsignedWord | TypeName = Unsigned16 VarName = DomainOfTheUnsigned.UnsignedDWord | TypeName = Unsigned32 VarName = arr_str8 | TypeName = arr_str8 VarName = a$$dollarsign | TypeName = Integer16 VarName = cc_job_Var | TypeName = cc_dispatch_typ VarName = pacman_surge | TypeName = surge_status_typ VarName = mixed_int | TypeName = mixed_int VarName = mixed_int2 | TypeName = mixed_int2 VarName = arr_5_short | TypeName = arr_5_short VarName = dim2_arr | TypeName = dim2_arr VarName = oct_str | TypeName = oct_Str VarName = bit_str | TypeName = bit_str VarName = vis_str | TypeName = vis_str VarName = flt_str | TypeName = flt_str VarName = time_str | TypeName = time_str VarName = arr_str1 | TypeName = arr_str1 VarName = complex1 | TypeName = complex1 VarName = etc1 | TypeName = etc1_typ VarName = etc2 | TypeName = etc2_typ VarName = etc3 | TypeName = etc3_typ VarName = nest4 | TypeName = nest4 VarName = VarOstr10 | TypeName = VarOstr10 VarName = VarBstr20 | TypeName = VarBstr20 VarName = Bstr20 | TypeName = Bstr20 VarName = exstr1 | TypeName = exstr1 VarName = exstr2 | TypeName = exstr2 VarName = arr | TypeName = arr VarName = exstr_2 | TypeName = exstr_2 VarName = arr2dim | TypeName = arr2dim VarName = str1 | TypeName = str1 VarName = str3 | TypeName = str3 VarName = arr_str | TypeName = arr_str VarName = arr_str2 | TypeName = arr_str2%VarsEnd## ------- SECTION: VarListSection#%VarListsBegin VarList = FlexVars | Domain=Flex_Gage | VarName = Z_Dimension | VarName = Y_Dimension | VarName = X_Dimension | VarListEnd VarList = PopularEtcs | VarName = etc1 | VarName = etc2 | VarListEnd VarList = RobotVars | Domain=Robot | VarName = Z_Axis | VarName = Y_Axis | VarName = X_Axis | VarListEnd VarList = AlmostEveryone | VarName = cc_job_Var | VarName = pacman_surge | VarName = mixed_int | VarName = mixed_int2 | VarName = arr_5_short | VarName = dim2_arr | VarName = oct_str | VarName = bit_str | VarName = vis_str | VarName = flt_str | VarName = time_str | VarName = arr_str1 | VarName = complex1 | VarName = etc1 | VarName = etc2 | VarName = etc3 | VarName = nest4 | VarListEnd%VarListsEnd
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -