The text of a manual · part 5 of 15
FMT1000 Series Programmer's Guide: Chapter 2 I/O System Programming, pages 41 to 50
Pages 41 to 50 of 142, from FMT1000 Series Programmer's Guide
The original document is the PDF (965 KB). 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 Symbol FMT-1020
Page 41
I/O System Programming
SAT, RAT – Set and Return Aux Comm Response Tag Format SAT <string>
Length: 1
Summary Sets a unique ID tag to prefix all input from the auxiliary communications port.
Returns Aux tag string, 1 character.
Description The I/O processor can route input via several devices. On occasion, input from several physical devices may be routed to the same system input port. For example, both the auxiliary serial communications port and the peripheral bar code port can send their data to the keyboard buffer. This tag is a prefix which is added to the input from a given physical device to identify the source of the input.
Example rem echo rem rem rem rem rem
Set aux comm response tag to 'A' SATA > com2 The output from the RS-232 auxiliary port now has 'A' as a tag. If the data 'Hi There' is received, the string 'AHi There' will be forwarded to the CPU.
2-21
Page 42
FMT1000 Series Programmer’s Guide
SAP, RAP – Set and Return Aux Response Prefix Format SAP <string>
Max length: 16
Summary Sets the string to be transmitted before each response to an Aux Comm input operation.
Returns Response Prefix, string of at most 16 bytes.
Description This I/O processor command allows a standard prefix to be prepended to the response to a string of characters input to the auxiliary serial RS-232 port. There is no factory default for this command, and it will not be reset using the SFD set factory defaults command.
Example rem echo rem rem rem
2-22
Set aux response prefix to '1234' SAP1234 > com2 If the message: 'Hi There' is received, the string '1234Hi There' will be forwarded to the CPU.
Page 43
I/O System Programming
SAS, RAS – Set and Return Aux Response Suffix Format SAS <string>
Max length: 16
Summary Sets the string to be appended to the response to each auxiliary comm port input or command reply.
Returns Response suffix, string of at most 16 bytes.
Description This I/O processor command allows a standard suffix to be sent after the response to each line input to the auxiliary serial RS-232 port, but before the termination string specified by the autoenter mode, if any. There is no factory default for this command, and it will not be reset using the SFD set factory defaults command.
Example rem Set aux response suffix to '5678' echo SAS5678 > com2 rem If the message: 'Hi There' is received, rem the string 'Hi There5678' will be rem forwarded to the CPU.
2-23
Page 44
FMT1000 Series Programmer’s Guide
SEA, REA – Set and Return Aux Response AutoEnter Mode Format SEA <0-3>
0=Off * 1=CR (carriage return) 2=CR/LF (carriage return/line feed) 3=Tab
Summary Sets the type of terminating characters for each response caused by data input via the RS-232 auxiliary port. This setting is preserved in EEPROM.
Returns AutoEnter mode flag, integer 0-3.
Description This mode sets the character transmitted to the host CPU after the data input from the RS-232 auxiliary port. For most ordinary I/O, carriage return would be appropriate, but Tab might be used if entering data into a multifield screen.
Example rem Set aux response autoenter mode to <CR> echo SEA1 > com2
2-24
Page 45
I/O System Programming
SRA, RRA – Set and Return Aux Comm Response Path Format SRA 0 | 1
0=Keyboard * 1=COM2 host port
Summary Sets the RS-232 auxiliary port input path to the keyboard or the host serial port COM2. This setting is preserved in EEPROM.
Returns Response path flag, integer 0 or 1.
Description The data from the RS-232 auxiliary port can be used to simulate input from the keyboard, or it can be transmitted to the host communications port COM2. The advantage to the keyboard input is that no special programming is required to receive the data. However, keyboard input is slower due to the limitations of keyboard input speed. The factory default is keyboard simulation input.
Example rem Set aux comm response path to com2 echo SRA1 > com2
2-25
Page 46
FMT1000 Series Programmer’s Guide
SBA, RBA – Set and Return Aux Baud Rate Format SBA <0-6>
0=300 bits per second (bps) 1=600 2=1200 3=2400 4=4800 5=9600 * 6=19200
Summary Returns or sets the data speed for the RS-232 auxiliary serial port. This setting is preserved in EEPROM.
Returns Baud rate flag value
Description The factory default setting is 9600 bps
Example rem Set aux baud rate to 9600 echo SBA5 > com2
2-26
Page 47
I/O System Programming
SDA, RDA – Set and Return Aux Data Bits and Parity Format SDA <0-6>
0=7 bits, even parity 1=7 bits, odd parity 2=7 bits, space parity 3=7 bits, mark parity 4=8 bits, even parity 5=8 bits, odd parity 6=8 bits, no parity *
Summary Sets the character length and parity check for the RS-232 auxiliary serial port. This setting is preserved in EEPROM.
Returns Data bits and parity flag value.
Description The factory default is 8 data bits, no parity.
Example rem Set aux data bits and parity to 7 bits odd echo SDA1 > com2
2-27
Page 48
FMT1000 Series Programmer’s Guide
SSA, RSA – Set and Return Aux Stop Bits Format SSA 0 | 1
0=1 stop bit * 1=2 stop bits
Summary Sets the number of stop bits for RS-232 auxiliary serial port communications. This setting is preserved in EEPROM.
Returns Stop bit flag value, 0 or 1.
Description The factory default is 1 stop bit.
Example rem echo
2-28
Set aux stop bits to 1 SSA0 > com2
Page 49
I/O System Programming
SHA, RHA – Set and Return Aux Handshake Type Format SHA 0 | 1 | 2
0=None 1=XON/XOFF * 2=RTS/CTS hardware handshaking
Summary Sets the type of handshaking between the RS-232 auxiliary port and the external device. This setting is preserved in EEPROM.
Returns Handshake value flag, 0, 1 or 2.
Description Establishes the method by which a device connected to the RS-232 auxiliary port communications port on the FMT1000 Series computer can be directed to start or stop sending data. If no handshaking is established, data from the device can overrun the FMT1000 Series computer's buffer without any control or warning. Likewise, data from the FMT1000 Series computer can overrun the remote device's buffer. Handshaking XON/XOFF sends the XOFF code when the 100-character input buffer contains 88 characters and then XON when it is empty. The remote device must be able to correctly interpret XON/XOFF signals for this handshaking to work correctly. Note: RTS/CTS handshaking applies only to output from the FMT1000 Series computer; it cannot be used to pace input. The FMT1000 Series computer asserts RTS whenever it wishes to transmit data. No data is transmitted unless CTS is asserted.
2-29
Page 50
FMT1000 Series Programmer’s Guide
Note: If CTS is not connected, it does not appear to be asserted, and nothing is transmitted. You should not select this mode without correctly connecting RTS and CTS. You should either connect RTS and CTS to the appropriate signals on a remote device, or, if unused, wire RTS and CTS together. The factory default is XON/XOFF (1).
Example rem echo
2-30
Set aux handshake type to RTS/CTS SHA2 > com2