The text of a manual · part 24 of 28
6400 PSK Reference Manual, pages 231 to 240
Pages 231 to 240 of 272
The original document is the PDF (1.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Intermec 6400
Page 231
Configuration Command Reference
7
Preamble (continued) Example:
You want to set a preamble that includes quotation marks. Enter the preamble by scanning this full ASCII bar code label: Set Preamble to “B”
*/D/KAD/B/B/BB/B/B/B* *$+AD"""B"""*
You must enclose the data within quotation marks and precede each quotation mark with another quotation mark so that the quotation marks are not treated as the end of the data. PSK Example:
im_command (“$+ADB”,5); will set the preamble to B.
Start of Message (SOM) Purpose:
SOM is the first character in a message sent to or received from the host computer through the 6400’s serial port. SOM cannot equal the same value that is set for EOM. You cannot set SOM to any of these values: • • • • •
AFF (ACK) DLE NEG (NAK) Poll RES (EOT)
• • • •
REQ (ENQ) SEL XOFF XON
Note: Before you can enable SOM, you must configure the EOM command.
Syntax:
PEdata An acceptable value for data is any ASCII character. No data will disable SOM.
Default:
\x02 (hexadecimal value for STX)
Scan:
To disable SOM, scan this bar code: Disable SOM
*$+PE* *$+PE*
7-29
Page 232
6400 PSK Reference Manual
Start of Message (SOM) (continued) Or:
To set SOM to an ASCII character: 1. Scan this bar code: Enter Accumulate Mode / Set SOM
*+/$+PE* *+/$+PE*
2. Scan a bar code for data from the “Full ASCII Table” in Appendix C. 3. Scan this bar code: Exit Accumulate Mode
*-/* *-/*
PSK Example:
im_command (“$+PE\x02”,5); will set SOM to STX.
Stop Bits Purpose:
Sets the number of stop bits on the serial port.
Syntax:
ICdata Acceptable values for data are: 1 2
Default: Scan:
1 stop bit 2 stop bits
1 stop bit One of these bar codes: 1 Stop Bit
2 Stop Bits
*$+IC1*
*$+IC2*
*$+IC1*
PSK Example:
im_command (“$+IC2”,5); will set serial port to 2 stop bits.
7-30
*$+IC2*
Page 233
Configuration Command Reference
7
Time and Date Purpose:
Sets the time and date on the 6400.
Syntax:
DBdata Acceptable values for data are 12 digits corresponding to: yy mm dd hh mm ss
Default: Scan:
00-99 01-12 01-31 01-12 00-59 00-59
Year Month of the year Day of the month Hour Minutes Seconds
920101120000 To set the time and date: 1. Scan this bar code: Enter Accumulate Mode / Set Time and Date
*+/$+DB* *+/$+DB*
2. Scan a numeric value for each digit from these bar codes:
*0*
*1*
*2*
*3*
*0*
*2*
*4* *4*
*6* *6*
*8* *8*
*1*
*3*
*5*
*5*
*7*
*7*
*9*
*9*
7-31
Page 234
6400 PSK Reference Manual
Time and Date (continued) 3. Scan this bar code: Exit Accumulate Mode
*-/* *-/*
PSK Example:
im_command (“$+DB011225010101”,16); will set the date to December 25, 2001.
Time in Seconds Purpose:
If you enable the Append Time command, you can enable the Time in Seconds command to append the seconds to each transaction transmitted from the 6400. To append the time in hours and minutes, disable the Time in Seconds command.
Syntax:
DAdata Acceptable values for data are: 0 1
Default: Scan:
Disabled Enabled
Disabled One of these bar codes: Disable Time in Seconds
*$+DA0* *$+DA0*
Enable Time in Seconds
*$+DA1* *$+DA1*
PSK Example:
im_command (“$+DA1”,5); will enable time in seconds.
7-32
Page 235
Configuration Command Reference
7
UPC/EAN Purpose:
Enables or disables decoding of UPC-A, UPC-E, EAN-8 and EAN-13. When enabled, supplementals are auto-detected and are transmitted. UPC Preamble of System and Country Codes are detected and transmitted. Check digits for UPC-A and UPC-E are detected and transmitted. The 6 digits of UPC-E are expanded into a UPC-A 12-digit code.
Syntax:
CEdata Acceptable values for data are four, five, six, or seven digits. The first digit must be 0, 1, or 2. The other digits must be 0 or 1. 0000 0111
Default: Note:
Disabled Enabled
Enabled If any of the first four digits are non-zero (and in the valid range), UPC/EAN decoding is enabled. If any of the last three digits is included, they are ignored. All digits must be in the valid ranges. Otherwise, the command is invalid and has no effect. For example, $+CE2010010 enables decoding, but $+CE012111 is invalid because the third digit is 2, so the command has no effect.
Scan:
To disable UPC/EAN, scan this bar code: Disable UPC/EAN
*$+CE0000* *$+CE0000*
To enable UPC/EAN, scan this bar code: Enable UPC/EAN
*$+CE1000* *$+CE1000*
PSK Example:
im_command (“$+CE1000”,8); will enable UPC/EAN and disallow supplementals.
7-33
Page 236
blank
Page 237
nugget
39 helconital
A Status Codes
Page 238
39 helconital nugget blank
Page 239
Status Codes
A
This appendix lists the status code hex values and their meanings and contains a table of the ASCII character set and ASCII control characters.
Using the Status Code Return Values Most of the PSK functions return status codes. You can use the codes to test for error conditions that your application will act upon. How you test for the status codes depends on the complexity of the function returning the status and your application needs. In most cases, you can use the status code macros discussed in Chapter 2, “Programming Guidelines,” to determine success or failure. In other cases, you can check for the exact status code value. The next table lists the status code return values and the error message text provided by im_message. The status codes are in hex. Note: The status codes are IM_USHORT (unsigned short) values.
6400 Status Code Return Values Status Code
Message Text
0x000
Successful operation (IM_SUCCESS or IM_OK)
0x051
Response larger than buffer
0x052
Invalid command
0x053
Set attribute with bad value
0x054
Write to read-only attribute Attempted to write a value to a read-only attribute
0x055
General error not covered
0x056
Incorrect parameter or string length
0x057
Queue or pool empty
0x058
Action not permitted from this origin
0x059
Indicates that a DLE character has been found and must be removed from the input string
0x05A
During config. parsing, a digit was expected While parsing a configuration command, expected a digit but encountered another value
0x060
Queue is full
0x061
UDP+: Buffer too large to send
0x062
UDP+: NULL buffer was passed
A-3
Page 240
6400 PSK Reference Manual
6400 Status Code Return Values (continued) Status Code
Message Text
0x063
UDP+: Msg received bigger than buffer
0x064
UDP+: Msg already transmitted
0x065
UDP+: Invalid param block
0x066
Network is inactive or improperly configured
0x067
Network control block pointer is null
0x068
Data pointer is null or data length is invalid
0x069
Data length exceeds 1024
0x06A
Send buffer contains a previous application message
0x06B
Incorrect RF configuration
0x070
The Ninit usnet call failed
0x071
The Nportinit usnet call failed
0x072
The Nterm usnet call failed
0x073
The Portterm usnet call failed
0x074
The Nopen usnet call failed
0x075
The Nclose usnet call failed
0x076
The Nread usnet call failed
0x077
The Nwrite usnet call failed
0x078
Invalid group event
0x079
Network PM failed
0x07A
Invalid send buffer
0x07B
The send buff is not empty
0x07C
A failure occurred in udp timer
0x07D
Maximum number of bad sequence numbers has occurred. Possible duplicate IP address in network.
0x07E
Could not connect to controller
0x080
File open failed
0x081
Read or Write request failed
0x082
The getbuf usnet call failed
0x083
Data or ACK receive failed
0x084
File write failed
0x085
File close failed
0x0A1
Invalid sub-function request
A-4