5 preset/verification function, Preset/verification function, 6 multi-i/o function – KEYENCE SR-750 Series User Manual
Page 14: Multi-i/o function, Registering preset data, Output terminal operation, Sequence verification function
14
E SR-750 UM
3-5
Preset/Verification
Function
This section describes the preset/verification function.
Preset/Verification Function
This function allows the SR-750 Series to verify the read code data against the
registered code data (preset data), and output an OK/NG signal to indicate whether
or not they match. This allows the SR-750 Series to perform simple detection of
different codes without a sensor or other devices.
One set of preset data can be stored in the SR-750 Series (maximum 494 digits).
The starting digit (starting position) and range (number of digits) for the verification
can be set in the preset data, so even codes with more than 494 digits can be
verified.
* If the multi 2 read mode or multiple read mode is set, the preset verification
function cannot be used.
Registering preset data
Use one of the following procedures to register preset data with the SR-750 Series:
• Read a target code by turning on the external input terminal.
* You need to assign the preset data input function to the external input terminal
in advance.
"3-6 Multi-I/O Function (Page 14)"
• Set with the AutoID Network Navigator
"5-4 Details of Settings View (Page
• Set with a setup command
"8-3 Details of Configuration Commands (Page
Output data format for the preset registration result
The following output data format is used when the preset data is registered.
Output terminal operation
The output terminals perform the following operation:
• Reading successful and matches preset data ............. OK is output
• Reading successful but does not match preset data ... NG is output
• Read error.................................................................... ERROR is output
• Preset data is registered successfully.......................... PRESET OK is output
Functions of "!" and "?" in the preset data (wild cards)
Registering "!" or "?" with the preset data increases the flexibility when comparing
and verifying the code data against the preset data.
"!" .......This character represents an unlimited number of digits and can be used
when any character for any number of digits is OK. If the preset data is "A B
C!", all codes that begin with "ABC" are verified as a match. If the preset
data is "!ABC", all codes that end with "ABC" are verified as a match. A
maximum of 1 "!" can be registered with the preset data.
"?" ......This character represents 1 digit and can be used when any one character
is OK. If the preset data is "A B??5 6", any 2 characters positioned in ?? are
verified as a match. If the preset data has not been registered, "!" is
registered instead. Consequently, OK is output when a barcode is read
successfully and ERROR is output when reading fails, regardless of the
data of the bar code.
Reference
By default, the PRESET output is not assigned to any of the OUT1 to
OUT4 terminals. To connect the PRESET OK output to an external
device, you need to assign the PRESET OK output to an appropriate
OUT terminal.
NOTICE
The verification starts at the specified starting position on the
preset data and continues for the specified number of digits. Data
cannot be verified at multiple points.
PR
nn
:
Result data
nn = Preset registration result (00 to 05)
nn
Description
Result data
00
Preset registration success
Read data
01
Preset read failure
Read error data
02
The preset effective digit is specified as 0.
[null]
03
The number of digits of read data is less
than the number of digits for preset start.
04
The preset registration is not possible
because the operation mode is set to multi
2 or multiple read.
05
Two or more "!" exist in preset data.
NOTICE
By default, the PRESET OK output is not assigned to any of the
OUT1 to OUT3 terminals. To connect the PRESET OK output to an
external device, assign the PRESET OK output to an appropriate
OUT terminal.
Sequence Verification Function
This function allows verification of codes including numerical values which change
in series, such as workpiece serial numbers.
When the verification is OK, a value is added to/subtracted from the preset value.
When the verification is NG, neither addition nor subtraction is performed.
When the sequence verification is set, the first data read after the setup or power-
on is used as the preset data, and the numerical data for the number of digits set is
verified.
When the PRESET input terminal is turned on during the automatic increment
verification, the current preset value is cleared, and the data to be loaded next is
used as the first load data.
The sequence verification requires the following settings:
• Verification method .........Select "Sequential".
• Starting digit ....................Set the number of digits where the value verification
starts.
• No. of digits ("Length") ....For the numerical verification, the acceptable number
of digits is 1 to 9 digits.
• Increment ........................Enter a value used to add to or subtract from the read
code value. (-9999 to 9999)
The following is the operation example when the starting digit is the third one, two
digits are referenced and an increment of +2 is specified:
3-6
Multi-I/O Function
You can assign various operating conditions to the I/O terminals of the SR-750
Series. This section describes operations available with the Multi-I/O function.
Function and Operation of the Input Terminals (IN1 and IN2)
Functions assigned to the input terminals
Only 1 of the following functions can be assigned to each of the input terminals IN1
and IN2:
• Trigger input: Use as the input terminal to start/stop reading codes.
• Preset data input: Use as the input terminal to register preset data.
• Start test mode: Use as an input terminal to activate the specified test mode.
(This function cannot be used to start the online test mode.)
• Clear PLC link error: Use as the terminal to clear the PLC link error.
• Tuning operation: Use the terminal to activate the quick calibration function.
• None: Select this option when the terminal is not used as an input terminal.
Use AutoID Network Navigator or setup command to change the setting or assign
the desired function.
* By default, the functions are assigned as follows:
IN1: Trigger input
IN2: Preset input
NOTICE
The following restrictions are placed on the sequence verification
function:
• The verification results in NG when a value other than a
numerical value is read.
• The preset data cannot be registered through communication.
Data
A0 96 B···
First reading
Preset value
98
Preset value
+2
A0 98 B···
Reading + Verification
98
Verification
A0 96 B···
Reading + Verification
00
Verification
Numerical value
+ 2
"Verification
OK"
Numerical value
+ 2
A0 00 B···
Reading + Verification
00
Verification
"Verification
NG"
"Verification
OK"