Typical Programming Examples
The following program examples will show how the IDeal command language can
be used to perform simple tasks.There are more extensive and elaborate example
programs in the DEMOS.idc file that came with your Application Developer disk
set.
To aid your program documentation,comments can be placed in brackets {com-
ment}.These comments are stripped out of the program as it is downloaded to
help conserve memory in the control. Files should be saved BEFORE downloading
for documentation purposes.
Example: DI10,2 GO
{Moves to load position}
DI15,15 GO
{Moves to unload position}
To create a Message and input a Variable
[GET PARTS]
{Name the subroutine}
MS1,””
Clears the display
MS1,”How many?:”
Writes string beginning at character 1,top line
IV12,(PIECES)
Waits at 12th character for the # of pieces
MS1,””
Clears the display
MS1,”How long?:”
Writes string beginning at character 1,top line
IV12,(LENGTH)
Waits at 12th character for the length
LP(PIECES)
Loops the number of pieces entered
DI(LENGTH)
Moves the length entered
GO EB
Creating an Operator Menu
(see the FK command description for details)
MS1,””
Clears keypad screen
MS21,”PART1 PART2 PART3”
Writes a message above function keys
FK1,2,3
Waits for a Function Key to be pressed
(FKEY)=(FKEY)+50
Add an offset to FKEY
GT(FKEY)
Goto program #51,52,or 53.(50 + 1,2,or 3)
Fast In, Slow Feed Move
(Using the Distance to Change (
DC
) command)
AC.05
Set acceleration
DE.09
Set deceleration
VE50
Set first velocity
DA6
Set
total
move distance
DC5.5
Set point where you want to change speed
VE5
Set second speed
GO
Start the move profile
B8961 and B8962 User Manual
58
Summary of Contents for B8961
Page 111: ...109 Chapter 7 Programming with Serial Communication...
Page 132: ...B8961 and B8962 User Manual 130...
Page 136: ...B8961 and B8962 User Manual 134 B8961 and B8962 Hardware Connections...
Page 137: ...135 Chapter 8 Hardware Reference B8961 and B8962 Input and Output Schematics...
Page 138: ...B8961 and B8962 User Manual 136 Connecting IDC Limit Switches to the B8961 2...
Page 156: ...B8961 and B8962 User Manual 154...