98 Programming Commands
EVENT2 Motion Parameter
ACTION: Returns the state of the trigger input labeled EVNT2 for the selected axis
or sets the trigger polarity and enable, which are used in MOVEHOME,
MOVEREG and FOLMOVEREG cycles.
PROGRAM SYNTAX: EVENT2(axis)=expression
EVENT2=expression1, ... , expression 8
EVENT2(axis, ... , axis)=expression, expression
EVENT2(axis) - used in an expression
REMARKS: Axis specifies the number of the axis (1-8).
The EVENT2 command is used to select the effects of the hardware
signal at the EVNT2 input on the axis card. This input is typically wired
to a switch or sensor. It may be used as a home positioning trigger dur-
ing a MOVEHOME cycle. It also may be used as a position mark reg-
istration trigger during a MOVEREG or FOLMOVEREG cycle. When
used for mark registration, a trigger on EVNT2 will initiate the index
portion of the MOVEREG or FOLMOVEREG cycle.
The EVENT2 triggering for a MOVEHOME or MOVEREG cycle
may be combined with an encoder index pulse input, and is assigned in
the user program Configuration and Setup.
For a MOVEHOME cycle, the EVENT2 command may be used to
set the polarity of the move home trigger. If the of the command is posi-
tive the home trigger occurs when the EVNT2 input becomes active. If
the expression of the command is negative the home trigger occurs
when the EVNT2 input becomes inactive. An EVENT2 home trigger
cannot be disabled using this command.
For a MOVEREG cycle, the EVENT2 command may be used to set
the polarity of the registration trigger. If the expression of the command
is positive the registration trigger occurs when the EVNT2 input be-
comes active. If the expression of the command is negative the regis-
tration trigger occurs when the EVNT2 input becomes inactive.
The EVENT2 trigger for a registration cycle may be disabled by setting
EVENT2=0. A registration trigger may be enabled to either polarity
during a move. It may not, however, be disabled once the cycle has be-
gun.
EXAMPLES: EVENT2(2)=0 ‘disables Event2 as a MOVEREG trigger on axis 2.
EVENT2(2)=1 ‘enables Event2 as an active input trigger on axis 2.
EVENT2(2)=-1 ‘enables Event2 as an inactive input trigger on axis 2.
Comentarios a estos manuales