Omron ZS Command Reference

Cat. No. Z232-E1-02
Smart Sensors ZS Series
Non-procedual Communication
Command Reference

Introduction

Model Firmware Version
ZS-LDC v2.000 or later
ZS-HLDC v1.000 or later
ZS-MDC v2.000 or later
ZS-DSU v2.000 or later
Different firmware versions may cause communication errors, unintended setting overwrite, and damages on the controller. Please make sure to use the controller with the correct software version. If your software version is not listed in the table above, please update the software using the SmartMonitorZS firmware update software, such as WarpEngineZS, to match the software version.
When using the ZS Series, be sure to observe the following:
• The ZS Series must be operated by personnel knowledgeable in electrical engineer­ing.
• To ensure correct use, please read this manual thoroughly to deepen your under­standing of the product.
• Please keep this manual in a safe place so that it can be referred to whenever neces­sary.

Contents

Contents
Setting the Communication Specifications ................................................... 2
Format.......................................................................................................... 3
List of Non-procedural Commands .............................................................. 4
List of Parameters (ZS-LDC) ........................................................................ 7
List of Parameters (ZS-HLDC) ................................................................... 12
List of Parameters (ZS-MDC) ..................................................................... 20
List of Parameters (ZS-DSU) ..................................................................... 25
FLOWDATA Reference .............................................................................. 30
Capturing Image Data ................................................................................ 36
Example of Usage ...................................................................................... 38
Revision History ......................................................................................... 42
Non-procedural Communication Command Reference
ZS-Series
1

Setting the Communication Specifications

Setting the Communication Specifications
Change the settings of the controller communication specifications for non-procedural communication with the external device.
Use USB cable or RS-232C cable to connect ZS Series controllers to external devices. For USB cable
connection, install Smart Monitor ZS and USB driver beforehand. After installing Smart Monitor ZS, USB
ports are recognized as standard COM ports, and communication is achieved as with the RS-232C.
(Setting the communication specifications including baud rate is not necessary.) For details on how to
connect cable, refer to the User's Manual for each controller.
1.Set the mode switch to "FUN".
2.Select [System] - [Communication] - [Mode] menu.
3.Select [non-procedural].
4.For RS-232C cable connection, select [System] - [Communication] - [RS-232C]
menu to set the appropriate communication specifications for the external device.
5.Save the settings.
If you are connecting multiple controllers, set all controllers other than ZS-HLDC to [non-procedural].
Note that the communication with SmartMonitor ZS is not available in [non-procedural] mode. If you
want to communicate with SmartMonitor ZS, reset to [CompoWay/F] communication.
ZS-Series
2
Non-procedural Communication Command Reference

Format

The format of non-procedural commands are as follows:
Example: A command to acquire a measured value MEASURE command
* Each character is output as an ASCII code (except for FLOWDATA response).
MEASURE OCR
Format
Space
Delimiter
The format of returned values changes depending on the command. For the description of each command, refer to "List of Non-procedural Commands" section.
•MEASURE / M / DATAGET
The returned value consists of right aligned 11 characters and a delimiter. The unit is
nm for a displacement value. Shortfalls of the characters are filled with spaces from
the left.
Example: The returned value is -30.719923 mm.
-30719923CR
•BANKGET command
The returned value is output as 1 character bank No.
Example: The bank No. is 2.
1CR
•VERGET command
The returned value is output in the following format:
ZS - LDC 2 . 0 0 0CR
Version
•Other commands
Either OK or ER is returned according to the result of the command. The command
was executed properly:
OKCR
The command was not executed properly or the setting was NG:
ERCR
The delimiter can be selected from the following three types. CR/LF/CR+LF
ZS-Series
Non-procedural Communication Command Reference
3

List of Non-procedural Commands

