background image

 

Zero Smart Sensor

ZS Series (Ver2.0)

Communication Command Reference

CompoWay/F

 

Summary of Contents for ZS-DSU

Page 1: ...Zero Smart Sensor ZS Series Ver2 0 Communication Command Reference CompoWay F...

Page 2: ...ntended 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...

Page 3: ...RON S ANALYSIS CONFIRMS THAT THE PRODUCTS WERE PROPERLY HANDLED STORED INSTALLED AND MAINTAINED AND NOT SUBJECT TO CONTAMINATION ABUSE MISUSE OR INAPPROPRIATE MODIFICATION OR REPAIR SUITABILITY FOR US...

Page 4: ...ever some specifications of the product may be changed without any notice When in doubt special model numbers may be assigned to fix or establish key specifications for your application on your reques...

Page 5: ...ation of Communication Commands 2 2 Reading Parameter Area 2 3 List of Parameter Area Reading Commands 2 3 Commands and Responses 2 4 Writing Parameter Areas 2 6 List of Parameter Area Writing Command...

Page 6: ...List ZS DSU 3 22 Section 4 About Obtaining Flow Data 4 2 Setting Procedures for Data Obtaining Conditions 4 3 Setting Parameters 4 8 Buffer Size and Buffer Interval 4 8 Logging Data Type 4 8 Flow Dat...

Page 7: ...n Command Reference Section 1 About Communication Commands How Communication Works 1 2 Connections and Settings of External Device 1 3 Connecting using a USB Cable 1 3 Connecting using a RS 232C Cable...

Page 8: ...from the host and then return the result to the host which sent the command as a response Host ZS Series Controller RUN mode Programmable Controller Personal Computer H LD ON ZERO ENABLE P L H LD ON Z...

Page 9: ...t them Connecting using a USB Cable Connections with external devices Install Smart Monitor Zero and the USB driver beforehand After installing Smart Monitor Zero USB ports are recognized as COM ports...

Page 10: ...onnector pin assignments An exclusive connector is used for the connector An RS 232C cable compatible with the exclusive connector is provided Recommended parts ZS XRS2 cable length 2m 1 2 3 4 5 6 7 8...

Page 11: ...1 Set the mode switch to FUN To switch the operating mode use the Mode Switch H LD ON ZERO ENABLE P L TEACH RUN FUN 2 Press the RIGHT key to switch the LCD screen and select SYSTEM 3 Press the RIGHT...

Page 12: ...f communication frames 02Hex Make sure to set the first byte to 02Hex When a controller receives STX while receiving a command it receives the command again starting from where it received STX NODE No...

Page 13: ...BCC calculation STX NODE No Subaddress SID Command text ETX BCC 02Hex 0 30Hex 0 30Hex 00 3030Hex 0 30Hex 30053001 3330303533303031Hex 03Hex 37Hex Set the result of calculation which is 37Hex to BCC C...

Page 14: ...cate hexadecimal numbers Those described with or only with numeral values indicate ASCII characters STX NODE No Subaddress End code Response text ETX BCC 02Hex Fixed 10 1 10 0 00 Fixed MRC SRC 03Hex F...

Page 15: ...ther than 0 to 9 or A to F are used for command text parts Except during echo back tests No SID and command texts exist Or no command text exists Either MRC or SRC is missing in the command text 16 Su...

Page 16: ...6 Subaddress error This response occurred because subaddress errors are prioritized over format errors No command text exists in the command Command STX NODE No Subaddress SID ETX BCC 02Hex 0 0 0 03He...

Page 17: ...ist of Parameter Area Reading Commands 2 3 Commands and Responses 2 4 Writing Parameter Areas 2 6 List of Parameter Area Writing Commands 2 6 Commands and Responses 2 7 Reading Variable Areas 2 9 List...

Page 18: ...ge 2 9 Reading controller information Read information on the models connected with a cable Page 2 11 Operation instructions Operate data of each bank or all banks Page 2 12 Notes on the exchange of c...

