User guide

1
E SR SCRIPT RM
SR-1000/D100/750/700 Series
Script Reference Rev.5.0
Symbols
This user's manual uses the following symbols that alert you to important
messages. Be sure to read these messages carefully.
Important
Cautions as to operation that is always performed are shown.
Point
Cautions as to operation that can be easily performed incorrectly
are shown.
Reference
Matters that will help the user improve understanding of the text and
useful information are shown.
The items and pages to be referred to in this document are shown.
Introduction
This manual explains the script language described when using the edit read data
function and the edit image file name function on the SR-1000/D100/750/700
Series.
For information on the basic functions of the SR-1000/D100/750/700 Series, refer
to the corresponding user's manual.
This manual is written for users with basic knowledge of PC and programming
experience.
SR-1000/D100/750/700 related manuals
z Included in CD-ROM
SR-1000 User's Manual
SR-D100 User's Manual
SR-750 User's Manual
SR-700 User's Manual
z Download from KEYENCE homepage
Download the latest manual from the following web page.
BarcodeReader.com
http://www.barcodereader.com/
DANGER
It indicates a hazardous situation which, if not avoided, will result
in death or serious injury.
WARNING
It indicates a hazardous situation which, if not avoided, could
result in death or serious injury.
CAUTION
It indicates a hazardous situation which, if not avoided, could
result in minor or moderate injury.
NOTICE
It indicates a situation which, if not avoided, could result in
product damage as well as property damage.
301GB
Table of Contents
General cautions .................................................................................. 1
1-1 Overview .............................................................................................. 2
1-2 Script execution flow ............................................................................ 2
1-3 What Script can do ............................................................................... 2
1-4 Script file configuration ......................................................................... 2
2-1 Naming rules ........................................................................................ 4
2-2 Variables .............................................................................................. 4
2-3 Table ....................................................................................................5
2-4 Array..................................................................................................... 5
3-1 Calculation............................................................................................ 6
3-2 Comparison ..........................................................................................6
3-3 Combination of condition......................................................................6
3-4 Character string concatenation ............................................................6
3-5 Pattern matching .................................................................................. 7
4-1 Conditional branching of process.........................................................8
4-2 Repeat process ....................................................................................9
5-1 Input/Output functions ........................................................................ 10
5-2 Data acquisition functions .................................................................. 10
5-3 Common functions (Basic) ................................................................. 11
5-4 Common functions (Advanced) .......................................................... 11
5-5 User-defined function ......................................................................... 12
6-1 Debug methods ..................................................................................13
6-2 Error message list .............................................................................. 13
7-1 Practical sample programs................................................................. 14
8-1 ASCII code table ................................................................................ 18
8-2 Reserved words/Language elements.................................................18
8-3 Code type...........................................................................................19
8-4 Troubleshooting..................................................................................19
8-5 Copyright indication............................................................................ 19
General cautions
KEYENCE does not guarantee the results if it is used in a manner that differs
from the descriptions in this manual.
It is prohibited to use or copy all or any part of this manual without prior approval.
The information contained in this manual is subject to change without notice.
The company names and product names described in this manual are registered
trademarks or trademarks of each company.

Summary of content (20 pages)