Interrogation Flashcards
ID
Identity Configuration (Identify)
The ID command is used to query the controller for the hardware configuration and factory programming
LA
List Arrays
1. The LA command returns a list of all arrays in memory.
2. The size of each array will be included next to each array name in square brackets.
* The listing will be in alphabetical order
LL
List Labels
1. The LL command returns a listing of all of the program labels in memory.
2. The LL command label listing will be in alphabetical order.
3. The LL command returns all of the program labels in memory and their associated line numbers.
LS
List
1. The LS command returns a listing of the programs in memory
2. n0 < n1 must always be true
3. If n0 or n1 is omitted, default vaules are used.
4. n0 and n1 can
LV
List Variable
1. The LV command returns a listing of all of the program variables in memory.
2. Listing is done in alphabetical order
3. Use the -UL operand for total number of variables available for your controller.
* Issuing this command will pause the output of the Data Recorder until the command is completed.
MG
Message
1. The MG command is used to send strings, operands, variables, and array values to a specified destination.
2. Multiple strings, variables, and ASCII characters may be used; each must be separated by a comma.
3. Solicited Messages
* From a host terminal, application code, or device, sending the MG command will return with the requested information.
* This is known as a solicited command, because the host sends the command and expects a response.
4. Unsolicited Messages
* From embedded DMC code, the MG command will send an unsolicited, asynchronous message from the controller to the host. This can be used to alert an operator, send instructions, or return a variable value.
* This is known as an unsolicited command becuase the host is not explicitly requesting it.
* The CW command controls the ASCII format of all unsolicited messages.
* Unsolicited messages can fo to any of the Ethernet handles or serial ports
* The CF command sets the default communication port for routing unsolicited messaged.
Formatting
* Formatters can be placed after each argument to modify how it is printed
* {Fm.n} Display variable in decimal format with m digits to left of decimal and n to the right.
* {Zm.n} Same as above but supresses leading zeros
* {$m.n} Display variable as a string in hexadecimal format with m digits to the left of decimal and n to the right.
* {Sn} Display variable as a string of length n, where n is 1 through 6. If n is greater than the length of the string strored in the variable, null chars (0000) will be inserted at the end of the string.
* {N} Suppress carriage return at the end of the message.
QH
Query Hall State
1. The QH command transmits the state of the Hall sensor inputs.
2. The value is decimal and represented by a 3 bit value
3. QH should return a value from 1 through 6 as valid Hall combinations. A value of 0 or 7 is invalid when using Hall sensors and will generate a Hall error with OE set.
The valid sequence for Hall inputs is a greycode output (only one bit changes at a time * 1,3,2,6,4,5 or 5,4,6,2,3,1
QR
I/O Data Record
1. The QR command causes the controller to return a record of information regarding controller status.
2. This status information includes 4 bytes of header information and specific blocks of information as specified by the command arguments.
QS
Error Magnitude
1. The QS command reports the magnitude of error, in drive step counts, for axes in Stepper Position Maintenance mode.
2. A step count is directly proportional to the micro-stepping resolution of the stepper drive.
3. The result of QS is modularized so that result is never greater than 1/2 the revolution of the stepper motor. (Largest possible QS result = 0.5YAYB)
4. If present in ebedded code, command execution will jump to #POSERR when QS is equal to 3 full motor steps (-YAm*3)
5. -QSm contains the error magnitude in drive step counts for the specified axis
QU
Upload Array
1. The QU command transfer array data from the contoller to a host computer.
2. The QU requires that the array name be specified along with the first element of the array and last element of the array.
3. Array name must be a valid, dimensioned array name followed by empty [] brackets
4. The uploaded array will be followed by a <.control.>Z as an end text marker.
5. Issuing this command will pause the output of the Data Record until the command is completed.
QZ
Return Data Record Information
1. The QZ command is an interrogation command that returns information regarding the data record.
2. The controllers response to this command will be the return of 4 integers separated by commas.
3. The four fields returned by QZ represent the following:
* First field returns the number of axes.
* Second field returns the number of bytes to be transferred for general status.
* Third field returns the number of bytes to be transferrd for coordinated move status.
* Fourth field returns the number of bytes to be transferred for axis specific information.
QS
Error Magnitude
1. The QS command reports the magnitude of error, in drive step counts, for axes in Stepper Position Maintenance mode.
2. A step count is directly proportional to the micro-stepping resolution of the stepper drive.
3. The results of QS is modularized so that result is never greater than 1/2 the revolution of the stepper motor.
* Largest possible QS result = 0.5 x YA x YB
4. If present in embedded code, command execution will jump to #POSERR when QS is equal to 3 full motor steps (-YAm x 3)
5. QSm=? will return the current error for axis m
RL
Report Latched Position
1. The RL command will return the last position captured by the latch.
2. The latch must first be armed by the AL command and then the appropriate input must be activated.
3. Each axis uses a specific general input for the latch input
4. The armed state of the latch can be configured using the CN command.
5. The Latch Function works with the main or auxillary encoder
RP
Reference Position
1. The RP command returns the commanded reference position of the motor(s).
2. RP command is useful when operating step motors since it provides the commanded position in steps when operating in stepper mode.
3. The relationship between RP, TP, and TE: TE equals the difference between the reference position, RP, and the actual position, TP.
* TE = RP - TP
4. -RPm contains the commanded reference position for the specified axis.
SC
Stop Code
1. The Stop Code command returns a number indicating why a motor has stopped.
2. When SC is issued, the controller responds with a number for the axis queried.