Page 19: ...its setting 02h 01h A032h Machine No 8001h 0 1 bit 1 2 bits 4 Communication node setting 02h 01h A033h Machine No 8001h 0 to 64 4 Digits after decimal point 02h 01h A040 Machine No 8001h 0 1 digit 1 2...

Page 20: ...001h Commands and Responses Command MRC SRC Parameter Type Reading start address Number of elements 02 01 2 bytes 2 bytes 4 bytes 4 bytes 4 bytes Elements Details Specify parameters depending on the d...

Page 21: ...Commands page 2 3 Response code for normal end Response Code Name Details 0000 Normal end No errors Response code when an error occurs Response Code Error name Cause 1001 Long command length Command...

Page 22: ...0 1 digit 1 2 digits 2 3 digits 3 4 digits 4 5 digits 4 Digital Eco mode 02h 02h A041h Machine No 8001h 0 NORMAL 1 ECO1 2 OFF 4 LCD ON OFF 02h 02h A042h Machine No 8001h 0 OFF 1 AUTOOFF 2 ON 4 LCD Ba...

Page 23: ...Machine No CH No of the controller to write data by using an ASCII code expressed in hexadecimal numbers Please note that the format of processing unit data writing commands is XXYYh XX Unit No YY Ma...

Page 24: ...is too short 1003 Inconsistent number of elements data Number of elements and data do not match 1100 Parameter error Data to be written is out of specified range 1101 Area type error Parameter type is...

Page 25: ...f elements 01h 01h 81h 0002h 00h 0002h Commands and Responses Command MRC SRC Variable Type Reading start address Bit position Number of elements 01 01 00 2 bytes 2 bytes 2 bytes 4 bytes 2 bytes 4 byt...

Page 26: ...Responses page 4 10 Response code for normal end Response Code Name Details 0000 Normal end No errors Response code when an error occurs Response Code Error name Cause 1001 Long command length Comman...

Page 27: ...0 bytes 20 bytes Elements Details Response Code Indicates controller status for the command Data to be read is not returned when an error occurs Model Model is expressed with 20 ASCII characters Versi...

Page 28: ...and system settings are not initialized Complete INIT initializes all settings settings of all banks and system settings Example To execute Complete INIT of the 2CH controller assign a command as fol...

Page 29: ...itted will be returned Response code for normal end Response Code Name Details 0000 Normal end No errors Response code when an error occurs Response Code Error Name Cause 1001 Long command length Comm...

Page 30: ...2 14 Section 2 About General Information of Communication Commands ZS Series CompoWay F Communication Command Reference Section 2 Details of Commands MEMO Operation Instructions...

Page 31: ...eference Section 3 Unit No and Parameter No Section 3 Unit No and Parameter No Measurement Result Obtaining Command 3 2 Setting Value Obtaining and Changing Command 3 4 Parameter List ZS LDC 3 4 Param...

Page 32: ...lt 44h 20h TASK2 measurement result 58h 20h TASK3 measurement result 6Ch 20h TASK4 measurement result Example1 When obtaining a measurement result of ZS LDC 2CH and when no 2 area measurement is perfo...

Page 33: ...ment result of ZS MDC 0CH TASK3 02h 01h C000h 20h Data No 58h Unit No 00h CH No 8000h 1h Number of elements In the command section the value is shown as below 02h 01h C020h 5800h 8001h To this command...

Page 34: ...h Emitted light amount setting 0 Auto 1 Auto range 2 Fixed Note 1 02h 02h Light amount control target area 0 Peak 1 Surface 2 2 areas 3 3 areas 02h 06h Emitted light amount fixed level 0 to 1000 X0 1...

Page 35: ...l interference prevention mode 0 OFF 1 ON 04h 01h Timing setting 0 Timing A 1 Timing B Parameters when Mutual interference prevention mode ON 05h 00h Gain setting 1 to 5 07h 00h Emitted light amount s...

Page 36: ...Measurement target area 0 Surface 1 2 areas 2 3 areas 08h 25h Received light amount surface 0 to 4095 tone 08h 26h Received light amount 2 areas 0 to 4095 tone 08h 27h Received light amount 3 areas 0...

