EIO:CFG_1.0::

#
#	Define Topic: IO Signals	
#
MMC_TOPICS:
-domain_name EIO -domain_type NA -domain_attribute NA	-topic_text_id 17,0


#
#	Define Types: 
#
MMC_TYPE:
#
# IO Units
#
-domain_type EIO_UNIT 		-reconfig -add_f 1	-text_id 17,1 \ 
-attributes_id_hook eiommc_unit_hook -outline_type MMC_EIO_OUTLINE \
-outline_inst_name unit_outline	

#
# User signals
#
-domain_type EIO_USER_SIGNAL 	-reconfig -add_f 1	-text_id 17,2 \
-attributes_id_hook eiommc_sig_hook -outline_type MMC_EIO_OUTLINE \
-outline_inst_name signal_outline

#
# Groups
#
-domain_type EIO_GROUP_PHS 	-reconfig -add_f 1	-text_id 17,3 \
-attributes_id MMC_GROUP_ATTRIBUTE 	-outline_type MMC_EIO_OUTLINE \
-outline_inst_name group_outline

#
# System inputs
#
-domain_type SYSSIG_IN 	 	-reconfig -add_f 1	-text_id 17,4 \
-attributes_id_hook eio_mmc_syssig_in_att -outline_type MMC_EIO_OUTLINE \
-outline_inst_name syssig_in_outline

#
# System outputs
#
-domain_type SYSSIG_OUT  	-reconfig -add_f 1	-text_id 17,5 \
-attributes_id SIG_OUT_ATTRIBUTE 	-outline_type MMC_EIO_OUTLINE \
-outline_inst_name syssig_out_outline

#
# Cross Connections
#
-domain_type EIO_CROSS 		-reconfig -add_f 1	-text_id 17,6 \
-attributes_id SIG_CROSS_ATTRIBUTE 	-outline_type MMC_EIO_OUTLINE \
-outline_inst_name syssig_cross_outline

#
# IO Unit Types
#
-domain_type EIO_UNIT_TYPE           -add_f 0   -text_id 17,7 \
-attributes_id MMC_UNIT_TYPE_ATTR -outline_type MMC_EIO_OUTLINE \
-outline_inst_name unit_type_outline

#
# IO Buses
#
-domain_type EIO_BUS_USER   -reconfig -add_f 0        -text_id 17,87 \
-attributes_id_hook eiommc_bus_hook -outline_type MMC_EIO_OUTLINE \
-outline_inst_name bus_outline

#
#	Define Attributes for signals
#
MMC_DEFAULT_SIG_ATTR = MMC_ATTRIBUTE:
-attribute_id Name  	-present_type SIMPLE 	-text_id 17,8 \
-change_type TEXTVAR 	-char_length 16 -reconfig

-attribute_id Unit  	-present_type SIMPLE 	-text_id 17,9 \
-change_type CHOICE_INSTANCE -choices_type_name EIO_UNIT \
-reconfig

-attribute_id Type  	-present_type SIMPLE 	-text_id 17,10 \
-change_type CHOICE_LIST 	-choices_type_name MMC_IO_TYPES \
-reconfig

-attribute_id Phsig 	-present_type SIMPLE 	-text_id 17,11 \
-change_type INTEGER 	-reconfig

-attribute_id LogMax    -present_type SIMPLE    -text_id 17,12 \
-change_type INTEGER    -reconfig

-attribute_id PhMax     -present_type SIMPLE    -text_id 17,13 \
-change_type INTEGER    -reconfig

-attribute_id LogMin    -present_type SIMPLE    -text_id 17,14 \
-change_type INTEGER    -reconfig

-attribute_id PhMin     -present_type SIMPLE    -text_id 17,15 \
-change_type INTEGER    -reconfig

-attribute_id FiltPas 	-present_type SIMPLE 	-text_id 17,16 \
-change_type INTEGER 	-reconfig

-attribute_id FiltAct 	-present_type SIMPLE 	-text_id 17,17 \
-change_type INTEGER 	-reconfig

-attribute_id Invert  	-present_type SIMPLE 	-text_id 17,18 \
-change_type FKBAR  	-fkbar_id MMC_SIGINVERT_FKBAR -reconfig

-attribute_id Store  	-present_type SIMPLE 	-text_id 17,19 \
-change_type FKBAR  	-fkbar_id MMC_SIGINVERT_FKBAR -reconfig

