Heres how to create a dabbel entry for a Mooc "An" Class device. ADD Z:DBNAME("24 char descriptive text",NODNAM, SIB, MMMMMMMM ) Use this line when adding any new dbase name. Use ADD when adding a new device. use MOD when modifying a device. Acnet database name. Use Z: for test devices, T: for tevatron, M: for main ring etc. Acnet Node Name which corisponds to the IP address, assigned by Glen Johnson. Sibling device name. Generally not used. Console mask. Allows this device to be accessed by certain consoles. Use FFFFFFFF to allow all consoles access. SSDNHX READNG (TTNN/MOID/MISC/TTCC) SSDNHX SETTNG (TTNN/MOID/MISC/TTCC) SSDNHX BCNTRL (TTNN/MOID/MISC/TTCC) SSDNHX BASTAT (TTNN/MOID/MISC/TTCC) Sets the SSDN for reading, setting, basic control, and for basic status. All numbers are in hex. Most devices require at least SSDNHX READNG but the others are optional depending upon the device. For a Mooc "An" Class device, the parameters for all 4 will be identical for each device name except there may be a different number of channels for readng, settng, bcntrl, bastat. trunk number assigned by Glenn Johnson node number assigned by Glenn Johnson mooc object Id. Must match OID used in embedded software. misc field. Use 0000 for "An" Class devices. type number aka. class number. Use 08 for "An" Class. channel number 00..FF PRO READNG ( DATSZ, ARYLEN, RATE) PRO SETTNG ( DATSZ, ARYLEN, RATE) PRO BCNTRL ( DATSZ, ARYLEN, RATE) PRO BASTAT ( DATSZ, ARYLEN, RATE) Sets the properties for reading, setting, basic control, and for basic status. All numbers are in hex. Most devices require at least PRO READNG but the others are optional depending upon the device. data size in bytes. Must be 1,2, or 4. max number of bytes. Set this equal to DATSZ if it is not an array device. Set this equal to nElements*DATSZ if it is an array device. frequency that reading is updated on a parameter page in 60Hz tics. Its typically set to 60 which comes out to be 1 second. PDB READNG ( "PRIM","COMM",PXF,CXF,IDL,DS,LS,MC,C1,C2,C3,C4,C5,C6) PDB SETTNG ( "PRIM","COMM",PXF,CXF,IDL,DS,LS,MC,C1,C2,C3,C4,C5,C6) Sets numeric transforms etc. The primary transform is used first when reading raw data. The common transform is used after the primary to place the data into "engineering units." For settings the transforms are worked in reverse order so that the setting sent to the hardware is in its raw form. 4 char primary units text. 4 char common units text. aka. engineering units. primary transform. Use 24 for 68K floats. Use 28 for 68K ints. See the pgm_tools on page D80 for more options. common transform. Use if numeric massageing is necessary. The constants C1..C6 are used with the common xform. See the pgm_tools on page D80 for all of the options. input data length. This should match DATSZ under PRO READNG. decimal notation =0 , scientific notation =1 short display=0 long display=more digits on param page=1 0=this is not a motor control. use for common transform constants if needed. 0 otherwise. PDB BCNTRL(CHOICE,RSET,ON,OFF,POS,NEG) This is used to set the bit patterns for basic control. These bit patterns get sent to the embedded system when a user sets the basic control from a parameter page. The user has a choice of "RESET ON OFF PLUS MINUS" All digits are in hex. You can choose which of the 5 control options to use. 00=none 01=Reset 02=On 04=Off 08=Pos 10=Neg 1F=Use All of em. the bit pattern to be sent to embedded system when user clicks on RESET. Up to 8 hex digits, corrisponding to a 32 bit max field. the bit pattern to be sent to embedded system when user clicks on ON. Up to 8 hex digits, corrisponding to a 32 bit max field. the bit pattern to be sent to embedded system when user clicks on OFF. Up to 8 hex digits, corrisponding to a 32 bit max field. the bit pattern to be sent to embedded system when user clicks on PLUS. Up to 8 hex digits, corrisponding to a 32 bit max field. the bit pattern to be sent to embedded system when user clicks on MINUS. Up to 8 hex digits, corrisponding to a 32 bit max field. PDB BASTAT( XZ, 0I, ON, RDY, REMOTE, POS, DL,SPC,SPC,SPC,SPC) Use hex digits for everything here. 0=don't use special chars. 1=use special chars for ON. 2=special chars for OFF. 4=special chars for REMOTE. 8=special chars for POS. F=special chars for all 4. 0=don't use any fields. 1=use field for ON. 2=use OFF field. 4=use REMOTE field. 8=use POS field F=use all 4 fields. <0I> invert the data before applying the Mask. 01=invert ON 02=invert RDY, 04=invert POS, 0F=invert all 4. Mask which gets anded with the data to cause the ON character to apear in the basic status area of the parameter page. Up to 8 hex digits,corrisponding to a 32 bit max field. Mask which gets anded with the data to cause the RDY character to apear in the basic status area of the parameter page. Up to 8 hex digits,corrisponding to a 32 bit max field. Mask which gets anded with the data to cause the REMOTE character to apear in the basic status area of the parameter page. Up to 8 hex digits,corrisponding to a 32 bit max field. Mask which gets anded with the data to cause the POS character to apear in the basic status area of the parameter page. Up to 8 hex digits,corrisponding to a 32 bit max field.
data length in bytes. Must be 1,2, or 4. special characters which will appear on the parameter page. If the digit allows special character use. If is zero, you get the standard chars which are OFF=* ON=. TRIP=T RDY=. LOCAL=L REMOTE=. NEG=- POS=. If is set for special character use, then SPC is 8 hex digits which denotes on color,on ascii char, off color, off ascii char. Such as 04300231 which means red "0" and green "1". PRO EXTEXT(A1,BIT,0CLR,"0TEXT",1CLR, "1TEXT","24 Char Descriptive Text", A1,BIT,0CLR,"0TEXT",1CLR, "1TEXT","24 Char Descriptive Text", A1,BIT,0CLR,"0TEXT",1CLR, "1TEXT","24 Char Descriptive Text") This is the extended text for basic control. This text apears on page S53. This command contains one line per bit. You can keep adding lines for all bits used in the basic status. always 1 the bit number 0..31 that the text applies to. <0CLR> text color when the bit is 0 typicaly use 4=red. <0TEXT> 7 char text used when bit is 0. <1CLR> text color when the bit is 1 typicaly use 2=green. <1TEXT> 7 char text used when bit is 1. Here is an example: ADD Z:JFFLT0 ( "JEFTST Float chan 0 ", JEFTST , , FFFFFFFF ) SSDNHX READNG (0A1B/001E/0000/0800) PRO READNG ( 4, 12, 60) PDB READNG ( " ", " ", 24, 0, 4, 0, 1, 0, 0, 0) SSDNHX SETTNG (0A1B/001E/0000/0800) PRO SETTNG ( 4, 12, 60) PDB SETTNG ( " ", " ", 24, 40, 4, 0, 1, 0, 1, 1, 0, 0, 9999999,1) SSDNHX BCNTRL (0A1B/001E/0000/0800) PRO BCNTRL ( 4, 12, 60) PDB BCNTRL ( 1F, 00000000, 00000008, 00000004, 00000002, 0000001) SSDNHX BASTAT (0A1B/001E/0000/0800) PRO BASTAT ( 4, 12, 60) PDB BASTAT ( FF, 00, 00000008, 00000004, 00000002, 00000001, 4, 04300231, 04300231, 04300231, 04300231) PRO EXTEXT( 1,0,4, "OFF ", 2, "ON ","BIT 0 ................. ", 1,1,4, "OFF ", 2, "ON ","BIT 1 ................. ", 1,2,4, "OFF ", 2, "ON ","BIT 2 ................. ", 1,3,4, "OFF ", 2, "ON ","BIT 3 ................. ")