Page 37: ...when ZS LDC is 0CH Since the gain setting for Unit No is 05h and Data No is 00h values are shown as below 02h 02h C000h 00h Data No 05h Unit No 00h CH No and 8000h 1h Number of Elements 00000003h Dat...

Page 38: ...56 9 512 10 1024 11 2048 12 4096 2Ch 02h Differentiation mode 0 OFF 1 ON 2Ch 03h Number of differentiation cycles 1 to 5000 ms 2Dh 02h Hold mode 0 OFF 1 PEAK 2 BOTTOM 3 P P 4 AVERAGE 5 SAMPLE 2Dh 03h...

Page 39: ...by 14h for another reference or setting Example1 When reading the setting values of the average number of times when ZS LDC is 1CH and no 2 area measurement is performed Since the average number of ti...

Page 40: ...9999 nm 7Ah 04h Monitor focus distance value 2 999999999 to 999999999 nm 7Ah 05h Monitor focus current value 1 4 to 20 mA 7Ah 06h Monitor focus current value 2 4 to 20 mA 7Ah 07h Monitor focus voltage...

Page 41: ...D the controller enters into the status below External input of the controller is enabled Commands from timing input to zero resetting are disabled When the external input mode is set to Parallel inpu...

Page 42: ...ction 3 Unit No and Parameter No An actual example of a command procedure is shown below 1 02h 02h C008h F001h 8001h 00000002h 2 02h 02h C0C3h F001h 8001h 00000001h 3 02h 02h C008h F001h 8001h 0000000...

Page 43: ...C input mode 00h 0Ch Data D input mode 00h 0Dh Data E input mode 00h 0Eh Data F input mode 00h 0Fh Data G input mode 00h 10h Data H input mode 00h 11h Data I input mode 0 OFF 1 ON 00h 20h Obtained re...

Page 44: ...and is 02h 02h C000h 0000h 8001h 00000003h To this command if the response is shown as below 02h 02h 0000h It indicates a normal end 2 In the same manner as above When 02h 02h C000h 09h Data No 00h Un...

Page 45: ...7 Input H 8 Input I Parameters when Mode INDIV 28h 02h Expression 0 THICKNESS K X Y 1 STEP X Y 2 K mX nY 3 AVE 4 MAX MIN Parameters when Mode Operation 28h 03h Calculation parameter X 28h 04h Calculat...

Page 46: ...ng AVE MAX MIN 28h 0Dh Input F setting AVE MAX MIN 28h 0Eh Input G setting AVE MAX MIN 28h 0Fh Input H setting AVE MAX MIN 28h 10h Input I setting AVE MAX MIN 28h 11h TASK 1 setting AVE MAX MIN 28h 12...

Page 47: ...0 External 1 Self up trigger 2 Self down trigger 2Dh 04h Trigger level 999999999 to 999999999 nm 2Dh 05h Trigger hysteresis 0 to 999999999 nm 2Dh 06h Trigger delay ms 0 to 5000 ms 2Dh 07h Sampling pe...

Page 48: ...esponse is shown as below 02h 01h C002h 2B01h 8001h 00000004h Since the value is 4 this indicates 16 times Example 2 When changing the high threshold value of TASK 4 to 100 mm Usually the high thresho...

Page 49: ...r focus mode 0 OFF 1 ON Note 2 7Ah 03h Monitor focus distance value 1 999999999 to 999999999 nm 7Ah 04h Monitor focus distance value 2 999999999 to 999999999 nm 7Ah 05h Monitor focus current value 1 4...

Page 50: ...Input C 8 Input D 9 Input E 10 Input F 11 Input G 12 Input H 13 Input I 7Eh 0Fh External input 0 mode 7Eh 10h External input 1 mode Note 3 7Eh 11h External input 2 mode 7Eh 12h External input 3 mode 0...

Page 51: ...ut OFF Once ON is written to the timing input reset input and LD OFF input parameters the ON state is kept until OFF is written next Controller operates in the same manner as the input state is kept O...

