Baldor mn1854 Power Screwdriver User Manual


 
6-26 Keypad Programming MN1854
Builtin Variables
Some variable names are predefined. They can be used in expressions, to set
voltages, to test conditions, or to display information to the keypad display or an
external serial device.
Variable Name Description of Builtin Variable Type
(AI1) to (AI6) Analog Inputs 1 through 6 Read Only
(AROWREL) Current status of any of the four arrow keys Read Only
(CPOS1) (CPOS2) Commanded position of axis 1 or 2 Read Only
(EPOS1) (EPOS2) Encoder position of axis 1 or 2 Read Only
(VEL1) (VEL2) Commanded velocity of axis 1 or 2 Read Only
(POS1) (POS2) Current Position of axis 1 or 2 Read Only
(#F1) thru (#F50) Nonvolatile, limited use, user system variables Read/Limited Write
(FKEY) Value of Function Key pressed Read Only
(LASTKEY) Value of last Function key pressed Read Only
(TERM) Sends variable out RS232 port Write Only
(1TW) Scans inputs 14 for BCD Digit Read Only
(2TW) Scans inputs 18 for BCD Digit Read Only
(TIME) Elapsed Time (ms) since power up or since reset Read Only
(CRCS) Value of the EEPROM setup checksum Read Only
(CRCP) Value of the EEPROM program checksum Read Only
(SA1) (SA2) Integer value of the status of axis 1 or 2 (SeeRS232 command SA) Read Only
(SD1) (SD2) Integer value of the drive status of axis 1 or 2 (See RS232 com-
mand SD)
Read Only
(SS) Integer value of the system status (See RS232 command SS) Read Only
(INT98CTRL) Enables/disables (ARM INT98) trigger option Read and Write
(ARM INT98) Enables/disables INT98 input if (INT98CTRL) is enabled Read and Write
Examples of how to use Builtin Variables
(PIECES)=10 Assigns 10 to variable
(SPEED)=(AI12)*(VEL SCALE) Speed = analog input times a scalar
MS21,Enter Length IV32,(LENGTH) Prompts user and gets feed length
VE(SPEED) Sets velocity to value in variable
MS1,(POS2) Displays current position of axis 2 on keypad screen
(TERM)=(POS1) Sends the current position of axis 1 out the RS232 port of the
Smart Drive
(TEMPERATURE)=(AI9) Reads in temperature from an analog input
(AO15)=4012 Sets the analog output to 4012
(#F1)=(PIECES) Stores the value of Pieces in FLASH memory variable #F1