Keyence SR-700 Series Manuel d'utilisateur

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Capteurs Keyence SR-700 Series. KEYENCE SR-700 Series User Manual Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 20
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 0
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.
Vue de la page 0
1 2 3 4 5 6 ... 19 20

Résumé du contenu

Page 1 - Script Reference Rev.5.0

1E SR SCRIPT RMSR-1000/D100/750/700 SeriesScript Reference Rev.5.0 SymbolsThis user's manual uses the following symbols that alert you to import

Page 2 - 1-4 Script file configuration

10E SR SCRIPT RM5-1 Input/Output functionsThis section describes basic functions for editing data of SR-1000/D100/750/700.Edit read data*1 The number

Page 3 - Reference

11E SR SCRIPT RM5-3 Common functions (Basic)These functions can be used in common.Character string processing functionsReader status acquisition funct

Page 4 - 2-2 Variables

12E SR SCRIPT RMArray operationOthersFunction name Argument Return value Applicable modeltable.concat(tbl,sep,i,j)tbl: array namesep: character (1 cha

Page 5 - 2-4 Array

13E SR SCRIPT RM6-1 Debug methodsThis section describes debug methods when the script is executed.Operation check procedure1 Send the FmtSet.lua file

Page 6 - 3-4 Character string

14E SR SCRIPT RMOther errors7-1 Practical sample programsSample programs1 Editing read data1-1 Extracting the first 1 character and the last 2 charact

Page 7 - 3-5 Pattern matching

15E SR SCRIPT RM2 Count2-1 Counting the number of read codes with "Multi2 read mode".* This is a sample for the SR-D100/750.2-2 Counting the

Page 8 - 4-1 Conditional branching of

16E SR SCRIPT RM4-3 Deleting control characters when they are included in read data( "3-5 Pattern matching" (Page 7)is used.)4-4 Deleting &l

Page 9 - 4-2 Repeat process

17E SR SCRIPT RM5-2 Obtaining angular degrees of a tilted barcodeAngular degrees when a workpiece is read from the front are obtained.* If it is read

Page 10 - 5-1 Input/Output functions

18E SR SCRIPT RM7 Controlling output terminalsTo use scripts to control the output terminals, you have to set "Enable scripts," and then con

Page 11 - 5-3 Common functions (Basic)

19E SR SCRIPT RMPattern matching*1 Specify characters other than alphanumeric characters8-3 Code typeCode type list used for symbolType of readResult(

Page 12 - 5-5 User-defined function

2E SR SCRIPT RM1-1 OverviewDefinition of Script fileThe Script explained in this manual is a simple programming language operating on the SR-1000/D100

Page 13 - 6-2 Error message list

20E SR SCRIPT RMRevision HistoryDate of printingVersion Revision contentsMay 2013September 2013January 2014October 20142nd edition3rd edition4th editi

Page 14 - 7-1 Practical sample programs

3E SR SCRIPT RM(1) Edit read data function readformatEvent()This operates when "Edit data by script" is enabled on the code reader se

Page 15 - 4Comparison

4E SR SCRIPT RM2-1 Naming rulesThis describes naming rules for variables, etc. used in the script.Naming methods Script file nameThe script file name

Page 16 - 5 Calculations

5E SR SCRIPT RM2-3 TableThe table is the data configuration to collect multiple data.Definition of tableThe table can store multiple data (fields).Fie

Page 17

6E SR SCRIPT RM3-1 CalculationThis describes arithmetic operators used for general calculations.Arithmetic operatorFormatOn the left-hand side and the

Page 18 - 8-2 Reserved words/Language

7E SR SCRIPT RM3-5 Pattern matchingThis section describes how to search character strings with specific patterns (Pattern matching) from character str

Page 19 - 8-5 Copyright indication

8E SR SCRIPT RM4-1 Conditional branching of processTo branch processes, use if sentences.if sentenceFormatz For 1 branchz For 2 branches (using else)z

Page 20 - WARRANTIES AND DISCLAIMERS

9E SR SCRIPT RM4-2 Repeat processThis section describes processes when repeating processes.while sentencewhile sentences perform repeat process by spe

Commentaires sur ces manuels

Pas de commentaire