-attribute_id Access	-present_type SIMPLE 	-text_id 17,82 \
-change_type CHOICE_INSTANCE -choices_type_name EIO_USER_ACCESS \
-reconfig

#
#	Define Group Attributes
#
MMC_GROUP_ATTRIBUTE = MMC_ATTRIBUTE:
-attribute_id Name	-reconfig 	-present_type SIMPLE 	-text_id 17,8 \
-change_type TEXTVAR    -char_length 16

-attribute_id Unit	-reconfig 	-present_type SIMPLE 	-text_id 17,9 \
-change_type CHOICE_INSTANCE    -choices_type_name EIO_UNIT

-attribute_id Type	-reconfig 	-present_type SIMPLE 	-text_id 17,10 \
-change_type FKBAR   -char_length 5  -fkbar_id MMC_GSIGTYPE_FKBAR

-attribute_id Length	-reconfig 	-present_type SIMPLE 	-text_id 17,20 \
-change_type INTEGER

-attribute_id Phsig	-reconfig 	-present_type SIMPLE 	-text_id 17,21 \
-change_type INTEGER

-attribute_id Invert	-reconfig	-present_type SIMPLE 	-text_id 17,18 \
-change_type FKBAR  -fkbar_id MMC_SIGINVERT_FKBAR 

-attribute_id Store	-reconfig	-present_type SIMPLE 	-text_id 17,19 \
-change_type FKBAR  -fkbar_id MMC_SIGINVERT_FKBAR 



#
#	Define System Inputs Attributes for text arguments
#
SIG_IN_ATTRIBUTE = MMC_ATTRIBUTE:
-attribute_id Signal	-reconfig	-present_type SIMPLE 	-text_id 17,8 \
-change_type CHOICE_INSTANCE -choices_type_name EIO_USER_SIGNAL 

-attribute_id Action	-reconfig	-present_type SIMPLE 	-text_id 17,22 \
-change_type CHOICE_LIST -choices_type_name MMC_SYSSIG_IN_ACTION 

-attribute_id Arg1	-reconfig	-present_type SIMPLE 	-text_id 17,23 \
-change_type TEXT -char_length 80 

#
#	Define System Inputs Attributes for FKBAR arguments
#
SIG_IN_MODE_ATTRIBUTE = MMC_ATTRIBUTE:
-attribute_id Signal	-reconfig	-present_type SIMPLE 	-text_id 17,8 \
-change_type CHOICE_INSTANCE -choices_type_name EIO_USER_SIGNAL 

-attribute_id Action	-reconfig	-present_type SIMPLE 	-text_id 17,22 \
-change_type CHOICE_LIST -choices_type_name MMC_SYSSIG_IN_ACTION 

-attribute_id Arg1	-reconfig	-present_type SIMPLE 	-text_id 17,23 \
-change_type FKBAR -fkbar_id SIG_IN_MODE_FKBAR

#
#	Define System Outputs Attributes
#
SIG_OUT_ATTRIBUTE = MMC_ATTRIBUTE:
-attribute_id Signal	-reconfig	-present_type SIMPLE 	-text_id 17,8 \
-change_type CHOICE_INSTANCE -choices_type_name EIO_USER_SIGNAL 

-attribute_id Status	-reconfig 	-present_type SIMPLE 	-text_id 17,24 \
-change_type CHOICE_LIST -choices_type_name MMC_SYSSIG_OUT_STATUS 


#
#	Define Cross Connection Attributes
#
SIG_CROSS_ATTRIBUTE = MMC_ATTRIBUTE:
-attribute_id Lact 	-reconfig	-present_type SIMPLE 	-text_id 17,25 \
-change_type CHOICE_INSTANCE -choices_type_name EIO_USER_SIGNAL 

-attribute_id Lres	-reconfig	-present_type SIMPLE 	-text_id 17,26 \
-change_type CHOICE_INSTANCE -choices_type_name EIO_USER_SIGNAL \


#
#	Outline definitions
#
MMC_EIO_OUTLINE = MMC_OUTLINE:
# dsp_params:  Name
-Name bus_outline		-dsp_parms 1		-header_id 17,88
# dsp_params:  Name, ProductName
-Name unit_type_outline		-dsp_parms 1,3		-header_id 17,27