List of Non-procedural Commands
Command
name
MEASURE MEASURE
M M <Task No.>
DATAGET DATAGET <Unit No.>
DATASET DATAGET <Unit No.>
BANKGET BANKGET<delimiter> <Bank No.>
BANKSET BANKSET<Bank No.>
ZERORST ZERORST
ZEROCLR ZEROCLR
DATASAVE DATASAVE
Format Returned value Description
<measured value> <Task No.> <delimiter>
<delimiter>
<Data No.> <delimiter>
<Data No.> <Setting value> <delimiter>
<delimiter>
<Task No.> <delimiter>
<Task No.> <delimiter>
<delimiter>
<delimiter>
<measured value>
<delimiter>
<Data>
<delimiter>
OK <delimiter>
ER <delimiter>
<delimiter>
OK <delimiter>
ER <delimiter>
OK <delimiter>
ER <delimiter>
OK <delimiter>
ER <delimiter>
OK <delimiter>
ER <delimiter>
Acquires a measured value. If <Task No.> is omitted, it aqcuires the displayed measured value.
Same as MEASURE command.
Acquires measurement data or setting data of the processing unit. * For details of numbers, refer to "List of Parameters."
p.7
Changes setting data of the processing unit. * For details of numbers, refer to "List of Parameters."
p.7
Acquires the current bank No.
Switches to the designated bank No.
Executes a zero-reset. If <Task No.> is omitted, it executes on the task currently displayed as a result. If <Task No.> is set to 4, it executes on all the tasks.
Cancels a zero-reset. If <Task No.> is omitted, it executes on the task currently displayed as a result. If <Task No.> is set to 4, it executes on all the tasks.
Saves all the bank data on the flash memory of the controller.
Support
HLDC
LDC
Yes Yes Yes Yes
Yes Yes Yes Yes
Yes Yes Yes Yes
Yes Yes Yes Yes
Yes Yes Yes Yes
Yes Yes Yes Yes
Yes Yes Yes N o
Yes Yes Yes N o
Yes Yes Yes Yes
MDC DSU
ZS-Series
4
Non-procedural Communication Command Reference
List of Non-procedural Commands
Command
name
Format Returned value Description
VERGET VERGET<delimiter> <Type/Version>
<delimiter>
BKMC2CTR
BKMC2CTR <Bank file No.>
OK <delimiter>
ER <delimiter> <Target controller CH> <delimiter>
BKCTR2MC
BKCTR2MC <Bank file No.>
OK <delimiter>
ER <delimiter> <Target controller CH> <Target Bank> <delimiter>
FLOWDATA FLOWDATA
<delimiter>
OK <delimiter>
ER <delimiter>
Acquires version information of the system. Example: ZS-LDC
1.100<delimiter>
Sends bank files stored on a memory card to the specified bank of the specified controller. Example: To transfer the bank data of the bank file No. 2 on the memory card to the controller of 1CH, enter the following command. BKMC2CTR 2 1<delimiter>
Sends the specified bank of the controller of the specified CH to the memory card. Example: To transfer the bank data on the Bank 3 of 2CH to the Bank file No. 10 on the memory card, enter the following command. BKCTR2MC 10 2 3<delimiter>
Used to acquire measurement data at the shortest intervals possible. For details, refer to "FLOWDATA Reference."
Support
HLDC
LDC
Yes Yes Yes Yes
No No No Yes
No No No Yes
Yes (*1)
Yes (*1)
MDC DSU
Yes (*1)
No
CFLOGGET CFLOGGET
<Logging No.> <delimiter>
<measurement value>
<delimiter>
: <measurement value> <delimiter> Or, if the file with the specified logging No. does not exist, the return value is as follows: NO FILE <delimiter> If memory card is not inserted, the return value is as follows:
p.30
Obtains the measurement value from the logging file with the specified No. Enter 3-digits number to the logging No. Examples:
For the Logging No. 1
001
No No No
For the Logging No. 11
011
ZS-Series
Non-procedural Communication Command Reference
Yes (*2)
5
List of Non-procedural Commands
Command
name
CFIMGGET CFIMGGET
Format Returned value Description
(Omitted) Capture the specified
<Group No.> <Logging No.> <delimiter>
image data. For details, refer to "Capturing Image Data."
HLDC
LDC
No No No
p.36
CFDATGET CFDATGET
<Group No.> <delimiter>
<measurement value> <delimiter>
: <measurement value> <delimiter>
Obtains the measurement value from the logging file for the image data in the specified group. For details, refer to "Capturing Image Data."
No No No
p.36
*1 It is available when USB cable connection is used.
*2 For ZS-DSU Ver 2.00 or later. It is available when USB cable connection is used.
* Specifying CH
In case other than ZS-HLDC
Specify <CH No.> before <delimiter>. If <CH No.> is omitted, the command operates on the CH that received
it.
Example: To acquire the result for TASK2 of the controller of 2CH,
M 1 2 <delimiter>
Support
MDC DSU
Yes (*2)
Yes (*2)
In case of ZS-HLDC
Specify #XX at the beginning of the command.
If the CH No. is 1, specify #01. (Be sure to note double digits.)
If <CH No.> is omitted, the command operates on the CH that received it.
Example: To acquire the result for TASK2 of the controller of 2CH,
#02 M 1 <delimiter>
* Specifying the node
Specify @xx at the beginning of the command.
If the node No. is 1, specify @01. (Be sure to note double digits.)
If the node No. is omitted, the command operates on the node that received it.
To specify, the node and CH together in case of ZS-HLDC, specify @XX # △△ at the head of the
command.
* Format of a returned value
A returned value for MEASURE,M,DATAGET,CFLOGGET,CFDATGET is the right aligned 11 characters.
* Upper case and lower case characters
For alphabetic, only upper case characters are accepted.
* Task No.
Omit <Task No.> when issuing a command for ZS-LDC.
Task Nos are assigned as follows: 0: TASK1 1: TASK2 2: TASK3 3: TASK4.
ZS-Series
6
Non-procedural Communication Command Reference

