B8961 and B8962 User Manual
76
GT
Go to Program
syntax - GTi or GT[name]
Units:
n/a
Range:
i = 1-199 (1-400 with 30K memory option),[name] =
any legal program name
Default:
n/a
GT branches to the program number or name specified.All subsequent commands
in the calling program are ignored. Nested loops and subroutines calls are cleared
by a GT command.
Example:
IF10 GT[PART A] EB
IF input 1 is on and input 2 is off, jump to
program “Part A”
IF01 GT20 GT30 EB EN
IF input 1 is off and input 2 is on, run program
20.Program 30 will never run.Use the GS
command if you want to return to this program
and
goto
program 30.
IF
If
syntax - IF (See Below)
Units:
n/a
Range:
see below
Default:
n/a
Syntax(s):
IFi,xx...
IFxx... (assumes first input is input 1)
IF (mathematical expression) or expressions (2)
Range:
i = starting input number, 1-8
x = 0;input high
x = 1;input low (grounded)
x =
anything else
(input level don’t care)
expression = any valid expression (defined in math and
variables section).
Allows the conditional execution of a block of commands based on the evaluation
of an expression or input state.If the expression or input state is TRUE,the com-
mands between the IF and the EB are executed.If FALSE, execution continues with
the command following the EB.An IF statement should not be confused with a WT
statement.An IF statement evaluates,true or false,based on the conditions that the
SmartDrive sees at the instant the command is processed. A WT statement pauses
command processing until the condition is true.
Note: An End of Block (EB) command must be used with every IF com-
mand.
IF blocks can be nested up to 16 levels deep.
To increase flexibility (primarily with programmable logic controllers or PLCs) the
IF command allows you to use configured inputs in the command.To help prevent
this added flexibility from causing programming confusion, you can specify any
character as an input (x).This allows you to self-document your IF statements. For
example,assume you configured input #3 as a “JOG SPEED”input.Programming
such as “IF01J10”can help remind you that you are already using input #3 as “JOG
SPEED”.
Содержание B8961
Страница 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...