sets up the trigger mechanism for the RECORD function. RECORD must be set up before a RECTRIG command is issued. Four parameters are required to set up RECTRIG: Mode, Level, Location, and Direction.
1. MODE is a string variable that specifies the parameter that will be used to trigger recording. Mode can be a variable name or a triggering condition. Mode determines what other parameters must be entered in order to completely set up the trigger. Mode must be preceded by a double-quote when entered, as shown in the following table, which tells what other parameters are required (LEVel, LOCation, and DIRection) depending upon the selected Mode.
2. LEVEL specifies the value that the variable defined by Mode must reach for recording to begin.
3. LOCATION specifies how many data points to save before the trigger in the Recording buffer (see the RECORD command for a description of the 1024 data points that are available). When recorded data is retrieved and displayed, the trigger point’s location in the 1024-point buffer will be at the place specified by Location.
4. DIRECTION has two meanings depending upon the type of Mode
parameter that is used. For Mode variables (PRD, IA, IC, etc. -
see
below), it defines the direction the variable value must be changing
when it
crosses Level in order to trigger recording (1 = increasing, 0 =
decreasing). For Mode switch inputs (CW, CCW, etc. - see below)
it
defines the logic level the input must achieve in order to trigger
recording (1
= HI, 0 = LOW).
|
Required RECTRIG Parameters Based on MODE Parameter |
||||
|
MODE |
DESCRIPTION |
Lev |
Loc |
Dir |
|
|
|
|
|
|
|
"IA |
Trigger on Phase A Current |
Ö |
Ö |
Ö |
|
"IC |
Trigger on Phase C Current |
Ö |
Ö |
Ö |
|
"ICMD |
Trigger on Current Cmd |
Ö |
Ö |
Ö |
|
"PCMD* |
Trigger on Position Cmd |
Ö |
Ö |
Ö |
|
"PFB* |
Trigger on Position Feedback |
Ö |
Ö |
Ö |
|
"PRD |
Trigger on PRD |
Ö |
Ö |
Ö |
|
"V |
Trigger on Velocity |
Ö |
Ö |
Ö |
|
"VCMD |
Trigger on Velocity Cmd |
Ö |
Ö |
Ö |
|
|
|
|
|
|
|
"CCW |
Trigger on CCWLIM Sw |
X |
Ö |
Ö |
|
"CW |
Trigger on CWLIM Sw |
X |
Ö |
Ö |
|
"IN1* |
Trigger on IN1 input |
X |
Ö |
Ö |
|
"IN2* |
Trigger on IN2 input |
X |
Ö |
Ö |
|
"IN3* |
Trigger on IN3 input |
X |
Ö |
Ö |
|
"O1* |
Trigger on O1 Output |
X |
Ö |
Ö |
|
"RMT |
Trigger on REMOTE Input |
X |
Ö |
Ö |
|
|
|
|
|
|
|
"CMD |
Trigger on Next Command |
X |
Ö |
X |
|
"IMM |
Trigger Immediately |
X |
X |
X |
|
|
|
|
|
|
* = firmware versions 3.2.0 and later
Ö
= Required
Parameter
X
=
Don’t care; something must be entered to
make the
command work, but it doesn’t matter what
is entered.
Syntax: RECTRIG [mode] [level]
[location] [direction]
Range: Mode = see table above
Level = depends upon the mode variable
(range of PRD levels is 0-65535, all others are -32768 to
32767)
Location = 0 - 1023
Direction = 0 or 1
Firmware Versions: all
Type: variable (R/W) Range: see above
Units: see above Default: dir=1, loc=0, level=0
Opmodes: all Drive Status: en/dis EEPROM: no