List of Parameters (ZS-LDC)

List of Parameters (ZS-LDC)
The following parameters can be obtained or set by DATASET or DATAGET command:
Unit No. Data No. Parameter Setting range/Output range Others
0 0 Measurement mode 0: STANDARD
1: HI-RESO 2: HI-SPEED 3: HI-SENS 4: CUSTOM
12 Start position of area 1 0 to 639 (pix)
14 End position of area 1 0 to 639 (pix)
24 Start position of area 2 0 to 639 (pix)
26 End position of area 2 0 to 639 (pix)
18 Exposure time 2 to 200 (1 div: 0.1ms) Parameters for CUSTOM
19 Number of additional
lines
20 Line skipping 0: OFF
32 Meas. Cycle 112 to 20000 (us)
1 0 Head installation 0: DIFFUSE
2 0 LD power mode 0: Auto
2 Surface to be
controlled for light amount
13 Lower limit of LD
power
14 Upper limit of LD
power
37 Incident level
(1st surface)
38 Incident level
(2nd surface)
39 Incident level
(3rd surface)
3 0 Measurement object 0: NORMAL
1 Glass thickness/Gap
mode
2 Glass thickness/Gap
mode
1 to 200
1: ON
1: REGULAR
1: Auto-scale 2: Fixed
0: Peak 1: 1st surface 2: 2nd surface 3: 3rd surface
0 to 800 (1 div: 0.1%)
0 to 800 (1 div: 0.1%)
0 to 4095 (tone)
0 to 4095 (tone)
0 to 4095 (tone)
1: PCB 2: MIRROR 3: GLASS 4: THICK 5: GAP 6: CUSTOM
0: Normal 1: Film/Else
0: STOP 1: MOVE
mode
Non-procedural Communication Command Reference
ZS-Series
7
List of Parameters (ZS-LDC)
Unit No. Data No. Parameter Setting range/Output range Others
3 3 Image smoothing level 0: None
1: Filter size 2 2: Filter size 4 3: Filter size 8 4: Filter size 16
4 Background removing
level before addition
5 Background removing
level after addition
6 Edge threshold 0: 0%
4 0 Mutual interference
prevention mode
1 Mutual interference
prevention timing
5 0 Gain 1 to 5
40 1 Measurement surface
of area 1
32 Measurement value of
area 1 (1st surface)
33 Measurement value of
area 1 (2nd surface)
34 Measurement value of
area 1 (3rd surface)
41 0 Scaling mode 0: OFF
1 Span value -20000 to 20000 (1 div: 0.0001)
2 Offset value
42 2 Smooth 0: OFF
43 2 Average 0: 1 time
0 to 255 (tone)
0 to 4095 (tone)
1: 12.5% 2: 25% 3: 37.5% 4: 50% 5: 62.5% 6: 75% 7: 87.5%
0: OFF 1: ON
0: Timing A 1: Timing B
0: 1st surface 1: 2nd surface 2: 3rd surface
- (nm)
- (nm)
- (nm)
1: ON
-999999999 to 999999999 (nm)
1: ON
1: 2 times 2: 4 times 3: 8 times 4: 16 times 5: 32 times 6: 64 times 7: 128 times 8: 256 times 9: 512 times 10: 1024 times 11: 2048 times 12: 4096 times
Parameters for area 1 at Glass thickness/Gap measurement by moving the objects. To refer to or set the parameters for area 2, add 20 to the unit No. (*)
ZS-Series
8
Non-procedural Communication Command Reference
List of Parameters (ZS-LDC)
Unit No. Data No. Parameter Setting range/Output range Others
44 2 Differential 0: OFF
1: ON
3 Differentiation cycles 1 to 5000 (ms)
45 2 Hold type 0: OFF
1: PEAK 2: BOTTOM 3: P-P 4: AVERAGE 5: SAMPLE
3 Trigger method 0: EXT
1: SELF-UP 2: SELF-DOWN
4 Trigger level -999999999 to 999999999
(nm)
5 Trigger hysteresis 0 to 999999999 (nm)
6 Trigger delay (ms) 0 to 5000 (ms)
7 Sampling period (ms) 1 to 5000 (ms)
8 Trigger delay mode 0: OFF
1: ON
46 5 Offset at zero reset -999999999 to 999999999
(nm)
6 Zero reset mode 0: REAL
1: HOLD
120 0 Non-measurement
settings
1 Output at CLAMP 0: MAX
121 0 Hysteresis width 0 to 999999999 (nm) Setting judgment process
1 Timer mode 0: OFF
2 Delay time 1 to 5000 (ms)
122 2 Monitor focus mode 0: OFF
3 Monitor focus distance
value 1
4 Monitor focus distance
value 2
5 Monitor focus current
value 1
6 Monitor focus current
value 2
7 Monitor focus voltage
value 1
8 Monitor focus voltage
value 2
0: KEEP 1: CLAMP
1: 20mA 2: 12mA 3: 4mA 4: MIN
1: OFF DELAY 2: ON DELAY 3: ONE SHOT
1: ON
-999999999 to 999999999 (nm)
-999999999 to 999999999 (nm)
4 to 20 (mA)
4 to 20 (mA)
-10 to 10 (V)
-10 to 10 (V)
Non-procedural Communication Command Reference
ZS-Series
9
List of Parameters (ZS-LDC)
Unit No. Data No. Parameter Setting range/Output range Others
126 4 External input 0
ActiveSelect
5 External input 1
ActiveSelect
6 External input 2
ActiveSelect
7 External input 3
ActiveSelect
8 External input mode 0: Standard mode
9 Control TASK setting 0: TASK1
127 0 External input (IN) task
mode
1 External input (IN)
function mode
2 External output (OUT)
task mode
4 Linear output task
mode
6 Digital output target 0: OFF
10 External input 0 mode 0: Not used
11 External input 1 mode
12 External input 2 mode
13 External input 3 mode
0: Low Active 1: High Active
1: Bank switching mode 2: Parallel IN off mode
1: TASK2 2: TASK3 3: TASK4
0: None 1: TASK1 2: TASK2 3: TASK3 4: TASK4 5: TASKALL
0: Standard 1: Bank
0: None 1: TASK1 2: TASK2 3: TASK3 4: TASK4
0: None 1: TASK1 2: TASK2 3: TASK3 4: TASK4
1: ON
1: Trigger
2: Hold reset
3: Laser off
4: Zero reset
10
(*)
When [Glass thickness/Gap-Film/Else-Move] is selected, task processes similar to those of ZS-MDC are
performed internally.
The following processes are assigned to respective tasks:
TASK 1 Calculates Area 1 displacement value.
TASK 2 Calculates Area 2 displacement value.
TASK 3 Calculates the difference value (=Thickness/Gap) between TASK1 and TASK2.
TASK 4 Unused
The measurement conditions can be set for each task in this mode.
ZS-Series
Non-procedural Communication Command Reference
List of Parameters (ZS-LDC)

