Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 9 of 15

FMT1000 Series Programmer's Guide: Chapter 2 I/O System Programming, pages 81 to 90

Pages 81 to 90 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 81

I/O System Programming

SR1, SR2 – Reset Counter No. 1 or No. 2 Format: SR1 SR2

Summary Resets to 0 the value of the counter for input line No. 1 or No. 2.

Returns N/A

Description This command sets the value of the counter to 0. The counter is unsigned, 32 bit.

Example rem echo

Reset counter #1 to 0. SR1 > COM2

2-61

Page 82

FMT1000 Series Programmer’s Guide

RE1, RE2 – Read Counter No. 1 or No. 2 Format RE1 RE2

Summary Returns the value of the counter for input line No. 1 or No. 2.

Returns An ASCII string representing the current value of the internal counter as decimal digits.

Description This command retrieves the value of the counter for input lines No. 1 or No. 2. The counter is unsigned, 32 bit.

Example rem echo

2-62

Read counter #1. RE1 > COM2

Page 83

I/O System Programming

RR1, RR2 – Read and Reset Counter No. 1 or No. 2 Format RR1 RR2

Summary Returns the value of the input counter for line No. 1 or No. 2 and resets that counter to 0.

Returns An ASCII string representing the current value of the internal counter as decimal digits.

Description This command returns the current value of the counter for digital input lines No. 1 or No. 2, and then resets the value of the counter to 0. The counter is unsigned, 32 bit.

Example rem echo

Read and reset counter #1. RR1 > COM2

2-63

Page 84

FMT1000 Series Programmer’s Guide

SM1, SM2, RM1, RM2 – Set and Return Counter No. 1 or No. 2 Value Match Format SM1<0-1,000,000> SM2<0-1,000,000> RM1 RM2

0=Off 1-1,000,000=Count to match

Summary Sets counter-match value.

Returns Counter-match value, 0-1,000,000.

Description This command set sa target value for a counter. When the value is reached, a response string is sent to the CPU via the digital I/O response path. Also see S1M and S2M, page 85.

Example rem echo rem rem echo rem rem

2-64

Set counter #1 match value=3000. SM13000 > COM2 Set counter #1 match response string to 'Count reached'. S1M count reached > COM2 When counter #1 reaches 3000, the string 'Count reached' will be sent to the CPU.

Page 85

I/O System Programming

S1M, R1M, S2M, R2M – Set and Return Counter No. 1 or No. 2 Response String Format S1M<string> S2M<string> R1M R2M

Max string length: 80

Summary Sets counter response string.

Returns Counter-match response string, string 0-80 characters.

Description This command sets a response string that is sent to the CPU when a target counter-match value is reached. The response is sent via the digital I/O response path. Also see SM1 and SM2, page 2-64.

Example rem echo rem rem echo rem rem

Set counter-match value=50. SM150 > COM2 Set counter #1 match response string to 'Count reached'. S1M count reached > COM2 When counter #1 reaches 50, the string 'Count reached' will be sent to the CPU.

2-65

Page 86

FMT1000 Series Programmer’s Guide

ST1, RT1, ST2, RT2 – Set and Return Momentary Timeout for Output No. 1 and No. 2 Format ST1 <0-999>

0=Off 999=On 1-998=Time value in tenths of a second

Summary Activates, deactivates, or temporarily activates a digital output.

Returns Timeout value, integer 0-999.

Description This command can be used to activate, deactivate, or temporarily activate a digital output. Temporary activation, known as momentary mode, activates the digital output for from 0.1 to 99.8 seconds. This mode is useful for door solenoid control and other such applications where the output can be activated for a period of time to allow entry without the CPU having to provide timing.

Example rem echo

2-66

Activate output #1 for 3 seconds. ST130 > COM2

Page 87

I/O System Programming

SDE, RDE – Set and Return Digital I/O Response Enable Format SDE 0 | 1

0=Off 1=On *

Summary Enables or disables the response to changes of state on digital inputs. This setting is preserved in EEPROM.

Returns Digital I/O line enable setting, integer 0 or 1.

Description Enables or disables the response to changes of state on digital inputs. All other messages, such as the responses to commands to read the state of an input, or a counter, are unaffected.

Example rem echo

Set change of state response to ON. SDE1 > COM2

2-67

Page 88

FMT1000 Series Programmer’s Guide

Bar Code and Wand Control Commands These commands control the peripheral inputs to the I/O coprocessor. These inputs can connect one or two bar code devices, or a bar code device and a magnetic stripe reader. Note that there are no specific commands to control the magnetic stripe reader. The first set of commands configure the response format, defined earlier as the format of messages from the coprocessor to the CPU, in this case for peripheral input commands. Command

Description

Pg.#

SP5, RP5

Set and Return Peripheral (5 pin connector) Tag

2-70

SP9, RP9

Set and Return Peripheral (9 pin connector) Tag

2-70

SPT, RPT

Set and Return Peripheral Response Tag

2-71

SPP, RPP

Set and Return Peripheral Response Prefix

2-72

SPS, RPS

Set and Return Peripheral Response Suffix

2-73

SEP, REP

Set and Return Peripheral Response AutoEnter Mode 2-74

SRP, RRP

Set and Return Peripheral Port Response Path

2-75

The next set of commands enables or disables the various bar code formats that the coprocessor can recognize. These formats are often referred to as symbologies. It should be noted that if more than one format is enabled, the coprocessor will attempt to autodiscriminate among them, trying each format in turn to see which one correctly decodes. Only enabled symbologies will be tried.

2-68

Command

Description

Pg.#

S39, R39

Set and Return Code 3 of 9 Mode

2-76

S25, R25

Set and Return Interleave 2 of 5 Mode

2-77

SCB, RCB

Set and Return Codabar Mode

2-78

SUP, RUP

Set and Return UPC Mode

2-79

S28, R28

Set and Return Code 128 Mode

2-80

Page 89

I/O System Programming

The last set of commands sets various control parameters for peripheral input. Command

Description

Pg.#

SSC, RSC

Set and Return Concatenate Mode

2-81

SSM, RSM

Set and Return String Match Length

2-82

SSB, RSB

Set and Return Read Beep Enable

2-83

SPE, RPE

Set and Return Peripheral Port Enable

2-84

2-69

Page 90

FMT1000 Series Programmer’s Guide

SP5, RP5, SP9, RP9 – Set and Return Peripheral (5-Pin Connector) Tag and (9-Pin Connector) Tag Format SP5<string> SP9<string> RP5 RP9

Length: 1

Summary Sets a unique ID tag to prefix bar code data from each connector.

Returns Peripheral connector tag, 1 character

Description This command set a tag which is added to the input from either bar code connector to identify the source of the input. When set, this tag will replace the tag set by the SPT (Set Peripheral Response Tag) command.

Example rem echo rem echo rem rem rem

2-70

Set 5 pin connector tag to '5'. SP55 > COM2 Set 8 pin connector tag to '9'. SP99 > COM2 If the bar code “ABCDE” is read through the 5 pin connector, the string '5ABCDE' will be sent to the CPU.