Baldor mn1854 manual Examples of how to use Built-in Variables

Models: mn1854

1 105
Download 105 pages 58.42 Kb
Page 81
Image 81

Built–in Variables

Some variable names are pre–defined. 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 Built–in 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)

Non–volatile, 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 RS–232 port

Write Only

(1TW)

Scans inputs 1–4 for BCD Digit

Read Only

(2TW)

Scans inputs 1–8 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-

Read Only

 

mand SD)

 

(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 Built–in 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 RS–232 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

6-26 Keypad Programming

MN1854

Page 81
Image 81
Baldor mn1854 manual Examples of how to use Built-in Variables, Variable Name Description of Built-in Variable Type