Setting Threshold Value

• A mode other than [Glass thickness/Gap-Film/Else-Move] is selected.
Unit No. Data No. Parameter Setting range/Output range Others
48 2 Lower limit of
threshold
3 Upper limit of
threshold
4 Hysteresis width 0 to 999999999 (nm)
5 Timer mode 0:OFF
6 Delay time 1 to 5000 (ms)
• [Glass thickness/Gap-Film/Else-Move] is selected.
Unit No. Data No. Parameter Setting range/Output range Others
88 2 Lower limit of
threshold
3 Upper limit of
threshold
4 Hysteresis width 0 to 999999999 (nm)
5 Timer mode 0:OFF
6 Delay time 1 to 5000 (ms)
-999999999 to 999999999 (nm)
-999999999 to 999999999 (nm)
1:OFF DELAY 2:ON DELAY 3:ONE SHOT
-999999999 to 999999999 (nm)
-999999999 to 999999999 (nm)
1:OFF DELAY 2:ON DELAY 3:ONE SHOT
Non-procedural Communication Command Reference
ZS-Series
11

List of Parameters (ZS-HLDC)

List of Parameters (ZS-HLDC)
The following parameters can be obtained or set by DATASET or DATAGET command:
Unit No. Data No. Parameter Setting range/Output range Others
0 0 Measurement mode 0: STANDARD
1: HI-RESO 2: HI-SPEED 3: HI-SENS 4: CUSTOM
Measurement mode 1: STANDARD
2: HI-RESO 3: HI-SENS 4: CUSTOM
12 Start position of area 1 0 to 639 (pix)
14 End position of area 1 0 to 639 (pix)
13 Start line of area 1 0 to (No. of additional lines - 1)
15 End line of area 1 0 to (No. of additional lines - 1)
24 Start position of area 2 0 to 639 (pix)
26 End position of area 2 0 to 639 (pix)
25 Start line of area 2 0 to (No. of additional lines - 1)
27 End line of area 2 0 to (No. of additional lines - 1)
18 Exposure time 2 to 200 (1 div: 0.1ms)
When multi-task mode is OFF.
5 to 200 (1 div: 0.1ms) When multi-task mode is ON.
19 Number of additional
lines
20 Line skipping 0: OFF
22 2-area mode 0: OFF
23 Compensation mode 0: OFF
32 Measurement cycle 112 to 20000 (us)
192 Reference point teach for
compensation mode
193 2-area teach 1: Execute teach
1 0 Head installation 0: Diffuse
2 0 LD power mode 0: Auto
2 Surface to be controlled
for light amount
1 to 200 When multi-task mode is OFF.
8 to 200 When multi-task mode is ON.
1: ON
1: ON
1: Start position compensation 2: End position compensation 3: Start/End position compensation
1: Execute teach
1: Regular
1: Auto-scale 2: Fixed
0: Peak 1: First surface 2: Second surface 3: Third surface
When multi-task mode is OFF.
When multi-task mode is ON.
Parameters for CUSTOM mode
12
ZS-Series
Non-procedural Communication Command Reference
Loading...
+ 30 hidden pages