➄
Basic 6250 Features
59
Example
Command
Description
>
INFNC
Query status of all inputs; response indicating default conditions is:
*INFNC1-A NO FUNCTION INPUT - STATUS OFF
*INFNC2-A NO FUNCTION INPUT - STATUS OFF
(response continues until all 26 inputs are reported)
>
INFNC1
Query status of input #1; response indicating default conditions is:
*INFNC1-A NO FUNCTION INPUT - STATUS OFF
>
INFNC1-D
Change input #1 to function as a Stop input
>
INFNC1
Query status of input #1; response should be now be:
*INFNC1-D STOP INPUT - STATUS OFF
>
TIN
Query binary status report of all inputs; response indicating default
conditions is:
*TINØØØØ_ØØØØ_ØØØØ_ØØØØ_ØØØØ_ØØØØ_ØØ
Input Debounce
Time
Using the Input Debounce Time (
INDEB
) command, you can change the input debounce time
for all 24 general-purpose inputs (one debounce time for all 24), or you can assign a unique
debounce time to each of the 2 trigger inputs.
General-Purpose Input Debounce: The input debounce time for the 24 general-purpose inputs is
the period of time that the input must be held in a certain state before the 6250 recognizes
it. This directly affects the rate at which the inputs can change state and be recognized.
Trigger Input Debounce: For trigger inputs, the debounce time is the time required between a
trigger's initial active transition and its secondary active transition. This allows rapid
recognition of a trigger, but prevents subsequent bouncing of the input from causing a false
position capture or registration move.
The
INDEB
command syntax is
INDEB<i>,<i>
. The first
<i>
is the input number and the
second
<i>
is the debounce time in even increments of milliseconds (ms). The debounce time
range is 1 - 250 ms. The default debounce time is 4 ms for the 24 general-purpose inputs, and
24 ms for the 2 trigger inputs (
TRG-A
&
TRG-B
). If the first
<i>
is in the range 1 - 24, the
specified debounce time is assigned to all 24 general-purpose inputs. If the first
<i>
is 25 or
26, the specified debounce is assigned only to the specified trigger input.
For example, the
INDEB5,6
command assigns a debounce time of 6 ms to all 24 general-
purpose inputs. The
INDEB26,12
command assigns a debounce time of 12 ms only to
input #26, which is trigger B (
TRG-B
).
No Function
(
INFNCi-A
)
When an input is defined as a No Function input (default function), the input is used as a standard
input. You can then use this input to synchronize or trigger program events. To view the current
state of the inputs, use the
TIN
command. To use the state of the outputs as a basis for
conditional branching or looping statements (
IF
,
REPEAT
,
WHILE
, etc.), use the
[
IN
]
command (refer to the Conditional Looping and Branching section in Chapter 7 for details).
Example
Command
Description
>
DEF prog1
Begin definition of program
prog1
-
INFEN1
Enable input functions
-
INFNC1-A
No function for input 1
-
INFNC2-A
No function for input 2
-
INFNC3-D
Input 3 is a stop input
-
INFNC4-A
No function for input 4
-
A1Ø
Set acceleration
-
V1Ø
Set velocity
-
D4ØØØ
Set distance
-
WAIT(IN=b1XX1)
Wait for input 1 and 4
-
GO1
Initiate motion
-
IF(IN=bX1)
If input 2
-
TPE
Transfer motor position
-
NIF
End
IF
statement
-
END
End
prog1
>
RUN prog1
Initiate program
prog1
BCD Program
Select
(
INFNCi-B
)
Inputs can be defined as BCD program select inputs. This allows you to execute defined
programs (
DEF
command) by activating the program select inputs. Program select inputs are
assigned BCD weights. The table below shows the BCD weights of the 6250's inputs when
inputs 1- 8
are configured as program select inputs. The inputs are weighted with the least
weight on the smallest numbered input.
Input
BCD Weight
Input 1
1