# dsp_params:	Unit, Address, Type, Bus
-Name unit_outline              -dsp_parms 1,4,2,3      -header_id 17,28 

# dsp_params:	Name, Unit, Type, PhSig
-Name signal_outline 		-dsp_parms 1,2,3,4 	-header_id 17,29

# dsp_params:	Name, Unit, Len, Phsig
-Name group_outline  		-dsp_parms 1,2,4,5 	-header_id 17,30

# dsp_params:	Name, Action
-Name syssig_in_outline   	-dsp_parms 1,2 		-header_id 17,31

# dsp_params:	Name, Status
-Name syssig_out_outline  	-dsp_parms 1,2 		-header_id 17,32

# dsp_params:	From, To
-Name syssig_cross_outline  	-dsp_parms 1,2 		-header_id 17,33


#
#	Function Keys
#
MMC_SIGINVERT_FKBAR = MMC_FKEY:
-fktype SETA -setcode "1" 	-text_id 17,34
-fktype SETA -setcode "0"	-text_id 17,35

MMC_GSIGTYPE_FKBAR = MMC_FKEY:
-fktype SETA -setcode "GI"	-text_id 17,36
-fktype SETA -setcode "GO"	-text_id 17,37

SIG_IN_MODE_FKBAR = MMC_FKEY:
-text_id 1,64 -fktype SETA -setcode CONT
-text_id 1,65 -fktype SETA -setcode CYCLE

BUS_BAUDRATE_FKBAR = MMC_FKEY:
-fktype SETA -setcode "500"	-text_id 17,1003
-fktype SETA -setcode "250"	-text_id 17,1004
-fktype SETA -setcode "125"	-text_id 17,1005

BUS_MASTERENABLED_FKBAR = MMC_FKEY:
-fktype SETA -setcode "1"	-text_id 17,1007
-fktype SETA -setcode "0"	-text_id 17,1008


#
#	Choice Buttons
#
MMC_SYSSIG_IN_ACTION = MMC_CHOICE:
-setcode MotorOn	-text_id 17,38
-setcode MotorOff	-text_id 17,39
-setcode Start		-text_id 17,40
-setcode StartMain	-text_id 17,41
-setcode Stop		-text_id 17,42
-setcode StopCycle	-text_id 17,43
-setcode Interrupt	-text_id 17,44
-setcode LoadStart	-text_id 17,45
-setcode ResetEstop	-text_id 17,46
-setcode ResetError	-text_id 17,47
-setcode MotOnStart	-text_id 17,49
-setcode StopInstr	-text_id 17,50
-setcode SysReset	-text_id 17,51
-setcode AckErrDialog	-text_id 17,81
-setcode QuickStop	-text_id 17,83
-setcode StiffStop	-text_id 17,84
-setcode SoftStop	-text_id 17,99
-setcode "Set I/O In Auto" -text_id 17,97
-setcode "ResetEnChn" -text_id 17,1000

MMC_SYSSIG_OUT_STATUS = MMC_CHOICE:
-setcode MotorOn	-text_id 17,38
-setcode MotorOff	-text_id 17,39
-setcode CycleOn	-text_id 17,52
-setcode EmStop		-text_id 17,53
-setcode AutoOn		-text_id 17,54
-setcode RunchOk	-text_id 17,55
-setcode TCPSpeed	-text_id 17,56
-setcode Error		-text_id 17,57
-setcode MotOnState	-text_id 17,58
-setcode MotOffState	-text_id 17,59
-setcode PFError	-text_id 17,60
-setcode MotSupTrigg	-text_id 17,85
-setcode MotSupOn	-text_id 17,86
-setcode RegainDistError	-text_id 17,91
-setcode TCPSpeedRef	-text_id 17,95
-setcode "Blocked I/O"	-text_id 17,96
-setcode "RobNotMoving"	-text_id 17,1009


MMC_IO_TYPES = MMC_CHOICE:
-setcode DI		-text_id 17,61
-setcode DO		-text_id 17,62
-setcode AI		-text_id 17,63
-setcode AO		-text_id 17,64

#
# Buses
#
MMC_DEFAULT_BUS_ATTR = MMC_ATTRIBUTE:
-attribute_id Name      -present_type SIMPLE -text_id 17,89 \
-change_type NONE -char_length 16