Page 52: ...h Source C selection TASK 00h 10h Source D selection TASK 00h 11h Source E selection TASK 00h 12h Source F selection TASK 00h 13h Source G selection TASK 00h 14h Source H selection TASK 00h 15h Source...

Page 53: ...4Bh Obtained result L 00h 4Ch Obtained result M 999999999 to 999999999 nm 01h 00h Start trigger mode 0 None 1 External input 2 Data 3 Window 4 Time 01h 01h Start trigger trigger edge polarity 0 UP 1 D...

Page 54: ...reshold 01h 11h End trigger window mode 01h 12h End trigger window upper limit 01h 13h End trigger window lower limit 01h 15h End trigger I O result I O selection Same as start trigger 01h 18h End tri...

Page 55: ...elated Unit No Data No Parameter Setting range output range Remarks 28h 00h Input source 0 Source A 1 Source B 2 Source C 3 Source D 4 Source E 5 Source F 6 Source G 7 Source H 8 Source I 9 Source J 1...

Page 56: ...3 26 Section 3 Setting Value Obtaining and Changing Command ZS Series CompoWay F Communication Command Reference Section 3 Unit No and Parameter No MEMO...

Page 57: ...and Reference Section 4 How to Obtain Flow Data About Obtaining Flow Data 4 2 Setting Procedures for Data Obtaining Conditions 4 3 Setting Parameters 4 8 Buffer Size and Buffer Interval 4 8 Logging Da...

Page 58: ...ue a command in advance of full measurement data accumulation specified by buffer size to the ZS controller Commands and data items are exchanged between a data recipient and the ZS controller as show...

Page 59: ...mode to ON Set the flow data accumulation mode to ON 1 Make sure to set this value to ON or write 1 to this value in advance of obtaining data because flow data is not accumulated unless this setting...

Page 60: ...to be sent is shown as below 02h 02h C005h 7C00h 8001h 00000001h Accumulate data TASK1 02h 02h C006h 7C00h 8001h 00000002h Accumulate data TASK2 02h 02h C007h 7C00h 8001h 00000005h Accumulate data In...

Page 61: ...terval value can be calculated by subtracting 1 from the value calculated using the formula above because the buffer interval must be the number of skips to be executed Example When writing the buffer...

Page 62: ...ection destination is the channel of command transmission destination Because the flow data belongs to the variable area reading commands the response follows their format However note that only the c...

Page 63: ...overflow bit which is described in Section Data Composition of Flow Data and other sections is enabled when sending a command is delayed due to the delay of processing at the master side of the commun...

Page 64: ...TASET commands to change and view the parameter Unit No Data No Parameter Details 7Ch 2 Flow data accumulation mode 0 OFF 1 ON 7Ch 3 Buffer interval 1 to 65535 7Ch 4 Buffer size 1 to 1000 Logging Data...

Page 65: ...data 1 7Ch 6 Accumulation data 2 7Ch 7 Accumulation data 3 7Ch 8 Accumulation data 4 7Ch 9 Accumulation data 5 7Ch 10 Accumulation data 6 7Ch 11 Accumulation data 7 7Ch 12 Accumulation data 8 7Ch 13 A...

Page 66: ...aining command Header section 4 byte Data section 4 byte For details refer to Composition of Flow Data Response data of the flow data is composed by binary data for the purpose of giving top priority...

Page 67: ...he TASK of the data source 3 I J Use prohibited Reserved bit Unit status output Indicates output status measurement result status 4 Data Measurement data Signed 32 bit data When the decimal point info...

Page 68: ...rence Revision History Revision code Date Revised contents A Apr 2004 Original production B Oct 2004 Commands compatible with ZS LDC v2 000 ZS MDC v2 000 and ZS DSU v1 000 are added and matched C Dec...

Page 69: ...TE LTD 83 Clemenceau Avenue 11 01 UE Square 239920 Singapore Tel 65 6835 3011 Fax 65 6835 2711 OMRON CHINA CO LTD BEIJING OFFICE Room 1028 Office Building Beijing Capital Times Square No 88 West Chang...

Reviews: