Home
Serial Communication Command Reference
Contents
1. MIO DJE L S E T ER or MIS CRI Attribute Attribute Measurement Measurement item No item No max 2 digits max 2 digits lt Response format gt When processing ends successfully When processing fails ER CR lt Explanation of parameters gt Measurement item No Specifies the measurement item No Measurement items O to 31 Position correction items 0 to 1 Attribute Specifies measurement item or position correction item 0 Measurement item 1 Position correction item Default is measurement item Acquiring Changing Passwords lt PASSWORD command gt Acquiring the password This command acquires the currently set password lt Command format gt P A S S WOIR D cR or PWR lt Response format gt When processing ends successfully jt TTT tT lee Password When processing fails E R r lt Explanation of parameters gt Password A password of any eight alphanumeric characters is returned ZFX C Serial Communication Command Reference About Communication Commands 17 18 Setting Changing the password This command sets and changes the password character string lt Command format gt P A S SWIJO R D CR or PIW CR a po lt Response format gt Password Password When processing ends successfully When processing fails ER CR lt Explanation of parameters gt Password Specifies a password of any eight alphanumeric charac
2. 1 847 843 7900 Fax 1 847 843 7787 OMRON ASIA PACIFIC PTE LTD No 438A Alexandra Road 05 05 08 Lobby 2 Alexandra Technopark Singapore 119967 Tel 65 6835 301 1 Fax 65 6835 2711 OMRON CHINA CO LTD Room 2211 Bank of China Tower 200 Yin Cheng Zhong Road Pu Dong New Area Shanghai 200120 China Tel 86 10 8391 3005 Fax 86 10 8391 3688 Authorized Distributor Cat No Z252 E1 03 OMRON Corporation 2007 All Rights Reserved Note Specifications subject to change without notice Printed in Japan 0807 0 1M 0707 M
3. Smart Sensor Vision Sensor with built in LCD monitor ZFX C10 Serial Communication Command Reference Cat No Z252 E1 03 Introduction Thank you for purchasing the ZFX C This manual provides information regarding functions performance and operating methods that are required for using the ZFX C When using the ZFX C be sure to observe the following e The ZFX C must be operated by personnel knowledgeable in electrical engineering e To ensure correct use please read this manual thoroughly to deepen your understanding of the product e Please keep this manual in a safe place so that it can be referred to whenever necessary Manuals Provided with this Product User s Manual User s Manual This manual describes basic operations such as installation and connections and information on settings and specifications to ensure safe and correct use of this product Serial Communication Command Serial Communication Reference this document Command Reference This manual provides reference information for when this product performs communications with an external device such as a PC or a programmable controller via the serial interface Communication Interface Specifications 0 oooooooo 2 Connection ii A A a aaa 3 Connecting a PC seers rad asas dad da 3 Connecting Riaza EAS de 5 About Communication Commands 000 ences 6 Command Response Format 0 00 ee ee eee eee
4. GS 1 CR File name File name Bank group No Bank group No max 2 digits max 2 digits lt Response format gt When processing ends successfully When processing fails lt Explanation of parameters gt Bank group No Specifies the bank group No to back up 0 to 31 File name The file can be given any name within eight alphanumeric characters An extension is not required About Communication Commands ZFX C Serial Communication Command Reference Uploading Bank Data lt BNKLOAD command gt Uploading bank data to the Controller from an external device This command uploads the bank data to the Controller by XMODEM protocol lt Command format gt BINIK LIOJA D o ER oF BIL jo eR Bank No Bank No max 2 digits max 2 digits lt File transfer gt The bank data is transferred by XMODEM CRC or SUM after READY is received XMODEM 1K is not supported lt Response format gt RIE A D Y CR When processing ends successfully OK cr When processing fails EIR CR lt Explanation of parameters gt Bank No Specifies the bank No to upload 0 to 31 Uploading bank data to the Controller from an SD card This command uploads bank data to the Controller from an SD card lt Command format gt BINIK LIOJAJD 1 ee oro BL 4 CR File name File name Bank No Bank No max 2 digits max 2 digits lt
5. Response format gt When processing ends successfully When processing fails lt Explanation of parameters gt Bank No Specifies the bank No to upload 0 to 31 File name Specifies the file name within eight alphanumeric characters An extension is not required ZFX C Serial Communication Command Reference About Communication Commands 21 22 Backing up Bank Data lt BNKSAVE command gt Backing up bank data to an external device from the Controller This command backs up the bank data from the Controller by XMODEM protocol lt Command format gt BS O KR E Bank No max 2 digits max 2 digits lt File transfer gt The bank data is transferred by XMODEM CRC or SUM after READY is received XMODEM 1K is not supported lt Response format gt RIE A D Y CR When processing ends successfully OK cr When processing fails EIR CR lt Explanation of parameters gt Bank No Specifies the bank No to back up 0 to 31 Backing up bank data to an SD card from the Controller This command backs up bank data to an SD card from the Controller lt Command format gt BINIKISIAIVIE 1 A or BIS 14 CR File name File name Bank No Bank No max 2 digits max 2 digits lt Response format gt When processing ends successfully When processing fails lt Explanation of parameters gt Bank No Specifies the bank No to
6. 6 Available Commands nonan ee pee tae eed bine eb baa 9 Bank GOntrolcomman ds 334 2 208 2c 4 oat eee ees Ae Rie E RS es 11 Measurement Control Measurement Value Acquisition Commands 13 Setting Acquisition Change Commands 000 eee ee eee 16 Backup Restore Commands 0000 c cee ee eee eee 19 UI Olea oi is coat a a ical ty ee eee ee 29 Parme EPES ts ture a a ate A apt a AA ee Ree eres 30 Example of Usage curia rr a e aee Bebe 35 Version Upgrade Information 00 0 cee e eee eee 39 Revision HIStory 2 055 ato cee ewe ee ee ee le ee at See eee 40 ZFX C Serial Communication Command Reference amp Communication Interface Specifications You can use the USB port or RS 232C 422 connector of the Controller to perform serial communication with external devices such as a personal computer or programmable controller Serial communication functions in the RUN mode Communication cannot be performed in the ADJ or MENU modes lt USB gt This interface allows Full speed 12 Mbps communications compliant with USB2 0 with a PC equipped with the same USB interface Synchronization method Start stop Transmission code ASCII Binary format can be selected only when outputting measurement values set at Setup Support Calculation Data Communication speed Data length Parity USB2 0 compliant Stop bit Delimiter CR LF CR LF Transmission protocol
7. ZFX C Serial Communication Command Reference About Communication Commands 25 26 Backing up image data from the Controller to an SD card This command backs up image data from the Controller to an SD card lt Command format gt 1micisiAlvjE 111 l o is 1 1111 r File name File name Save Save oo No eg No max 2 digits max 2 digits lt Response format gt When processing ends successfully OLK CR When processing fails ER CR When an SD card is not inserted EIR OCR When there is no free space on the SD card EIR 1Cr lt Explanation of parameters gt Save memory No Specifies the No of the save memory for backing up the image data to 0 to 99 When 1 is specified for the Save memory No the latest image data is specified File name Files can be given any file name up to 5 characters long Entry of a file extension is not necessary About Communication Commands ZFX C Serial Communication Command Reference Uploading System Data lt SYSLOAD command gt Uploading system data to the Controller from an external device This command uploads the system data to the Controller by XMODEM protocol No parameters are provided for this command lt Command format gt S YIS L O A D O Cr or S L 0 CR lt File transfer gt The system data is transferred by XMODEM CRC or SUM after READY is received XMODEM 1K is not supported lt Response form
8. following describes the content of the software version upgrade Ver1 00 to Ver1 10 The following backup and restore commands can now be used in Ethernet communications too BGRLOAD BGRSAVE BNKLOAD BNKSAVE SYSLOAD SYSSAVE Ver1 10 to Ver1 20 The following image data backup restore commands have been newly added IMGLOAD IMGSAVE Ver1 20 to Ver1 30 Angle has been newly added to the edge inspection parameters of the MEASDATA command ZFX C Serial Communication Command Reference Version Upgrade Information EN A manual revision code appears as a suffix to the catalog number at the bottom of the front and back covers of this manual Cat No Z252 E1 03 Revision code 01 June 2007 Original production 02 August 2007 New commands as explained in Version Upgrade Information added Ver1 20 03 November 2007 New command parameters as explained in Version Upgrade Information added Ver1 30 ES Revision History ZFX C Serial Communication Command Reference OMRON Corporation Industrial Automation Company Application Sensors Division Sensing Devices and Components Division H Q Shiokoji Horikawa Shimogyo ku Kyoto 600 8530 Japan Tel 81 75 344 7068 Fax 81 75 344 7107 Regional Headquarters OMRON EUROPE B V Sensor Business Unit Carl Benz Str 4 D 71154 Nufringen Germany Tel 49 7032 811 0 Fax 49 7032 811 199 OMRON ELECTRONICS LLC One Commerce Drive Schaumburg IL 60173 5302 U S A Tel
9. 9 5 Position difference X 9999 999 to 9999 999 6 Position difference Y 9999 999 to 9999 999 Width Data No Parameter Output Range 0 Judgment result 0 OK 1 NG 2 not measured 1 Edge width 0 to 9999 999 2 Edge position X1 9999 999 to 9999 999 ZFX C Serial Communication Command Reference About Communication Commands 31 32 Data No Parameter Output Range 3 Edge position Y 1 9999 999 to 9999 999 4 Edge position X2 9999 999 to 9999 999 5 Edge position Y2 9999 999 to 9999 999 6 Reference edge width O to 9999 999 7 Reference edge position X1 9999 999 to 9999 999 8 Reference edge position Y 1 9999 999 to 9999 999 9 Reference edge position X2 9999 999 to 9999 999 10 Reference edge position Y2 9999 999 to 9999 999 11 Width difference 9999 999 to 9999 999 12 Position difference X1 9999 999 to 9999 999 13 Position difference Y1 9999 999 to 9999 999 14 Position difference X2 9999 999 to 9999 999 15 Position difference Y2 9999 999 to 9999 999 Count Data No Parameter Output Range 0 Judgment result 0 OK 1 NG 2 not measured 1 Number of edges 0 to 255 2 Average pitch O to 9999 999 3 Minimum pitch O to 9999 999 4 Maximum pitch O to 9999 999 5 Average width O to 9999 999 6 Minimum width O to 9999 999 7 Maximum width O to 9999 999 8 Pitch 1 0 to 9999 999 9 Width 1 0 to 9999 999 10 Pitch 2 O to 9999 999 11 Width 2 0 to 9999 999 0 to 9999 999 506 Pitch 255 O to 9
10. 9 01 23 4556 7 8 9 CR 4567 8 0 0 0 4 5 67 8 0 0 R 4567 8 10 04 56 7 8 0 0 Cr ZFX C Serial Communication Command Reference About Communication Commands Binary Format The value obtained by multiplying the measurement value by 1000 is output continuously as four bytes per single data item Minus values are output as 2 s complement Up to 32 results can be output The binary format differs from the ASCII format in that data separators such as field separator or record separator do not exist Output range 2147483 648 to 2147483 647 Measurement value Measurement value Measurement value of data O x 1000 of data 1 x 1000 of data 31 x 1000 a T TENE 4 bytes 4 bytes 4 bytes Example Data 0 256 324 and data 1 1 000 00 03 E9 44 SFF SFFI FC 18 _ _ _ AAA Data 0 256324 Data 1 1000 256 324 x 1000 1 000 x 1000 e A value obtained by multiplying by 1000 also is output as the judgment result JG OK 0 NG 1000 1 x 1000 e When the measurement value is less than 2147483 648 2147483 648 is output When the measurement value is greater than 2147483 647 2147483 647 is output About Communication Commands ZFX C Serial Communication Command Reference Available Commands Bank Control Commands Command name Description Page BANK or BK This command acquires the current bank No p 11 This com
11. 999 999 507 Width 255 0 to 9999 999 Angle Data No Parameter Output Range 0 Judgment result 0 OK 1 NG 2 not measured 1 Angle 180 00 to 180 00 2 Edge position X1 9999 999 to 9999 999 About Communication Commands ZFX C Serial Communication Command Reference Data No Parameter Output Range 3 Edge position Y 1 9999 999 to 9999 999 5 Edge position Y2 9999 999 to 9999 999 6 Referenceange 180 00t0180 00 To Reference positionX1 9999 999 to 9999 999 8 Reference position Y1 9999 999 to 9999 999 9 ReferencepositionX2 9999 999to9999 999 10 ReferencepositionY2 9999 999 to 9999 999 11 Angle difference 180 00 to 180 00 142 Position differenceX1 9999 999 to 9999 999 13 Position difference YI 9999 999to9999 999 14 Position difference X2 9999 999 to 9999 999 45 sd Position differenceY2 sti 9999 999 to 9999 999 Brightness and color inspection parameters Brightness Data No Parameter Output Range 0 Judgment result 0 OK 1 NG 2 not measured 1 Density average O to 255 0 2 Density deviation O to 127 0 3 Referencedensity average 0t0255 0 4 Reference density deviation O to 127 0 5 Density average difference 0 to 255 0 6 Density deviation difference O to 127 0 Hue Data No Parameter Output Range 0 Judgment result 0 OK 1 NG 2 not measured 1 Hue O to 360 0 2 Saturation O to 100 0 3 Value 0 to 100 0 4
12. Hue deviation 0 to 180 0 5 Saturation deviation O to 50 0 6 Value deviation O to 50 0 T Reference hue 0 to 360 0 ZFX C Serial Communication Command Reference About Communication Commands 33 34 Data No Parameter Output Range 8 Reference saturation O to 100 0 9 Reference value O to 100 0 10 Hue difference 360 0 to 360 0 11 Saturation difference 100 0 to 100 0 12 Value difference 100 0 to 100 0 13 Reference hue deviation O to 180 0 14 Reference saturation deviation O to 50 0 15 Reference value deviation O to 50 0 16 Hue deviation difference 180 0 to 180 0 17 Saturation deviation difference 50 0 to 50 0 18 Value deviation difference 50 0 to 50 0 19 Maximum hue O to 360 0 20 Minimum hue O to 360 0 21 Maximum saturation O to 100 0 22 Minimum saturation O to 100 0 23 Maximum value O to 100 0 24 Minimum value O to 100 0 Parameters for inspection by individual application Defect Data No Parameter Output Range 0 Judgment result 0 OK 1 NG 2 not measured 1 Defect O to 255 2 Maximum density O to 255 3 Minimum density O to 255 4 Number of defects O to 255 5 Defect position X 9999 999 to 9999 999 6 Defect position Y 9999 999 to 9999 999 7 Reference position X 9999 999 to 9999 999 8 Reference position Y 9999 999 to 9999 999 9 Position difference X 9999 999 to 9999 999 10 Position difference Y 9999 999 to 9999 999 About Communication Commands ZFX C Serial Communica
13. ank group data to an SD card from the Controller p 20 BNKLOAD or BL This command uploads bank data to the Controller from an external device p 21 This command uploads bank data to the Controller from an SD card p 21 BNKSAVE or BS This command backs up bank data to an external device from the Controller p 22 This command backs up bank data to an SD card from the Controller p 22 DATASAVE or SV This command saves the current settings to the Controller p 23 IMGLOAD or IL This command uploads image data to the Controller from an external device p 23 This command uploads image data to the Controller from an SD card p 24 ZFX C Serial Communication Command Reference About Communication Commands Command name Description Page IMGSAVE or IS This command backs up image data to an external device from the Controller p 25 This command backs up image data to an SD card from the Controller p 26 SYSLOAD or SL This command uploads system data to the Controller from an external device p 27 This command uploads system data to the Controller from an SD card p 27 SYSSAVE or SS This command backs up system data to an external device from the Controller p 28 This command backs up system data to an SD card from the Controller p 28 Utility Commands Command name Description Page RESET or RS This command restarts the Controller p 29 EXIT This command ends the TELNET connection for Ethernet communications and p 29 di
14. at gt RIE A D Y CR When processing ends successfully O K Cr When processing fails EIR CR Uploading system data to the Controller from an SD card This command uploads system data to the Controller from an SD card lt Command format gt ISIY S L OJA D 1 7 Cr or SIE 1 er a k name File name lt Response format gt When processing ends successfully When processing fails lt Explanation of parameters gt File name Specifies the file name within eight alphanumeric characters An extension is not required ZFX C Serial Communication Command Reference About Communication Commands 27 Backing up System Data lt SYSSAVE command gt Backing up system data to an external device from the Controller This command backs up the system data from the Controller by XMODEM protocol No parameters are provided for this command lt Command format gt S YIS S A V E Or or S S 0 CR lt File transfer gt The system data is transferred by XMODEM CRC or SUM after READY is received XMODEM 1K is not supported lt Response format gt RIE A D Y CR When processing ends successfully O K Cr When processing fails EIR CR Backing up system data to an SD card from the Controller This command backs up system data to an SD card from the Controller lt Command format gt or ssi TTT T TH AT File name To File name lt Response format gt When proces
15. back up 0 to 31 File name The file can be given any name within eight alphanumeric characters An extension is not required About Communication Commands ZFX C Serial Communication Command Reference Saving the Current Settings to the Controller lt DATASAVE command gt This command saves the current settings to the Controller No parameters are provided for this command lt Command format gt DIA TIASIAVIECR or lt Response format gt When processing ends successfully When processing fails O Es 7 m E Uploading Image Data lt IMGLOAD command gt Uploading image data to the Controller from an external device This command uploads image data to the Controller by XMODEM protocol lt Command format gt IMGILJOJA D foj FR or DONNA Save Save memory No memory No max 2 digits max 2 digits lt File transfer gt The image data is transferred by XMODEM CRC or SUM after READY is received XMODEM 1K is not supported lt Response format gt RIE AID Y CR When processing ends successfully When processing fails ER CR lt Explanation of parameters gt Save memory No Specifies the No of the save memory for saving the image data to 0 to 99 ZFX C Serial Communication Command Reference About Communication Commands 23 24 Uploading image data to the Controller from an SD card This command uploads image data to the Controller from an SD card lt Command for
16. eference angle 180 to 180 9 Position difference X 9999 999 to 9999 999 10 Position difference Y 9999 999 to 9999 999 11 Angle difference 180 to 180 Sensitive search Data No Parameter Output Range 0 Judgment result 0 OK 1 NG 2 not measured 1 Correlation O to 100 2 Measurement position X 9999 999 to 9999 999 3 Measurement position Y 9999 999 to 9999 999 4 Measurement angle 180 to 180 5 Solid color rate O to 100 30 About Communication Commands ZFX C Serial Communication Command Reference Size inspection parameters Area Data No Parameter Output Range 0 Judgment result 0 OK 1 NG 2 not measured 1 Area 0 to 9999999 999 2 Gravity position X 9999 999 to 9999 999 3 Gravity position Y 9999 999 to 9999 999 4 Axis angle 9999 999 to 9999 999 5 Reference area 0 to 9999999 999 6 Reference position X 9999 999 to 9999 999 7 Reference position Y 9999 999 to 9999 999 8 Reference axis angle 180 0 to 180 0 9 Area difference 9999999 999 to 9999999 999 10 Position difference X 9999 999 to 9999 999 11 Position difference Y 9999 999 to 9999 999 12 Axis angle difference 180 0 to 180 0 Edge inspection parameters Position Data No Parameter Output Range 0 Judgment result 0 OK 1 NG 2 not measured 1 Edge position X 9999 999 to 9999 999 2 Edge position Y 9999 999 to 9999 999 3 Reference position X 9999 999 to 9999 999 4 Reference position Y 9999 999 to 9999 99
17. lly When processing fails ZFX C Serial Communication Command Reference About Communication Commands 15 16 Setting Acquisition Change Commands Acquiring Changing the Date Setting lt DATE command gt Acquiring the date setting This command acquires the date and time of the calendar timer incorporated into the Controller lt Command format gt DAMER o DIER lt Response format gt When processing ends a a Year hour day hour minute second When processing fails E R CR lt Explanation of parameters gt Year hour day hour minute second The acquired date and time are returned as numerical values of two digits each Example 060301120020 gt 12 00 20 on March st 2006 Changing the Date Setting This command changes the date and time of the calendar timer incorporated into the Controller lt Command format gt or Year hour day hour LL Y ear hour day hour minute second minute second lt Response format gt When processing ends successfully When processing fails lt Explanation of parameters gt Year hour day hour Specifies the date and time minute second Example 060301120020 12 00 20 on March 1st 2006 About Communication Commands ZFX C Serial Communication Command Reference Re registering the Model of the Specified Item lt MODELSET command gt This command re registers the model of the specified item It does not reset filters etc lt Command format gt
18. lt RS 232C 422 gt Normal Note however that XMODEM protocol is used when sending image data system data and other data This interface allows data communications compliant with the EIA RS 232C 422 standards up to a maximum speed of 115200 bps Synchronization method Start stop Transmission code ASCII Binary format can be selected only when outputting measurement values set at Setup Support Calculation Data Communication speed 9600 19200 38400 57600 115200 Data length 7 bits 8 bits Parity None even odd Stop bit 1 bit 2 bits Delimiter CR LF CR LF Transmission protocol Normal Note however that XMODEM protocol is used when sending image data system data and other data LT For details on how to set the communication specifications refer to the User s Manual lt Ethernet gt Communication protocol TCP IP Transmission mode Peer to Peer Communication Interface Specifications ZFX C Serial Communication Command Reference Connection Connecting a PC lt USB gt Use a USB cable ZFX XUSB to connect the Controller to the PC e When connecting the PC refer to the Instruction Manual for the PC e Attach the ferrite cores supplied to both ends of the USB cable Ferrite cores Installation of the USB driver is necessary only when connecting an external device to the USB interface for the first time For the USB driver please contact yo
19. lue is not dependent on the format ASCIl binary specified in the e The size of the integer section is variable e The decimal point is indicated by a period e The maximum number of digits past the decimal point is three About Communication Commands 13 Executing Measurement lt MEASURE command gt Executing a Single Measurement This command executes a single measurement lt Command format gt M E A S UR E CR oF lt Response format gt When processing ends successfully E E 7 When processing fails m E lt Explanation of parameters gt Measurement value The acquired measurement value is returned The measurement value is output in the format ASCIl binary specified in the output conditions LT Configuration of Measurement Value Data p 7 Measurement values are output only when an expression is set at Setup Support Calculation Data and RS 232C 422 or USB is specified at System Output Data output 14 About Communication Commands ZFX C Serial Communication Command Reference Starting Continuous Measurement lt Command format gt MIE A SJUIR E Cir or M C R lt Response format gt When processing ends successfully for number of continuous measurements O K CR When processing fails Ending Continuous Measurement lt Command format gt M E ASUR E Ef or M_ ECR lt Response format gt When processing ends successfu
20. mand switches the bank to be used p 11 BANKGROUP or BG This command acquires the current bank group No p 12 This command switches the bank group to be used p 12 Measurement Control Measurement Value Acquisition Commands Command name Description Page MEASDATA or MD This command acquires the measurement result of the measurement item p 13 MEASURE or M This command executes a single measurement p 14 This command starts continuous measurement p 15 This command ends continuous measurement p 15 Setting Acquisition Change Commands Command name Description Page DATE or DT This command acquires the date and time of the calendar timer incorporated p 16 into the Controller This command changes the date and time of the calendar timer incorporated p 16 into the Controller MODELSET or MS This command re registers the model of the specified item It does not reset p 17 filters etc PASSWORD or PW This command acquires the currently set password p 17 It sets and changes the password character string p 18 VERGET or VR This command acquires the version information of the Controller p 18 Backup Restore Commands Command name Description Page BGRLOAD or GL This command uploads bank group data to the Controller from an external p 19 device This command uploads bank group data to the Controller from an SD card p 19 BGRSAVE or GS This command backs up bank group data to an external device from the p 20 Controller This command backs up b
21. mat gt IMGILIOJAJD 1 f o lt CR L File name File name Save Save memory No memory No max 2 digits max 2 digits lt Response format gt When processing ends successfully When processing fails ER CR lt Explanation of parameters gt Save memory No Specifies the No of the save memory for saving the image data to 0 to 99 File name Specifies the file name within 8 characters excluding the file extension File extensions GRY image captured by a monochrome camera or BYR image captured by a color camera are allowed About Communication Commands ZFX C Serial Communication Command Reference Backing up Image Data lt IMGSAVE command gt Backing up image data from the Controller to an external device This command backs up image data from the Controller by XMODEM protocol lt Command format gt IMGIS AV E 0 CR or HS jo fr Save TE Save memory No memory No max 2 digits max 2 digits lt File transfer gt The image data is transferred by XMODEM CRC or SUM after READY is received XMODEM 1K is not supported lt Response format gt When processing ends successfully When processing fails lt Explanation of parameters gt Save memory No Specifies the No of the save memory for backing up the image data to 0 to 99 When 1 is specified for the Save memory No the latest image data of camera 0 is specified
22. oup data to the Controller from an SD card lt Command format gt or Gt J1 CR File name File name Bank group No Bank group No max 2 digits max 2 digits lt Response format gt When processing ends successfully When processing fails lt Explanation of parameters gt Bank group No Specifies the bank group No to upload 0 to 31 File name Specifies the file name within eight alphanumeric characters An extension is not required ZFX C Serial Communication Command Reference About Communication Commands 19 20 Backing up Bank Group Data lt BGRSAVE command gt Backing up bank group data to an external device from the Controller This command backs up the bank group data from the Controller by XMODEM protocol lt Command format gt or GS O KR E Bank group No gaan Bank group No max 2 digits max 2 digits lt File transfer gt The bank group data is transferred by XMODEM CRC or SUM after READY is received XMODEM 1K is not supported lt Response format gt RIE A D Y CR When processing ends successfully OK Cr When processing fails EIR CR lt Explanation of parameters gt Bank group No Specifies the bank group No to back up 0 to 31 Backing up bank group data to an SD from the Controller This command backs up bank group data to an SD card from the Controller lt Command format gt BIGIRIS AIVIE 1 A or
23. re to set unique IP addresses to each Controller Do not set duplicate IP addresses to Controllers Example IP address 192 168 250 010 Start the TELNET communications software on the PC and specify individual IP addresses to access each Controller The method for inputting commands is the same as for a 1 1 connection IP address IP address IP address 192 168 250 100 192 168 250 101 192 168 250 102 4 Connection ZFX C Serial Communication Command Reference Connecting a PLC Use the exclusive RS 232C cable ZFX XPT2A RS 422 cable ZFX XPT2B to connect the Controller to a PLC Important When connecting to a PLC refer to the Instruction Manual for the PLC ZFX C Serial Communication Command Reference Connection Command Response Format lt Command gt lt Response gt Command data When processing ends successfully Response data lO separator When processing fails Record separator m Command data Specifies the command and parameters in ASCII code Response data Stores the acquired data Delimiter This control code indicates the end of the data Record separator This delimiter is appended to one session s worth of output data default delimiter CR About Communication Commands ZFX C Serial Communication Command Reference Configuration of Measurement Value Data The following explains the output format of measurement values To output measurement values by
24. row and ctrl keys act as Terminal keys Windows keys Backspace key sends CH Del Ci Space Chrl H E mulation Auto detect kai Telnet terminal ID ANSI Backscroll butter lines 500 E C Play sound when connecting or disconnecting 2 3 Mark the following checkboxes and click OK to complete the setting ASCII Setup ASCII Sending C Send line ends with line feeds Echo typed characters locally Line delay o milliseconds Character delay lo milliseconds ASCI Receiving Append line feeds to incoming line ends Force incoming data to bit ASCII Wrap lines that exceed terminal width 5 Coses 3 Set the communication conditions for the ZFX C Set System Comm to match the above settings LT For details on how to set the communication specifications refer to the User s Manual 4 Switch the ZFX C to the RUN mode ADJ MENU r RUN L___ Mode switch ZFX C Serial Communication Command Reference Example of Usage 5 Execute non procedural communication 5 1 Enter a command and then press the return key 2 EFX C Hyper Terminal File Edit view Call Transfer Help D S amp S she H 5 2 The returned value corresponding to the command is returned from the Controller amp LFX C Hyper Terminal File Edit view Call Transfer Help OK Example of Usage ZFX C Serial Communication Command Reference The
25. sconnects the line 10 About Communication Commands ZFX C Serial Communication Command Reference Bank Control Commands Acquiring Switching the Bank No lt BANK command gt Acquiring a bank No This command acquires the current bank No lt Command format gt BIAIN KicR or BIK CR lt Response format gt When processing ends successfully E Bank No max 2 digits When processing fails R lt Explanation of parameters gt En ES 70 E E 7 m ES Bank No The acquired bank No is returned 0 to 31 Switching to another bank This command switches the bank to be used lt Command format gt BANK Cr or B K Cr T Bank No p Bank No max 2 digits max 2 digits lt Response format gt When processing ends successfully When processing fails lt Explanation of parameters gt Bank No Specifies the bank No after the bank is switched 0 to 31 ZFX C Serial Communication Command Reference About Communication Commands 11 12 Acquiring Switching the Bank Group No lt BANKGROUP command gt Acquiring a bank group No This command acquires the current bank group No lt Command format gt B AN KG R OU PCg or B GCR lt Response format gt When processing ends successfully A Bank group No max 2 digits When processing fails lt Explanation of parameters gt m ES Bank group No The acquired bank group No is returned 0
26. serial communication the following items must be set Output content Set the output content as an expression Set the output content at Setup Support Calculation Data Output destination Specify RS 232C 422 or USB at System Output Data output Output format Set the output format at System Output Serial output O For detailed settings refer to the User s Manual ASCII Format Up to 32 results are output as a data structure of fixed length of up to 12 characters including the sign Measurement value of data 0 Measurement value of data 1 Measurement value of data 31 T Field separator E Record Number of digits past the decimal point max 3 separator Decimal separator 1 digit Sign number of digits of integer section max 8 digits Insert 0 for spaces Sign The sign of the measurement value is stored Plus 0 Minus Number of digits of integer section 0 is inserted in spaces in the integer section and digits past the decimal ap __ point Abbe el digit pasihe Sol When a value is greater than the preset number of digits all digits other Decimal separator than the sign digit become 9 Output range 9999999 999 to 09999999 999 Field separator Record separator Example Number of digits of integer section 7 number of digits past the decimal point 3 decimal separator period lt Measurement value gt lt Data structure gt 123456 78
27. sing ends successfully When processing fails EIR ICR lt Explanation of parameters gt File name The file can be given any name within eight alphanumeric characters An extension is not required 28 About Communication Commands ZFX C Serial Communication Command Reference Utility Commands Restarting the Controller lt RESET command gt This command restarts the Controller No parameters are provided for this command lt Command format gt RESET Or RISCR lt Response format gt When processing ends successfully None When processing fails Ending Ethernet Communications lt EXIT command gt This command ends the TELNET connection for Ethernet communications and disconnects the line No parameters are provided for this command lt Command format gt ElX ITCR lt Response format gt When processing ends successfully None When processing fails ZFX C Serial Communication Command Reference About Communication Commands Parameter List MEASDATA Command Shape inspection parameters Pattern search Data No Parameter Output Range 0 Judgment result 0 OK 1 NG 2 not measured 1 Correlation O to 100 2 Measurement position X 9999 999 to 9999 999 3 Measurement position Y 9999 999 to 9999 999 4 Measurement angle 180 to 180 5 Search number O to 99 6 Reference position X 9999 999 to 9999 999 7 Reference position Y 9999 999 to 9999 999 8 R
28. ters Acquiring the Version No lt VERGET command gt This command acquires the version information of the Controller lt Command format gt VIEIRIGIE TCR oof VIR R lt Response format gt When processing ends successfully X XIX OR Version No Model information When processing fails lt Explanation of parameters gt Model information The model No of the Controller is returned Version No The version No of the Controller s firmware is returned About Communication Commands ZFX C Serial Communication Command Reference Backup Restore Commands Uploading Bank Group Data lt BGRLOAD command gt Uploading bank group data to the Controller from an external device This command uploads the bank group data to the Controller by XMODEM protocol The bank group data is loaded to the specified bank group No lt Command format gt BIGIRIL OJA D o Cr or GIL O KR E Bank group No EE Bank group No max 2 digits max 2 digits lt File transfer gt The bank group data is transferred by XMODEM CRC or SUM after READY is received XMODEM 1K is not supported lt Response format gt RIE A D Y Cr When processing ends successfully OJK Cr When processing fails EIR CR lt Explanation of parameters gt Bank group No Specifies the bank group No to upload 0 to 31 Uploading bank group data to the Controller from an SD card This command uploads bank gr
29. tion Command Reference The following describes an example procedure to communicate by non procedural commands using Windows standard tool Hyper Terminal 1 Start up HyperTerminal HyperTerminal is located under Program Accessory Communication 1 1 Enter an appropriate project name and select OK Connection Description Y New Connection Enter a name and choose an icon for the connection Name Ca 1 2 Select the COM port connected to the ZFX C in the Connect using field Connect To D AFE Enter details for the phone number that you want to dial Countyeregion Japan 51 bo Area code 03 Phone number Connect using Tc fo Cancel Cancel ZFX C Serial Communication Command Reference Example of Usage 36 1 3 Set the communication conditions COM3 Properties Port Settings Bits per second Data bits Parity Stop bits Flow control 2 To facilitate command transactions set echo and other communication conditions 2 1 Open Property ZFX C HyperTerminal i Edit View Call Transfer Help Mew Connection Open Save r Save As Page Setup Print Properties Exit Alt F4 Example of Usage ZFX C Serial Communication Command Reference 2 2 Select the Settings tab and then ASCII Setup ZFX C Properties Connect To Settings Me Function ar
30. to 31 Switching bank group Nos This command switches the bank group to be used lt Command format gt B AN KIGIROU P eR or BIG CRI TE Bank group No TE Bank group No max 2 digits max 2 digits lt Response format gt When processing ends successfully When processing fails lt Explanation of parameters gt Bank group No Specifies the bank group No after the bank group is switched 0 to 31 About Communication Commands ZFX C Serial Communication Command Reference Measurement Control Measurement Value Acquisition Commands Acquiring the Measurement Result of the Measurement Item lt MEASDATA command gt This command acquires the measurement result of the measurement item lt Command format gt M E A SID A T A er or eo Data No max 3 digits Measurement item No max 2 digits lt Response format gt When processing ends successfully OKER When processing fails lt Explanation of parameters gt Measurement item No Data No Specifies the data No 0 to 127 MID CR E Data No max 3 digits Measurement item No max 2 digits Specifies the measurement item No 0 to 31 LT For details see Parameter List p 30 Measurement value output conditions e Minus sign plus sign none ZFX C Serial Communication Command Reference The acquired measurement value is returned in ASCII code The measurement va
31. ur OMRON representative lt Ethernet gt Use a commercially available LAN cable to connect the Controller to the PC There are two ways of making the LAN connection to the PC directly to the PC or via a hub The following communications are not possible e Communications with the Controller from outside the LAN e Communications between the Controller and two or more PCs e Communications between Controllers e Communications between the Controller and the PLC ZFX C Serial Communication Command Reference Connection e 1 1 Connection When connecting the Controller directory to the PC use a 10BASE T or 100BASE TX cross cable Category 5 or higher Limit the cable length to 30 m Example A measurement command is input and the result is acquired If communications software for a TELNET connection is activated on the PC to access the Controller the Controller will automatically switch to the Ethernet connection Input command Execute measurement MEASURE The parallel interface s ENABLE signal will be OFF during measurement Output the processing result Receive the To end the Ethernet connection input the measurement result EXIT command e 1 N Connection When connecting two or more Controllers to one PC via a hub use a 10BASE T or 100BASE TX straight cable Category 5 or higher Also limit the cable lengths between the PC and the hub and the Controllers and the hub to 30 m respectively Be su
Download Pdf Manuals
Related Search
Related Contents
IAN 93548 - Lidl Service Website PAB Set Up Manual englisch neu BMW Z8 Roadster Service and Warranty Information 高精度温度計 | 株式会社チノー ENET-AP001D-EN-P, EtherNet/IP Performance Application Solution Nevion - A0108DS - AV User`s Manual FTS 3000 Management Software V7 High Gloss Case for iPhone 5s Copyright © All rights reserved.
Failed to retrieve file