-attribute_id Driver   -present_type SIMPLE -text_id 17,92 \
-change_type NONE -char_length 16

-attribute_id CfgPath   -present_type SIMPLE -text_id 17,93 \
-change_type TEXT -char_length 100 -reconfig

-attribute_id RecoveryTime  -present_type SIMPLE -text_id 17,94 \
-change_type INTEGER 

-attribute_id Baudrate  -present_type SIMPLE -text_id 17,1001 \
-change_type FKBAR -fkbar_id BUS_BAUDRATE_FKBAR

-attribute_id MacId  -present_type SIMPLE -text_id 17,1002 \
-change_type INTEGER  -reconfig

-attribute_id MasterEnabled  -present_type SIMPLE -text_id 17,1006 \
-change_type FKBAR -fkbar_id BUS_MASTERENABLED_FKBAR -reconfig


#
# Unit Types
#
MMC_UNIT_TYPE_ATTR = MMC_ATTRIBUTE:
-attribute_id Name      -present_type SIMPLE -text_id 17,65 \
-change_type NONE -char_length 12 

-attribute_id VendorName	-present_type SIMPLE -text_id 17,66 \
-change_type NONE -char_length 12

-attribute_id ProductName	-present_type SIMPLE -text_id 17,67 \
-change_type NONE -char_length 30

-attribute_id VendorId	-present_type SIMPLE -text_id 17,68 \
-change_type NONE -char_length 12

-attribute_id ProductId	-present_type SIMPLE -text_id 17,69 \
-change_type NONE -char_length 12

-attribute_id DeviceType	-present_type SIMPLE -text_id 17,70 \
-change_type NONE -char_length 12

-attribute_id MajorRev	-present_type SIMPLE -text_id 17,71 \
-change_type NONE -char_length 12

-attribute_id MinorRev	-present_type SIMPLE -text_id 17,72 \
-change_type NONE -char_length 12

-attribute_id MaxDigin	-present_type SIMPLE -text_id 17,73 \
-change_type NONE -char_length 12

-attribute_id MaxDigout	-present_type SIMPLE -text_id 17,74 \
-change_type NONE -char_length 12

-attribute_id MaxAnin	-present_type SIMPLE -text_id 17,75 \
-change_type NONE -char_length 12

-attribute_id MaxAnout	-present_type SIMPLE -text_id 17,76 \
-change_type NONE -char_length 12

#
#
#	Units
#
MMC_DEFAULT_UNIT_ATTR = MMC_ATTRIBUTE:
-attribute_id Name   	-present_type SIMPLE	-text_id 17,9 \
-change_type TEXTVAR -char_length 12 -reconfig

-attribute_id Type   	-present_type SIMPLE	-text_id 17,65 \
-change_type CHOICE_INSTANCE -choices_type_name EIO_UNIT_TYPE \
-reconfig

-attribute_id Bus    	-present_type SIMPLE	-text_id 17,77 \
-change_type CHOICE_INSTANCE -choices_type_name EIO_BUS_USER \
-reconfig

-attribute_id Address 	-present_type SIMPLE	-text_id 17,78 \
-change_type TEXT -char_length 16 -reconfig 

-attribute_id Digin  	-present_type SIMPLE	-text_id 17,73 \
-change_type INTEGER -reconfig

-attribute_id Digout 	-present_type SIMPLE	-text_id 17,74 \
-change_type INTEGER -reconfig

-attribute_id Anin      -present_type SIMPLE    -text_id 17,75 \
-change_type INTEGER -reconfig

-attribute_id Anout     -present_type SIMPLE    -text_id 17,76 \
-change_type INTEGER -reconfig

-attribute_id PollRate 	-present_type SIMPLE	-text_id 17,79 \
-change_type INTEGER -reconfig

-attribute_id Disabled 	-present_type SIMPLE	-text_id 17,80 \
-change_type FKBAR -fkbar_id MMC_SIGINVERT_FKBAR -reconfig

-attribute_id Param   -present_type SIMPLE \
-change_type NONE -alias_type_desc MMC_ATTRIBUTE -reconfig

-attribute_id StoreLogicalState	-present_type SIMPLE 	-text_id 17,98 \
-change_type FKBAR  	-fkbar_id MMC_SIGINVERT_FKBAR -reconfig

