Page 1
Zero Smart Sensor ZS Series (Ver2.0) CompoWay/F Communication Command Reference...
Page 2
When using the ZS Series, be sure to observe the following: - The ZS Series must be operated by personnel knowledgeable in electrical engineering. - To ensure correct use, please read this manual thoroughly to deepen your understanding of the product.
CONNECTED WITH THE PRODUCTS, WHETHER SUCH CLAIM IS BASED ON CONTRACT, WARRANTY, NEGLIGENCE, OR STRICT LIABILITY. In no event shall responsibility of OMRON for any act exceed the individual price of the product on which liability is asserted. IN NO EVENT SHALL OMRON BE RESPONSIBLE FOR WARRANTY, REPAIR, OR OTHER CLAIMS REGARDING THE PRODUCTS UNLESS OMRON’S ANALYSIS CONFIRMS THAT...
Page 4
Performance data given in this document is provided as a guide for the user in determining suitability and does not constitute a warranty. It may represent the result of OMRON’s test conditions, and the users must correlate it to actual application requirements. Actual performance is subject to the OMRON Warranty and Limitations of Liability.
List of Operation Instruction Commands 2-12 Commands and Responses 2-12 Section 3 Unit No. and Parameter No. Measurement Result Obtaining Command Setting Value Obtaining and Changing Command Parameter List (ZS-LDC) Parameter List (ZS-MDC) 3-13 ZS Series CompoWay/F Communication Command Reference...
Page 6
Section 4 About Obtaining Flow Data Setting Procedures for Data Obtaining Conditions Setting Parameters Buffer Size and Buffer Interval Logging Data Type Flow Data Response 4-10 Format 4-10 Composition of Response 4-10 Revision History ZS Series CompoWay/F Communication Command Reference...
Section 1 About Communication Commands How Communication Works Connections and Settings of External Device Connecting using a USB Cable Connecting using a RS-232C Cable Command Formats Response Formats Examples of Abnormal End 1-10 ZS Series CompoWay/F Communication Command Reference...
ZS Series controllers have communication functions with external devices. Use this function to read the data in ZS Series controllers from the host and to write the setting data. Communication is achieved via the Command and Response Method based on the CompoWay/F, which is Omron's proprietary communication protocol.
Section 1 Connections and Settings of External Devices Connections and Settings of External Devices This section describes how to connect ZS Series controllers to external devices and how to set them. Connecting using a USB Cable Connections with external devices Install Smart Monitor Zero and the USB driver beforehand.
Pin No. RD(RXD) SD(TXD) SD(TXD) RD(RXD) RS(RTS) SG(GND) CS(CTS) RS(RTS) CS(CTS) SG(GND) This cable is for personal computers. For connections with programmable controllers, prepare a separate conversion connector referring to the above pin assignments. ZS Series CompoWay/F Communication Command Reference...
Page 11
Section 1 Connections and Settings of External Devices ■ Setting of controllers Set the communications specifications with external devices. ZS Series controllers have three operating modes; RUN, TEACH and FUN. Set communications specifications with external devices in FUN mode. Set the mode switch to FUN.
It refers to the connection group No. as seen from the host device (PLC). Not only the ZS Series but other multiple devices are connected to the PLC. The number assigned to devices connected to a PLC such as this is referred to as a Node No.
Refer to the next page. Response text This is the response text part of the command. "Section 2 – Details of Commands" describes these parts by command. Command Formats - page 1 - 6 ZS Series CompoWay/F Communication Command Reference...
Page 15
Make sure to retry from the host. It may take three seconds at longest from sending a command to receiving a response. If no response is returned, make sure to send another command after waiting for more than three seconds. ZS Series CompoWay/F Communication Command Reference...
● No subaddress exists, and an invalid BCC is used Command NODE No. 02Hex 03Hex Response NODE No. Subaddress End code 02Hex "0" "0" "1" "3" 03Hex Subaddress is "00" and end code is "13" (BCC error). ZS Series 1-10 CompoWay/F Communication Command Reference...
List of Parameter Area Writing Commands Commands and Responses Reading Variable Areas List of Variable Area Reading Commands Commands and Responses Reading Controller Information 2-11 Operation Instructions 2-12 List of Operation Instruction Commands 2-12 Commands and Responses 2-12 ZS Series CompoWay/F Communication Command Reference...
In the case that the measured values such as distance are abnormal values, data parts are expressed as "7FFFFFFXh" ("X" varies depending on the case.) (*1) *1: This is an example for 8 characters per element. ZS Series CompoWay/F Communication Command Reference...
* 1 - All reading/writing operations on processing units are assigned by using this command. * 2 - Indicates ASCII character length. Refer to page 2-2 for details. Refer to "Section 3 - Unit No. and Parameter No." for Unit No. and Parameter No. for each processing unit. ZS Series CompoWay/F Communication Command Reference...
About Channel No. When Controllers are Gang-mounted page 1-2 Unit No. and Parameter No. page 3-4 Number of elements Specify number of elements depending on the Parameter Type. List of Parameter Area Reading Commands page 2-3 ZS Series CompoWay/F Communication Command Reference...
Page 21
End address outside of Specified number of elements is out of range. range error "2203" Operating error Reading error. "2204" Operating error Operating mode of sensor is other than RUN. "2205" Operating error Invalid command. ZS Series CompoWay/F Communication Command Reference...
Example 1: To turn on the "KEYLOCK" of the 2CH controller, assign a command as follows: [Machine No.]=0002h、[Data to be written]=0001h Parameter Type Reading start Number of Data to be written address elements A002h 0002h 8001h 0001h ZS Series CompoWay/F Communication Command Reference...
・Do not issue commands other than specified parameter types. Issuing wrong commands may rewrite internal parameters. In the case that internal parameters of connected sensors are rewritten, execute "EEPROM initialization" of operation instruction commands. ZS Series CompoWay/F Communication Command Reference...
Page 24
Specified number of elements is other than "8001." range error "2203" Operating error Setting is abnormal. Refer to the User's Manual of the ZS Series for setting error conditions of thresholds and the hysteresis width. "2204" Operating error Operating mode of sensor is other than RUN.
About Channel No. When Controllers are Gang-mounted page Unit No. and Parameter No. page 3-4 Bit position ZS Series does not support bit access. It is fixed to "00." Number of elements Specify number of elements depending on the Variable Type.
Page 26
End address outside of Specified number of elements is out of range. range error "2203" Operating error Reading error. "2204" Operating error Operating mode of sensor is other than RUN. "2205" Operating error Invalid command. ZS Series 2-10 CompoWay/F Communication Command Reference...
Section 2 Connections and settings of external devices Reading Controller Information Reading Controller Information Read data about ZS Series types and so on. Command "05" "01" 2 bytes 2 bytes Response Response Code Model Version "05" "01" 2 bytes 2 bytes...
Related Information 1 Specify the channel No. of the controller related to the command. Example: In the case of 2CH, specify "02." Related Information 2 Usually, setting other than "0000" is not accepted. ZS Series 2-12 CompoWay/F Communication Command Reference...
Page 29
Related information specifies the sensor of the range error unconnected Machine No. "2203" Operating error Setting is abnormal. Refer to the User's Manual of the ZS Series for error conditions. "2204" Operating error Operating mode of sensor is other than RUN. "2205"...
Page 30
Section 2 About General Information of Communication Commands Operation Instructions MEMO ZS Series 2-14 CompoWay/F Communication Command Reference...
Section 3 Unit No. and Parameter No. Measurement Result Obtaining Command Setting Value Obtaining and Changing Command Parameter List (ZS-LDC) Parameter List (ZS-MDC) 3-13 Parameter List (ZS-DSU) 3-22 ZS Series CompoWay/F Communication Command Reference...
In the command section, the value is shown as below: 02h 01h C020h 4400h 8001h To this command, if the response is shown as below: 02h 01h C020h 4400h 8001h 02719C40h It indicates as 41000000nm (= 41mm) because 02719C40h = 41000000. ZS Series CompoWay/F Communication Command Reference...
Page 33
To this command, if the response is shown as below: 02h 01h C020h 5800h 8001h FFF0BDC0h It indicates as -1000000nm (= -1mm) because FFF0BDC0h = -1000000. (A negative value is expressed as a complement of two.) ZS Series CompoWay/F Communication Command Reference...
Received light 0 to 4095 (tone) amount (3 areas) 0: NORMAL 1: PCB Measurement 2: MIRROR object 3: GLASS 4: THICKNESS 5: GAP Parameters when 0: NORMAL Glass material [Measurement 1: FILM/OTHERS object]=[Thickness] or [Gap] ZS Series CompoWay/F Communication Command Reference...
Page 35
Measurement target 1: 2 areas area 2: 3 areas Received light 0 to 4095 (tone) amount (surface) Received light 0 to 4095 (tone) amount (2 areas) Received light 0 to 4095 (tone) amount (3 areas) ZS Series CompoWay/F Communication Command Reference...
Page 36
In the command section, the value is shown as below: 02h 01h C006h 0301h 8001h To this command, if the response is shown as below: 02h 01h C006h 0301h 8001h 00000004h, It indicates 50 % because the value is 4. ZS Series CompoWay/F Communication Command Reference...
Page 37
In the command section, the value is shown as below: 02h 02h C000h 0000h 8001h 00000003h To this command, if the response is shown as below: 02h 02h 0000h It indicates a normal end. ZS Series CompoWay/F Communication Command Reference...
Page 38
Trigger delay mode 1: ON Offset value for zero -999999999 to 999999999 (nm) reset 0: REAL Zero reset mode 1: HOLD LOW threshold value -999999999 to 999999999 (nm) HIGH threshold value -999999999 to 999999999 (nm) ZS Series CompoWay/F Communication Command Reference...
Page 39
(8000h + 1h (Number of Elements)) 05F5E100h (Data to be written) In the command section, the value is shown as below: 02h 02h C003h 5800h 8001h 05F5E100h To this command, if the response is shown as below: ZS Series CompoWay/F Communication Command Reference...
Page 40
External input 1 mode (Note 5) 2: Hold reset External input 2 mode 3: Laser OFF 4: Zero-reset External Input 3 mode External input mode 0: STAND (Note 6) 2: Parallel input OFF mode ZS Series 3-10 CompoWay/F Communication Command Reference...
Page 41
The command sending sequence is as follows: (1) Write “parallel input OFF mode” to the “external input mode” parameter. (2) Write “execution” to the “zero-reset execution” parameter. (3) Write “STAND” to the “external input mode” parameter. 3-11 ZS Series CompoWay/F Communication Command Reference...
Page 42
(1) 02h 02h C008h F001h 8001h 00000002h (2) 02h 02h C0C3h F001h 8001h 00000001h (3) 02h 02h C008h F001h 8001h 00000000h Writing commands (1) and (3) above before and after the input-related operation command, respectively, is recommended. ZS Series 3-12 CompoWay/F Communication Command Reference...
(2) For input mode of data A, Unit No. and Data No. are 00h and 09h, respectively. Therefore, commands to be sent are shown as below: (1) When 02h 02h (C000h + 00h (Data No.)) 00h(Unit No.) 00h (CH No.), 3-13 ZS Series CompoWay/F Communication Command Reference...
Page 44
(8000h + 1h (Number of Elements)) 00000001h (Data to be written), Command is: 02h 02h C009h 0000h 8001h 00000001h. To this command, if the response is shown as below: 02h 02h 0000h It indicates a normal end. ZS Series 3-14 CompoWay/F Communication Command Reference...
Page 45
10: TASK 2 11: TASK 3 12: TASK 4 -999999999 to 999999999 Calculation parameter K Parameters when (nm) [Expression]= Calculation parameter m -100 to 100 (X0.1) [K+mX+nY] Calculation parameter n -100 to 100 (X0.1) 3-15 ZS Series CompoWay/F Communication Command Reference...
Page 46
MAX-MIN) Parameters when -999999999 to 999999999 Thickness [Expression]= (nm) [Thickness] 0: OFF Scaling mode 1: ON -20000 to 20000 Span value (X0.0001) -999999999 to 999999999 Offset value (nm) 0: OFF Smooth 1: ON ZS Series 3-16 CompoWay/F Communication Command Reference...
Page 47
Unit No. other than the above, such as TASK2 or a later one, can be calculated by adding (TASK number -1) to the Unit No. and multiplying it by 14h for another reference or setting. 3-17 ZS Series CompoWay/F Communication Command Reference...
Page 48
In the command section, the value is shown as below: 02h 02h C003h 6C00h 8001h 05F5E100h To this command, if the response is shown as below: 02h 02h 0000h It indicates a normal end. ZS Series 3-18 CompoWay/F Communication Command Reference...
Page 49
Input polarity of external input 3 0: None 1: TASK 1 2: TASK 2 External input (IN) 3: TASK 3 4: TASK 4 5: TASK ALL External Input 0: Standard (IN) function mode 1: Bank 3-19 ZS Series CompoWay/F Communication Command Reference...
Page 50
Monitor focus distance value 2 Monitor focus current value 1 Monitor focus current value 2 In addition, set outputs (current and voltage), which are set by the analog output switch in the controller. ZS Series 3-20 CompoWay/F Communication Command Reference...
Page 51
(1) 02h 02h C008h F000h 8001h 00000002h (2) 02h 02h C0C3h F000h 8001h 00000001h (3) 02h 02h C008h F000h 8001h 00000000h Writing commands (1) and (3) above before and after the input-related operation command, respectively, is recommended. 3-21 ZS Series CompoWay/F Communication Command Reference...
Source F save mode 0: OFF Source G save mode 1: ON Source H save mode Source I save mode Source J save mode Source K save mode Source L save mode Source M save mode ZS Series 3-22 CompoWay/F Communication Command Reference...
Page 53
-999999999 to 999999999 data threshold (nm) Start trigger, 0: Window-in window mode 1: Window-out Start trigger, -999999999 to 999999999 window upper limit value (nm) Start trigger, -999999999 to 999999999 window lower limit value (nm) 3-23 ZS Series CompoWay/F Communication Command Reference...
Page 54
0: COLUMN Save direction (ALIGN) 1: ROW 0: Ignored Line feed input 1: Enabled * About label input and time setting The label input and time setting cannot be set or referred to. ZS Series 3-24 CompoWay/F Communication Command Reference...
Page 55
7: Source H 8: Source I 9: Source J 10: Source K 11: Source L 12: Source M Threshold lower limit -999999999 to 999999999 (nm) value Threshold -999999999 to 999999999 (nm) upper limit value 3-25 ZS Series CompoWay/F Communication Command Reference...
Page 56
Section 3 Setting Value Obtaining and Changing Command MEMO ZS Series 3-26 CompoWay/F Communication Command Reference...
Page 57
How to Obtain Flow Data About Obtaining Flow Data Setting Procedures for Data Obtaining Conditions Setting Parameters Buffer Size and Buffer Interval Logging Data Type Flow Data Response 4-10 Format 4-10 Composition of Response 4-10 ZS Series CompoWay/F Communication Command Reference...
To handle the measurement data with external devices, it is necessary to obtain a large volume of data. The ZS series provides a system to handle measurement data as a bunch of any number of data items and to obtain data in units of bunches.
That is to say, the LDC itself as a single unit cannot obtain measurement data at every 112 microseconds via communications. To obtain the measurement data at every 112 microseconds, use a composition of ZS-LDC and ZS-MDC to obtain the measurement data from ZS-LDC via ZS-MDC. ZS Series CompoWay/F Communication Command Reference...
Page 60
01h 01h 81h 0000h 00h 0002h You will find that the measurement cycle is 269 microseconds (=010Dh) when the response is returned as below: 01h 01h 0000h 0000010Dh ZS Series CompoWay/F Communication Command Reference...
Page 61
Number of data items specified in this step x 3 Example: When setting the number of data items to be accumulated (=500) to ZS-MDC (0CH), a command to be sent is shown below: 02h 02h C004h 7C00h 8001h 000001F4h (500(dec) = 1F4(hex)) ZS Series CompoWay/F Communication Command Reference...
Page 62
The number of data items to be received can be calculated using the formula specified in the step above: Data type (target data to be obtained) x Number of data items to be accumulated. ZS Series CompoWay/F Communication Command Reference...
Page 63
Therefore, flow data is immediately returned after sending a command when data accumulation has already been completed upon sending a command. Response is not performed unless the data accumulation is completed upon sending a command. ZS Series CompoWay/F Communication Command Reference...
Accumulation data 3 * Setting varies depending on the measurement mode. - When “THICK/GAP - FILM/OTHERS - TRANSFER” mode is selected Value Details No accumulation Result of area 1 Result of area 2 Thickness/gap value ZS Series CompoWay/F Communication Command Reference...
Page 65
11: Input G Accumulation data 8 12: Input H Accumulation data 9 13: Input I Increasing the accumulation data lengthens the measurement cycle of the ZS controller. Check the "System - Information - Cycle" after setting. ZS Series CompoWay/F Communication Command Reference...
Data section 1st byte 2nd byte 3rd byte 4th byte Meaning of A B C D E F G H I J K L Data data Number of bits = Total 64 bits 4-10 ZS Series CompoWay/F Communication Command Reference...
Page 67
- Output terminal 3 (Enable output) - Output terminal 2 (Low output) - Output terminal 1 (Pass output) - Output terminal 0 (High output) (5 outputs in total) Standard status is described in the parentheses. 4-11 ZS Series CompoWay/F Communication Command Reference...
Date Revised contents Apr. 2004 Original production Commands compatible with ZS-LDC (v2.000), ZS-MDC Oct. 2004 (v2.000), and ZS-DSU (v1.000) are added and matched. "Section 4 How to Obtain Flow Data" is added. Dec. 2004 ZS Series CompoWay/F Communication Command Reference...
Page 69
OMRON products are properly rated and installed for the intended use within the overall equipment or system.