[Move] VE4 DI10 OT01 GO OT10

Example of “Hosted” Mode

 

Program

 

 

 

In the program [Move], the maximum move velocity is set to 4, the command

 

incremental distance is set to 10, output 1 and output 2 are turned off and on

 

simultaneously, axis one then moves 10 units. After axis one stops moving, output

 

1 is turned on and output 2 is turned off. These changes of outputs 1 and 2 occur

 

at the same time.

 

 

The flow of the program is controlled with WT (wait for an event or condition to

 

occur), TD (wait for a pre–set amount of time to elapse), and IF (if a certain

 

condition is true at this instant, then execute a block of commands) statements.

 

External controllers such as PLC and computers can be coordinated by the digital

 

outputs and ASCII serial commands. The commands that can be entered from the

 

keypad and used in a program are listed in Table 6-1.

Variables

Memory space allows for up to 100 variables. All variables are stored as fixed

 

point numbers. All variables are global. All standard variables are volatile, though

 

non–volatile variables are available as well. Variables can be used in many parts

 

of the program, such as:

 

 

S

Arithmetic

 

 

S

Conditional Expressions

 

 

S

Loop Counts

 

 

S

Distance and velocity commands

 

 

S

Set values

 

 

S

Set command values or parameters

 

S

Set analog signals

 

 

S

Read analog or temperature input

 

 

S

Display information such as position or velocity

 

S

Any place that a number can be used, a variable can be used

Variable Names

Descriptive variable names can be assigned, instead of V1, V2, etc. Variable names can be up to 14 characters, but the first 10 characters must be unique. A name can contain other printable ASCII characters, such as numbers, underscores, exclamation points, even spaces. Upper and lower case characters are supported within variable names, and these variable names are case sensitive. ASCII control characters such as LF and CR are not supported. All variables must be enclosed in parentheses, (variable name). Parentheses are not legal variable characters.

MN1853

Keypad Programming 6-25

Page 84
Image 84
Baldor MIN1853 manual Variables, Example of Hosted Mode, Program, Variable Names