75
Chapter 6 - IDeal
™
Command Reference
which corresponds to the appropriate X and Y coordinates. The following program
would execute the move in the illustration abo ve: VE2 AC.1 DA4,2 GP
The path velocity is 2 user units/sec,path acceleration is 0.1 sec.,and the X,Y posi-
tion would be (4,2).
The GPi syntax is identical to the GOi command.GPi pre-calculates the move and
waits for Input number “i”to activate before executing. For example,GP4 would
pre-calculate the move and wait for input 4 to be active before executing.
Although both axes move during a GP defined move,all GP parameters refer to the
path movement rather than to the individual axis movements.
NOTES ON GP:
GP will work with any velocity and acceleration unit.
The largest possible GP moves are restricted to X 2 + Y2 <= (231 - 1)2 in units of
steps. For example,the longest simultaneous X,Y point move is:
Steps:
DA1518500249,1518500249
User units with resolution 8000:
DA189,812.5311,189,812.5311
User units with resolution 25000: DA60,740.0099,60,740.0099
Commanding moves larger than X2 + Y2 <= (231 - 1)2 will produce unpredictable
results.
The DC command does not recognize an interpolated move as a ‘single’move and
will treat the axes independentl y. Therefore,using a DC during a GP move will
cause unpredictable results unless the user has calculated the necessary values to
preserve the vector move.
GS
Gosub
syntax - GSi and GS[name]
Units:
n/a
Range:
i = 1-199 (1-400 with 30K memory option),[name] =
any legal program name
Default:
n/a
Jumps to program number or name and returns to the calling program when com-
mand processing reaches the EN command in the sub-routine. After the return,
execution continues at the command immediately following the GS.Subroutines
may be nested in the
standar d
firmware up to 16 levels deep.A Goto (GT) will
clear the subroutine stack,preventing future Gosubs from overflowing the stack or
returning to the wrong location.
Example:
DI10 GS[Part A] GO
Run program “Part A”, return and make a 10
unit incremental move.
Содержание B8962
Страница 111: ...109 Chapter 7 Programming with Serial Communication...
Страница 132: ...B8961 and B8962 User Manual 130...
Страница 136: ...B8961 and B8962 User Manual 134 B8961 and B8962 Hardware Connections...
Страница 137: ...135 Chapter 8 Hardware Reference B8961 and B8962 Input and Output Schematics...
Страница 138: ...B8961 and B8962 User Manual 136 Connecting IDC Limit Switches to the B8961 2...
Страница 156: ...B8961 and B8962 User Manual 154...