Home

Communication Output-type Intelligent Signal Processor

image

Contents

1. VDD SN751177N or equivalent Processor Host computer Turn OFF all terminal block l RS 485 switches except at the end station 47 K Abbrevi ation RS 485 Terminal toe see Ter Apbrevi 2200 Plock switch B iek minal ation Oi 47K p 19 MA 47K F 18 Ve lt SG 6 8 V y Ze i EE Shielded cable Processor end station RS 485 Terminal ETES block switch ON 2 Termi Abbrevi 2200 nal ation OA e hu 19 E Ti 18 lt Terminal block switch ON at the end station Shielded cable Note SYSMAC BUS Wired Remote VO devices cannot be connected Match the communications format of the K3N and the host computer If a one to N system is being used be sure that the communications formats of all devices in the system except individual Unit numbers are the same This section explains how to set the 75 communication format Refer to your computer s user s manual for details on changing its communications set tings Data Format Section 1 3 1 2 2 Communications Parameters The K3NL 6 communication format is set with the communications parameters These parameters are set with the 6 front panel The following table shows the communications parameters option
2. Note Data values which begin with an F are negative values 20 Memory Parameter Area Details Section 1 5 Parameters K3NR Address Data contents Data length Operating mode 0000 to 0006 Decimal point position 0000 to 0004 Process time for averaging measured value 0000 to 0006 Startup compensation time 0001 to 0999 Hysteresis 0001 to 9999 Comparative output pattern 0000 Standard output 0001 Zone output 0002 Level output Prescaling value X mantissa of input A 00000001 to 00099999 Double words Prescaling value exponent of input A FOOOOOO9 to 00000009 Prescaling value X mantissa of input B 00000001 to 00099999 Prescaling value exponent of input B F0000009 to 00000009 Sensor type 0000 to 1111 binary Time unit 0000 Prescaling value 0001 Seconds 0002 Minutes 0003 Hours minutes and seconds 0004 Minutes and seconds Power failure memory 0000 Disabled 0001 Enabled Auto zero time of input A X mantissa 00000001 to 00099999 Double words Auto zero time of input A Y exponent F0000009 to 00000009 Auto zero time of input B Y mantissa 00000001 to 00099999 Auto zero time of input B exponent F0000009 to
3. 0002 Level output Prescaling value X mantissa a 00000001 to 00099999 of input A Prescaling value Y exponent FOOOOOO9 to 00000009 of input A Prescaling value X mantissa 00000001 to 00099999 of input B Prescaling value Y exponent 0000009 to 00000009 of input B Sensor type See note Time unit 0000 Prescaling value 0001 Seconds 0002 Minutes 0003 Hours minutes seconds 0004 Minutes and seconds Power failure memory 0000 Disabled 0001 Enabled Auto zero time of input A X 00000001 to 00099999 mantissa Auto zero time of input A Y i 20000009 to 00000009 exponent Auto zero time of input B Y j 00000001 to 00099999 mantissa Auto zero time of input B Y d 0000009 to 00000009 exponent bus Setting Setting Normally open transistor input or active H voltage pulse input for IN A for IN B i Normally closed transistor input or active L voltage pulse input Normally open relay input Normally closed relay input 30 Command Lists Section 1 7 K3NP Command Starting Filler Write data write address HH set value write i 00000000 to 00099999 H set value write L set value write LL set
4. 52H 55H 30H 46H Converted into ASCII 34H 36H The symbols indicate exclusive OR operations and the H indicates hexadecimal code 2 4 3 Error Control With the Processor responsibility for error recovery rests with the host com puter The host computer controls the following error recovery procedures e When execution is impossible end code because of an undefined command error header code or setting communication is terminated f an error other than as described in 1 above occurs a retry operation re transmission of the same command block is executed If no response block is returned within 5 seconds from the command block transmission an error is assumed and a retry operation is executed If an error occurs after three retry operations communication is terminated e Note that when a Processor is connected to a system currently in use the host computer of that system executes an error recovery operation The following error detection is performed at the Processor 1 2 3 1 Character check check of every character e Vertical parity check even parity Exclusive OR EOR check for each charac ter Frame check If 0 is detected at the stop bit position it is assumed that an error has occurred during communication e Overrun check Overrun occurs when the next character is received while the current character is being processed 2 Bl
5. oaeen 17 1 6 Restricting Communications Access neee eeen 23 1 7 Command Lists We erae Nea 24 1 7 1 Read Command Lists eee n 24 1 7 2 Write Command Lists oee eee en 28 1 8 Communications Program Example nennen 33 Introduction Section 1 1 1 1 Introduction CompoWay F Communications Communications Specifications Transmission Procedure Host computer with Communications Output Board FLK1 2 3 4 5 6 Response frame The program for the communications functions is created in the host computer and the K3N 5 parameters are monitored set from the host computer so the explanation provided here is from the viewpoint of the host computer CompoWay F is OMRON s standard communications format for general serial communications This format uses a standard frame format as well as the FINS commands which have proven successful in OMRON s PCs so it can simplify communications between components or between personal computers and components The FINS Factory Interface Network Service protocol provides message com munications between PCs in OMRON FA networks Use a with Communications Output Board FLK1 2 3 4 5 6 for Compo Way F communications The K3N series has the following communications functions e Reading Writing parameters e Operational control e Switching setting levels The communications functions are limited to the following conditi
6. 0003 0004 0005 Scaling display value 2 Scaling input value 1 Scaling display value 1 Power supply frequency Command Present value read C00C 0000 0001 0002 0003 Maximum value read Minimum value read Status read HH set value read H set value read L set value read LL set value read 0000 Starting read address 0000 0001 0002 0003 0004 0005 0006 0007 Filler Number of elements Input type Decimal point position Average processing Hysteresis Comparative output pattern Scaling upper limit value 0000 0001 0002 0004 0005 Scaling lower limit value Upper limit compensation value Lower limit compensation value Temperature unit C00C 0000 0001 0002 0003 Standby sequence Display digit change 0000 0001 0002 Command Lists Section 1 7 K3NR Command Present value read Maximum value read Starting read address 0000 Minimum value read 0001 Status read 0002 HH set value read 0003 H se
7. 1380 RDATAS RDATAS INPUTS LOC 1 1 1390 IF RIGHTS RDATAS 1 lt gt CHRS 13 THEN LOOP 1400 RESPS RDATAS 1410 REND 1420 1430 Display received data 1440 PRINT Response RESPS 1450 GOTO REPEAT 1460 1470 EXIT 1480 Exit process 1490 CLOSE 1 1500 END 57 Communication Program Example Section 2 17 2 17 2 Operation Example 58 The following is an execution example of the previous program Bold characters represents operation and the carriage return symbol represents the RETURN Key This program cannot execute transmission normally unless the initial transmission settings of the personal computer are even parity 7 bits 2 stop bits and the same baud rate as the Processor If the connectors are not properly connected the program may stop halfway RUN gt SEND DATA OORX 2 RESPONSE 00RX00F00151000 Unit No 00 display value is read Response is as follows 000 RX 00 F0015 1000 qu Status data Display value data End code Unit No SECTION 3 BCD Communications This section provides the basic operational elements required in order to use the BCD output model Included in this section is a PC connection example Two program examples are also given 3 1 Connecting BCD Outputs eee eee ee 60 3 2 Setting before Power Application enen 64 3 3 Operations Front Key Section oee eee eee
8. Always set the SID to 0 End code Indicates the execution result for the corresponding command frame Command text This is the main component of the command Refer to 7 4 2 Command Text Composition for details MRC SRC Indicate the service being used Refer to 1 4 2 Command Text Command code Composition for details MRES SRES Indicate the transmission results Response code ETX This code 03 indicates the end of the text BCC Block Check Character e This is the BCC result for the data from just after STX until ETX e Horizontal parity 1 character display The BCC result is found by calculating the exclusive OR of the bytes from just after STX until ETX Commands and Responses Section 1 4 End Code Summary End code Meaning Normal completion The command was completed normally without any of the following errors Command error The specified command couldn t be executed The response code should indicate why the command couldn t be executed Parity error A parity error occurred in one of the characters during reception Framing error A framing error occurred in one of the characters during reception Overrun error An overrun error occurred in one of the characters during reception BCC error The received frame s BCC was incorrect Format error The command text was incorrect This error will occur w
9. Comparative output pattern 0001 to 9999 Scaling upper limit value 0000 Standard output 0001 Zone output 0002 Level output Scaling lower limit value 1999 to 9999 Upper limit compensation value 1999 to 9999 Lower limit compensation value 1999 to 9999 Temperature unit 1999 to 9999 Standby sequence 0000 0001 F Display digit change 0000 OFF 0001 ON 0 4 digits 5 digits 29 Command Lists Section 1 7 K3NR Command Starting Filler Write data write address HH set value write F0019999 to 00099999 H set value write L set value write LL set value write Operating mode i 0000 0001 0002 0003 Decimal point position 0000 0001 0002 0003 0004 Process time for averaging 3 0000 60 ms 0004 45 measured value 0001 500 ms 0005 85 0002 1s 0006 16s 0003 2s Startup compensation time i 0000 to 0999 0 1 s units Hysteresis 0001 to 9999 Comparative output pattern 0000 Standard output 0001 Zone output
10. Memory area write i Address 00 Number of elements Write data Parameter area read Parameter type Address Number of elements Parameter area write Parameter type Address Number of elements Write data Properties read En Controller status read Internode echo test Test data Operating command Command code Commands and Responses Section 1 4 1 4 3 Memory Area Write Text within the Command Frame Memory MRC SRC type Starting read address Number of elements _ 01 02 CO See section 1 5 00 0001 2 bytes 2 bytes 2 bytes 4 bytes 4 bytes N Write data Refer to 1 5 Memory Parameter Area Details 8 bytes 1 2 3 1 Memory type Memory type 2 Starting write address Specify in 4 digit hexadecimal the address of the data which you want to write Refer to 1 5 Memory Parameter Area Details for details on the starting addresses of each memory type 3 Number of elements 4 digit hexadecimal Number of elements 0001 Executes the write operation and completes it normally Note If 0000 is specified the write operation won t be executed but the command will be completed normally Any value other than 0000 or 0001 will cause a parameter error 4 Write data Specify the data which you want to write R
11. Connection method RS 422 connection Maximum 1 32 connection When using this connection Turn ON the terminal block switch at the end station Turn OFF all other terminal block switches RS 422 System Example The following example shows several Intelligent Signal Processors connected Termination resistance set to ON to a personal computer using the RS 422 connection method Personal computer host OMRON 3G2A9 AL004 E Link Adapter Refer to product literature for details Main line Link Adapter RS 422 10 m max Processor No 0 Processor No 1 Processor No n 1 Termination resistance set to OFF Termination resistance set to OFF Termination resistance set to ON Maximum number of connections is 32 total line length is 500 m maximum Use shielded twisted pair cable and route the cable separately from other sig nal lines The total length of the cable must be less than 500 m including the branch lines Each branch line may be up to 10 m long Wire the system so that short branch lines branch from the main line Turn ON the termination resistance only at the two Unit s at each end of the main line All intermediate Units must have their termination resistance turned OFF Data won t be transferred properly if an intermediate Unit has its termination resis tance ON 41 Interface Specifications Section 2 1 2 1 4 RS 485 Electrical characteristics Conforms to EIA RS 48
12. Read only data Couldn t write data because the specified area is read only Memory Parameter Area Details Section 1 5 1 5 Memory Parameter Area Details Memory K3NH K3NX K3NV K3NR and Address Data contents Data length Present value PV F0019999 to 00099999 See note 1 Double words Maximum value F0019999 to 00099999 See note 1 Minimum value FOO19999 to 00099999 See note 1 Status data 0 Present value overflow Bit 1 Present value underflow Bit 2 Maximum value overflow Bit 3 Maximum value underflow Bit 4 Minimum value overflow Bit 5 Minimum value underflow Bit6 Present value sensor error K3NH only Bit 7 Maximum value sensor error K3NH only Bit8 Minimum value sensor error K3NH only Others The remaining bits are always 0 HH set value 0019999 to 00099999 See note 1 H set value 0019999 to 00099999 See note 1 L set value 0019999 to 00099999 See note 1 LL set value F0019999 to 00099999 See note 1 Note 1 In the range is F0001999 to 00009999 when the display digit change is set to 4 digits 2 The leading X in the addresses represents the bank number in the K3NR and K3NP This digit is always 0 in the other models 3 Data values which begin with an F are negative values 4 The following diagram shows the details of t
13. 00000009 Note 1 The leading X in the addresses represents the bank number 2 Data values which begin with an F are negative values 21 Memory Parameter Area Details Section 1 5 Parameters K3NP Address Data contents Data length Operating mode 0000 to 0005 Decimal point position 0000 to 0004 Not used Not used Not used Comparative output pattern 0000 Standard output 0001 Zone output 0002 Level output Prescaling value X mantissa of input A 00000001 to 00099999 Double words Prescaling value Y exponent of input A FOOOOOO9 to 00000009 Sensor type 0000 to 1111 binary Words Time unit 0000 Prescaling value 0001 Seconds 0002 Minutes 0003 Hours minutes and seconds 0004 Minutes and seconds Note 1 The leading X in the addresses represents the bank number 2 Data values which begin with an F are negative values Parameters K3NC Address Data contents Data length Input mode 0001 or 0002 Decimal point position 0000 to 0004 Not used Not used Not used Output mode 0000 ALL H 0001 Prescaling value X mantissa of input A 00000001 to 00099999 Double words Prescaling value exponent of input A FOOOOOO9 to 00000009 Sensor type 0000 to 1111 binary Words Power
14. ASCII List balbr be bs bs b2 bi ENEN RON Even parity reels ele JEOT DC4 5 4 p T o 5 5 uU e u 6 PACK SYN v f v 7 IBELIETB 7 G w o w 8 BS CAN 1 8 H X n x 9 ype Y i v A F SUB P J 2 hz _B EG SA esee s AI TEE CR NGS ER M Tr me p E ESO ERS gt N n EE ep dj Us V joj Lo PEE 75 Appendix B List of Optional Accessories Link Adapters B500 AL001 Three RS 422 adapters for RS 422 line distribution B500 AL004 Connectors XM2A 0901 XM2A 2501 XM2D 0901 Plug D sub connector Use in combination with a Hood 77 List of Optional Accessories Appendix B Optical Link Adapter Z3RN To extend RS 232C line 78 accessories optional 77 ASCII list 75 BCC 5 BCD communications 59 BCD output connecting 60 BCD output connector connection to a PC 65 68 explanation of operation 61 input output ratings K3NC 63 K3NX K3NV K3NH K3NR K3NP 63 operations front key section 64 programs 64 setting before power application 64 timing charts 61 BCD output connectors terminal numbers 63 block check character 5 block format command 44 response 44 C command error undefined 55 command frame composition 7 data format 5 command te
15. Interface Specifications Section 2 1 2 1 Interface Specifications 2 1 1 RS 232C 25 pin Electrical characteristics Conforms to EIA RS 232C Communications Signals The following information identifies the key input output signals of the interface 14 25 OOOOOOOOOOOO OOOOOOOOOOOOO Abbreviation Frame Ground safety ground Signal direction Signal Ground or common return Send Data Output Receive Data Input Request To Send Output Can Send Input Data Set Ready Input Data Terminal Ready Connection Diagram Output The following example provides information on how the RS 232C Intelligent Sig nal Processor is to be connected to the host computer Host computer RS 232C Abbrevid Pin lation No Shielded cable Synchronization clock 38 l Processor TX RX The dotted line shows an alternative connection if this connection is made the cable becomes non directional either end of the cable can be con nected to either device Internal clock Interface Specifications Section 2 1 Cable length 15 m maximum If increasing the cable length use OMRON s RS 232C optical interface Z3RN Applicable connectors Plug 2 2501 OMRON or equivalent Hood XM2S 2511 OMRON or equivalent Connection method RS 232C direct connection 1 1 connection only The RS
16. Normal completion Command too long Operating error 2 Model number The 10 byte ASCII model number will be returned as is from the left The overall format is K3N 1 2 3 4 1 This is the fourth character in the model number H R P C X or V 2 3 These characters indicate the input specifications as shown below Characters 2113 Meaning TA K3NH NB NPN input for the K3NR K3NP or K3NC PB PNP input for the K3NR K3NP or K3NC VD K3NX DC voltage input AD K3NX DC current input VA K3NX AC voltage input AA K3NX AC current input K3NV 4 This is the Output Unit s code Number Meaning Communications RS 232C Communications RS 485 Communications RS 422 Communications Transistor output RS 232C NPN open collector Communications Transistor output RS 485 NPN open collector Communications Transistor output RS 422 NPN open collector 3 Communications buffer size Indicates the size of the communications buffer in 4 digit hexadecimal The hexadecimal number is represented in ASCII and is always 0025 37 bytes 1 4 7 Controller Status Read Text within the Command Frame MRC SRC 06 O1 2 bytes 2 bytes Response Text within the Response Frame Related MRC SRC Response code
17. iS EE EE eee 52 2 13 Model Data Read s vent sense tate det bn uwa uu a bh be 54 2814 Testa tank AN EO ER OE AE DO EE 55 2 15 Undefined Command Error eee ee 55 2 16 End Code Last rarr OR enter enk er es asas ka 56 2 17 Communication Program Example neee 56 SECTION 3 BCD Communications 59 3 1 Connecting BCD ee 60 3 2 Setting before Power Application eee eee eeen 64 3 3 Operations Front Key neee eeen 64 3 4 BCD Programs sonen i e ES IRAE en U ten OE EE EE qasaqa 64 3 5 Program Example 1 Connection to a PC eee eeen 65 3 6 Program Example 2 Connection toa PC eee eeen 68 Appendices A ASCHE TIST AE pa EE EE a ee NES 75 Last of Optional Accessories SR RE d evene ale RETE 77 Index i22 San gi ao Pasa MUN Sande EE 79 Revision History 81 vii About this Manual This manual explains the communications functions of the Intelligent Signal Processors and includes the sections described below Please read this manual carefully and be sure you understand the information provided before attempting to use the communications functions in Intelligent Signal Processors Also read the operation manual for the Intelligent Signal Processor to be used Operation Manual N90 E1
18. 00099999 Scaling display value 1 20019999 to 00099999 Power supply frequency 0000 50 Hz 0001 60 Hz 28 Command Lists Section 1 7 K3NH Command HH set value write Starting write address H set value write L set value write LL set value write Filler Write data FOO19999 to 00099999 Input type Decimal point position 0000 Jpt100 0001 0002 0003 0004 0005 0006 0007 0008 0009 0010 0011 0012 0013 0014 0015 0016 0017 4 to 20 mA 0018 Oto 20 mA 0019 1to5V 0020 Oto5V 0021 1to10V 0001 0002 0003 Average processing 0000 Hysteresis 0000 No averaging 0001 Moving average 2 times 0002 Moving average 4 times 0003 Moving average 8 times 0004 Moving average 16 times 0011 Simple average 2 times 0012 Simple average 4 times 0013 Simple average 8 times 0014 Simple average 16 times
19. 0015 Simple average 2 4 8 16 or 32 times Startup compensation time 0000 to 0999 Hysteresis 0001 to 9999 Comparative output pattern 0000 Standard output 0001 Zone output 0002 Level output Scaling input value 2 F0019999 to 00099999 Double words Scaling display value 2 20019999 to 00099999 Scaling input value 1 0019999 to 00099999 Scaling display value 1 0019999 to 00099999 Power supply frequency 0000 50 Hz 0001 60 Hz Note Data values which begin with an F are negative values Parameters K3NV Address Data contents Data length Input range 0000 to 0002 Decimal point position 0000 to 0004 Average processing 0000 No averaging 0001 to 0005 Moving average 2 4 8 16 or 32 times 0011 to 0015 Simple average 2 4 8 16 or 32 times Startup compensation time 0000 to 0999 Hysteresis 0001 to 9999 Comparative output pattern 0000 Standard output 0001 Zone output 0002 Level output Scaling input value 2 F0019999 to 00099999 Double words Scaling display value 2 20019999 to 00099999 Scaling input value 1 0019999 to 00099999 Scaling display value 1 0019999 to 00099999 Power supply frequency 0000 50 Hz 0001 60 Hz
20. Commands and Responses Section 1 4 K3NC Meaning Operating format decimal point position and comparative output pattern Prescaling value X mantissa of input A and prescaling value Y exponent of input A Sensor type power failure memory and compensation input condition Compensation value 2 Starting read address Specify in 4 digit hexadecimal the address of the data which you want to read Refer to 1 5 Memory Parameter Area Details for details on the starting addresses of each parameter type 3 Number of elements Number of elements 8001 Executes the read operation and completes it normally Note If 8000 is specified the read operation won t be executed but the command will be completed normally Any value other than 8000 or 8001 will cause a parameter error Response Text within the Response Frame MRC SRC Response code Parameter type Starting read address Number of elements 02 01 I 2 bytes 2 bytes 4 bytes 4 bytes 4 bytes 4 bytes N Read data 8 bytes max 1 2 3 1 Response codes Response code Meaning 0000 Normal completion 1001 Command too long 1002 Command too short 1100 Parameter error 1101 Area type error 1103 Starting address out of range error 2203 Operating error 2 Parameter type and starting read address The parameter
21. Individual inputs 0001 Phase difference inputs 0000 0001 0002 0003 0004 Prescaling value Y exponent of input A Sensor type 0000 ALL H 0001 ALL L 00000001 to 00099999 Power failure memory Compensation input condition Compensation value 32 F0000009 to 00000009 0000 Normally open transistor input or active H voltage pulse input 0100 Normally closed transistor input or active L voltage pulse input 1000 Normally open relay input 1100 Normally closed relay input 0000 Disabled 0001 Enabled C82A 0000 Disabled 0001 Enabled F0019999 to 00099999 Communications Program Example Section 1 8 K3NV Command HH set value write H set value write L set value write LL set value write Starting write address Filler Write data FOO19999 to 00099999 Input range Decimal point position Average processing Startup compensation time Hysteresis Comparative output pattern Scaling input value 2 Scaling display value 2 Scaling input value 1 Scaling display value 1 Power supply frequency 1 8 Communications Program
22. K3NX K3NV K3NH K3NR K3NP K3NC Communication Output type Intelligent Signal Processor OPERATION MANUAL OMRON K3NX K3NV K3NH K3NR K3NP K3NC Communication Output type Intelligent Signal Processor Operation Manual Produced February 1998 Notice OMRON products are manufactured for use according to proper procedures by a qualified operator and only for the purposes described in this manual The following conventions are used to indicate and classify precautions in this manual Always heed the information provided with them Failure to heed precautions can result in injury to people or dam age to property DANGER Indicates an imminently hazardous situation which if not avoided will result in death or serious injury WARNING Indicates a potentially hazardous situation which if not avoided could result in death or serious injury Caution Indicates a potentially hazardous situation which if not avoided may result in minor or mod erate injury or property damage OMRON Product References All OMRON products are capitalized in this manual The word Unit is also capitalized when it refers to an OMRON product regardless of whether or not it appears in the proper name of the product The abbreviation Ch which appears in some displays and on some OMRON products often means word and is abbreviated Wd in documentation in this sense The abbreviation means Progra
23. Normal completion 1001 Command too long 1002 Command too short 1100 Parameter error 1101 Area type error 1103 Starting address out of range error 2203 Operating error 2 Read data The specified data is transferred in 8 digit hexadecimal Only the status data is bit information Refer to 1 5 Memory Parameter Area Details for details on the data 1 4 2 Command Text Composition Valid Command Codes Command Action Comments MRC SRC Memory area read Reads or writes the present value PV maximum value minimum value status Memory area write set value Parameter area read Reads or writes settings other than present values Parameter area write Properties read Reads information such as model number and buffer size which the host computer uses to verify the upper limit of the data length Controller status read Reads operational status information Internode echo test Returns data sent from the host computer unchanged Operating command Executes hold reset forced zero max min value reset remote local selection or mode selection Command Frame Composition STX Node No Sub address SID ETX 02 x101 x100 00 0 Command text 03 mrc src Data Command Memory area read 3 i Memory type Address 00 Number of elements
24. 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 Interface Specifications 2 1 1 5 232 25 pin 2 1 2 5 232 9 pin 2 1 3 5 422 2 1 4 5 485 Before Applying Power General RS 232C RS 422 RS 485 Specifications Communications and Error Control 2 4 1 Communications Control Procedures 2 4 2 Block Format 2 4 3 Error Control Commands and Responses 2 5 1 Command Response Format Data 2 5 2 Command List Reset Control Maximum Minimum Value Reset Set Value Write K3NX K3NV K3NH Communication Comparative Output Set Value Write K3NR K3NP K3NC Communication Comparative Output Set Value Read K3NX K3NV K3NH Communication Comparative Output Set Value Read K3NR K3NP K3NC Communication Comparative Output Maximum Minimum Read Display Value PV Value Read 2 220 eh Model Data Read Undefined Command Error End Code List Communication Program Example eee 2 17 1 Program Example of RS 232C Communication 2 17 2 Operation Example 38 38 39 40 42 43 43 44 44 44 45 46 46 46 46 47 48 49 50 51 52 54 55 55 56 56 56 58 series 37
25. 24 RUN IN ANN CD 1 n NI v GEO Ae 25 COMMON EEN His ransistor Output Uni 26 REQUEST W EN 2400 PD 5 V 240 Q 8 8 9 o eN 30 RESET OUT 2 1 Yes 240 Q 31 POLARITY COM i 240 Q ity 0 V Polarity 24 VDC OAV V DC power supply 60 Connecting BCD Outputs Section 3 1 Operation Timing Charts Sampling Data Output at Each Sample Continuous Data Output Note Note When a REQ signal is input to the Processor from a PG the data is confirmed after an interval of approx 30 ms and a DATA VALID D V signal is output from the Processor Read the data when the DATA VALID signal is ON Connection between PC and Processor should be performed with a rear panel transmission connector When one PC Unit is connected with several Processor Units it is possible to achieve a wired OR connection between the DATA including POL OVER and DATA VALID signals Data cannot be written from a PC to a Processor Data is confirmed after approx 30 ms from the REQ signal rising time and DATA VALID signal is output Read data while DATA VALID signal ON The DATA VALID signal is turned OFF after an interval of 40 ms then data is turned OFF after an interval of 16 ms Pulse of 20 to 50 ms duration REQ Max Min DATA All data H X DATA X data H DATA
26. E TIRE EID xii 4 Noise Prevention 55 5o be oee pet ge n eee tiep ES CEREREM xiii SECTION 1 CompoWay F Communications Procedures lel iIntroduction warten aa a te ed 2 1 2 Preparation For Operation eee eee eee 3 153 Data Format EE EO EC RR RC Ata OE ES EE E 5 1 4 Commands and Responses ae 6 1 5 Memory Parameter Area Details onee eee 17 1 6 Restricting Communications EE EE EE eee 23 1 7 Command Lists orn er werd erdee ded IURE kuqa 24 1 8 Communications Program Example neee 33 SECTION 2 Host Link Communications 37 2 1 Interface Specifications serso nas vee aa aten eR eeen Ba 38 2 2 Before Applying Power snaren set eten ivan ee ee ed de 43 2 3 General RS 232C RS 422 RS 485 Specifications 43 2 4 Communications and Error Control eee 44 2 5 Commands and Responses eee 46 2 6 Reset Control Maximum Minimum Value Reset 46 2 7 Set Value Write K3NX K3NV K3NH Communication Comparative Output 47 2 8 Set Value Write K3NR K3NP K3NC Communication Comparative 48 2 9 Set Value Read K3NX K3NV K3NH Communication Comparative Output 49 2 10 Set Value Read K3NR K3NP K3NC Communication Comparative Output 50 2 11 Maximum Minimum Read eee eee 51 2 12 Display Value PV Value
27. HOLD Input Hold input B Output unit 0210 See Note 29 HOLD Input Hold input C Output unit 0211 See Note 30 RESET Input Reset input A Output unit 0212 See Note 30 RESET Input Reset input B Output unit 0213 See Note 30 RESET Input Reset input C Output unit 0214 See Note 31 31 31 POL Output Positive negative polarity Input unit 0107 signal Note marked with an asterisk is not used in this program 69 Program Example 2 Connection to a Section 3 6 3 6 3 DM Data Memory Area Read data is stored in the memory below Word 000 Word 001 Word 002 00 bit 10 digit 00 03 bit 103 digit 12 15 bit 102 digit 08 11 bit 101 digit 04 07 bit 100 digit 00 03 bit Word 010 Word 011 Word 012 00 bit 104 digit 00 03 bit 103 digit 12 15 bit 102 digit 08 11 bit 101 digit 04 07 bit 100 digit 00 03 bit 00 bit 104 digit 00 03 bit 103 digit 12 15 bit 102 digit 08 11 bit 101 digit 04 07 bit 100 digit 00 03 bit 70 Program Example 2 Connection to a Section 3 6 3 6 4 Ladder Program The following diagram illustrates the flow and order of signals 00106 00110 00112 00113 00000 m L DIFU A RUN B RUN C RUN REQ 00500 00500 00002 MOV START DI 0001 FU 004 00502 00004 A D V D E 7 00504 B D V D I
28. RUN status information 06 01 2 bytes 2 bytes 4 bytes 4 bytes 4 bytes 1 2 3 1 Response codes Response code Meaning Normal completion Command too long Operating error 13 Commands and Responses Section 1 4 2 RUN status Operating in RUN mode Operating in setting mode Performing output test 3 Related information The related information binary is returned as 2 digit ASCII code r X16 X162 ar X16 y x169 4 123 22 2112923 23 2129 23 24121 20 23 24121 29 Bank No see note HOLD status RESET status Forced zero status LL comparative output OUT1 L comparative output OUT2 H comparative output OUT4 HH comparative output OUT5 PASS output OUT3 Local remote status 0 local 1 remote A 0 will be returned for a function if the Unit isn t equipped with that function The output numbers in parentheses are for the K3NC Note Refer to the following table for the bank number that has been set These are valid only for the K3NP and Bank No 1 4 8 Internode Echo Test Text within the Command Frame MRC SRC Test data 08 01 2 bytes 2 bytes 20 bytes max The test data can be any arbitrary data 1 to 20 bytes although the bytes of data must be within the following ranges 20 to FF hexadecimal when the number of data bits is set to 8 20 to 7F hexadecimal
29. VALID Approx 40 ms 30 ms 16 ms The above Max and Min are not effective in the When the REQ signal remains ON measurement data is output at intervals of 64 ms When a hold operation or another operation is performed during the change from DATA 1 to DATA 2 the BCD data output is either DATA 1 or DATA 2 at the hold signal timing Read maximum or minimum data when DATA VALID signal turns ON after a 30 ms interval from maximum or minimum signal ON time to confirm measurement data The RUN signal is ON during RUN mode or TEST mode Note that the RUN signal is turned OFF when an error other than overflow or underflow occurs Max Min DATA All data H 1 DATA 2 DATA VALID lt x Ra 3 o R 3 o o a 3 o R 3 D The above Max and Min are not effective in the When a HOLD signal is input the Processor stops accepting input and the data received just before the HOLD signal is retained and displayed The same func tion is available in 5 7 terminal ON HOLD Qu ENE De m T AR ENS CNN 61 Connecting BCD Outputs Section 3 1 When RESET signal is input ON the maximum or minimum value becomes the current PV value RESET RER value before RESET ON Max value after RESET PV value RESET ee Minimum data NN
30. being supplied Doing so may result in serious electrical shock or electrocution Never touch any of the terminals while power is being supplied Doing so may result in serious electrical shock or electrocution Application Precautions Observe the following precautions when using the product Always use the power supply voltage specified in the specifications e Do not use the product in locations subject to flammable gases or combustible objects e Be sure to confirm terminal names when wiring e Be sure to tighten the screws on the terminal blocks Observe the following precautions when mounting the product e Mount the product on level surfaces e Mount the product on a panel which has a thickness of 1 to 3 2 mm Do not mount the product in the following places Locations subject to strong shock or vibration e Locations subject to temperature or humidity exceeding the rated levels or where icing is liable to occur Locations subject to dust Locations subject to corrosive gases particularly sulfuric gases or ammonium gases e Locations subject to direct sunlight or outdoor conditions Locations near devices high frequency welders or high frequency sewing machines that produce high frequency noise Noise Prevention Section 4 4 Noise Prevention Provide the following countermeasures when using the product in an environ ment where the product is exposed to noise Countermeasures for pro
31. eere RESET PV value POL output becomes L at positive pole or at negative pole POL OVER output is formed when BCD output data becomes overflow underflow data Input Permitted span Underflow OVER l In set value mode or scaling mode no BCD output is formed all outputs become H In TEST mode the test PV value currently input is output in both REQ maxi mum and REQ minimum signals When two or more input signals are input simultaneously or when a signal is input during another input all the output data is turned OFF Do not turn ON two or more input signals at the same time except for the HOLD signal COMPENSATION is available only in the K3NC The compensation input changes the display to a value the compensation value set in advance The compensation input operates on the leading edge of the signal Display en 62 Compensation input ON ON The display is changed to the preset value when the compensation input goes from OFF to ON Connecting BCD Outputs K3NX K3NV K3NH K3NR K3NP VO Ratings VO signal name REQ HOLD Max Min RESET Input voltage Section 3 1 No voltage contact input Input current 10 mA max Signal level voltage High When OFF 3 V min Low When ON 1 5 V max DATA POL OVER DATA VALID RUN K3NC VO Ratings signal name REQUEST COMPENSATION RESET Rated load vo
32. failure memory 0000 Disabled 0001 Enabled Compensation input condition 0000 Unconditional 0001 Only when adding Compensation value FOO19999 to 00099999 Double words Note 1 The leading X in the addresses represents the bank number 2 Data values which begin with an F are negative values 22 Restricting Communications Access Section 1 6 1 6 Restricting Communications Access 1 2 3 Control of the Unit through the communications interface can be restricted in two ways e Restricting Access with Protect Settings The protect mode s security setting can be used to write protect the set values The write protected set values can be read through the communications inter face but not changed e Restricting Access with the Remote Local Processing Setting The remote local processing setting determines whether set values can be overwritten by key operations or through the communications interface Change the mode setting as necessary to enable settings to be changed locally or remotely The remote local processing setting can be changed through the communications interface or by key operations in the option menu 1 Restrictions in remote processing In remote processing settings cannot be changed with key operations Only the remote local switch operating command is valid If you attempt to change a displayed setting in remote
33. pattern 0004 Scaling input value 2 0005 Scaling display value 2 0000 Scaling input value 1 0001 Scaling display value 1 0002 Power supply frequency 0003 0000 27 Command Lists Section 1 7 1 7 2 Write Command Lists K3NX Command Starting Filler Write data write address HH set value write i F0019999 to 00099999 H set value write L set value write LL set value write Input range 0000 0001 0002 0003 0004 Decimal point position 0000 0001 0002 0003 0004 Average processing 0000 No averaging 0001 Moving average 2 times 0002 Moving average 4 times 0003 Moving average 8 times 0004 Moving average 16 times 0005 Moving average 32 times 0011 Simple average 2 times 0012 Simple average 4 times 0013 Simple average 8 times 0014 Simple average 16 times 0015 Simple average 32 times Startup compensation time 0000 to 0999 0 1 s units Hysteresis 0001 to 9999 Comparative output pattern 0000 Standard output 0001 Zone output 0002 Level output Scaling input value 2 00 0019999 10 00099999 Scaling display value 2 F0019999 to 00099999 input value 1 0019999 to
34. processing with the keys a message will appear indicating that the Unit is in remote processing and the display will revert to the previous set value display All settings which aren t write protected can be changed through the com munications interface when the Unit is in settings mode Only set values can be changed while the Unit is in RUN mode Changes to settings are reflected in the display immediately 2 Restrictions in local processing In local processing settings cannot be changed through the communica tions interface data write commands If you attempt to change a setting in local processing with a data write com mand a mode error response will be returned and the setting will not be overwritten There are no restrictions on the data read commands 23 Command Lists Section 1 7 1 7 Command Lists 1 7 1 Read Command Lists K3NX K3NH 24 Command Present value read Maximum value read Minimum value read Status read HH set value read H set value read L set value read LL set value read Starting read address 0000 0001 0002 0003 0004 0005 0006 0007 Filler Input type Decimal point position Average processing Startup compensation time Hysteresis Comparative output pattern Scaling input value 2 0000 0001 0002
35. regard to 0013 ON time only one data sample is read from each Processor 3 6 2 VO Allocation in Use Terminal No Signal Description allocation direction ISP A ISP B ISP C GND VO Output 1 Read data 109 digit Input unit 0000 Output Read data 109 digit Input unit 0001 Output Read data 100 digit Input unit 0002 Output Read data 109 digit Input unit 0003 Output Read data 101 digit Input unit 0004 Output Read data 101 digit Input unit 0005 Output Read data 101 digit Input unit 0006 Output Read data 101 digit Input unit 0007 Output Read data 102 digit Input unit 0008 Output Read data 102 digit Input unit 0009 Output Read data 102 digit Input unit 0010 Output Read data 102 digit Input unit 0011 Output Read data 103 digit Input unit 0012 Output Read data 103 digit Input unit 0013 Output Read data 103 digit Input unit 0014 Output Read data 103 digit Input unit 0015 RWIN INI o AJOIN A A A A A AIN P a N Program Example 2 Connection to a PC Section 3 6 Terminal No Signal Signal Description VO allocation direction ISP A ISP B ISP C 18 18 18 RD5 1 Output 1 Read data 104 digit Inp
36. the data transmission right is shifted with every one block of data transmitted When a command block is transmitted a response block is always returned lt Host gt lt Processor gt 8 ge Q 2 c 5 o E 6 5 5 I Command block Response block Unit numbers correspond to device numbers in a PC system When assigning unit numbers for several units be sure to avoid duplication of the settings 2 4 2 Block Format 44 The block transmitted from the host computer is referred to as a command block The block transmitted from the Processor is referred to as a response block One block begins with the start character and communication address and ends with the FCS and terminator FCS Terminator Unit No Header 001099 code Note The 2 symbol rep resents a carriage FCS range of calculation return ASC DH Data characters are in ASCII The FCS frame check sequence is formed by converting the 8 bit data obtained by converting the exclusive logical sum of to the last text character into two ASCII characters Be sure to attach the FCS to the end of the text Communications and Error Control Section 2 4 FCS calculation example The following command would cause an error if actually transmitted it is shown simply to help explain calculation of the FCS EER ERA MA RE MEME NE NE ET Unit No Header code Text FCS FCS 40H e
37. type and starting read address specified in the command will be returned 3 Read data The data specified in the command will be returned 4 Number of elements The number of elements specified in the command will be returned 10 Commands and Responses Section 1 4 1 4 5 Parameter Area Write Text within the Command Frame MRG SRC Parameter type Starting write address Number of elements n 02 02 See 1 below See section 1 5 8001 2 bytes 2 bytes 4 bytes 4 bytes 4 bytes Write data Refer to 1 5 Memory Parameter Area Details 8 bytes max 1 2 3 1 Parameter type K3NH Type Meaning 8000 Input type decimal point position average processing hysteresis and comparative output pattern COOC Scaling upper limit value scaling lower limit value upper limit compensation value and lower limit compensation value 8824 Temperature unit standby sequence and display digit change K3NX Type Meaning 8000 Input range decimal point position average processing startup compensation time hysteresis and comparative output pattern COOC Scaling input value 2 scaling display value 2 scaling input value 1 and scaling display value 1 8824 Power supply frequency K3NV Type Meaning 8000 Input range decimal point position average processing startup compensation time hysteresis and comparative outp
38. value SP H set value SP L set value L LL set value lt SP represents space End code when error occurs e In non comparative output type End code is 16 without corresponding com mand In comparative output type without corresponding set value End code is 22 without corresponding memory Note Set value is expressed in five figures of ASCII Negative sign is represented by F at the position of the 104 digit 47 Set Value Write K3NR K3NP K3NC Communication Comparative Output Section 2 8 2 8 Set Value Write Communication Comparative Output This set value write is effective only in models with K3NR K3NP K3NC commu nication and comparative output The set values HH H L and LL of the banks not in use are written individually Other set values HH H L and LL are written individually Refer to the following Note 2 operands Command Format Set value data X103 X102 X101 VRY CU J Header Bank No Set value data Terminator code 01 to 04 HH set value data H set value data set value data LL value data SP represents a space Response Format Response at normal end End code 00 Terminator H H HH set value H SP H set value L SP L set value L L LL set value SP represents a space End code when error occurs
39. value write Operating mode 0000 F1 0003 F4 0001 F2 0004 F5 0002 F3 0005 F6 Decimal point position 0000 0001 0002 0008 0004 Comparative output pattern 0000 Standard output 0001 Zone output 0002 Level output Prescaling value X mantissa COOC 00000001 to 00099999 of input A Prescaling value Y exponent FOOOOOO9 to 00000009 of input A Sensor type See note Time unit 0000 Prescaling value 0001 Seconds 0002 Minutes 0003 Hours minutes seconds 0004 Minutes and seconds Setting Setting Normally open transistor input or active H voltage pulse input for IN A for IN B Normally closed transistor input active L voltage pulse input Normally open relay input Normally closed relay input 31 Command Lists Section 1 7 K3NC Command OUT1 set value write OUT2 set value write OUTS set value write OUT4 set value write OUTS set value write Starting write address Filler Write data FOO19999 to 00099999 Input mode Decimal point position Output mode Prescaling value X mantissa of input A 0000
40. when the number of data bits is set to 7 Note The test data isn t checked for out of range values Response Text within the Response Frame MRC SRG Response code Test data 08 01 2bytes 2 bytes 4 bytes 20 bytes max 14 Commands and Responses Section 1 4 1 2 3 1 Response codes Response code Meaning Normal completion Command too long Operating error 2 Test data The test data sent by the command is returned unchanged 1 4 9 Operating Command Text within the Command Frame Command MRC SRC code Sub code 307 05 2 bytes 2 bytes 2 bytes 2 bytes The following table shows the four command codes and the sub codes for commands that require them Command Sub code Reset maximum and None minimum values Forced zero 00 Clear forced zero setting 01 Execute Invalid for the KSNP KSNC and Remote local 00 Local 01 Remote programming Switch mode 00 RUN mode 01 Setting mode Response Text within the Response Frame Command MRC SRC Response code code 30 05 2 bytes 2 bytes 4 bytes 2 bytes 1 2 3 1 Response code Response code Meaning 0000 Normal completion 1001 Command too long 1002 Command too short 1100 Parameter error 2203 Operating error 2 Command code The
41. which interface is incorporated in the models with Communications Output Board FLK1 4 RS 232C with Communications Output Board FLK2 5 RS 422 with Communications Output Board FLK3 6 RS 485 1 2 Preparation For Operation 1 2 1 Wiring RS 232C RS 232C connections are one to one The max cable length is 15 m Use an RS 232C optical interface when extend ing the transmission line beyond 15 m Use a shielded twisted pair cable AWG 28 or larger Host computer RS 32C Processor 25 pin RS 232C i Pi Pin Abbrevi EE Nc lation MAX232C or equivalent FG 1 1 FG fs SG 7 SG m TX SD 2 2 50 A lt RD 3 L 3 RD p gt RS 4 4 RS RX CS 5 J 5 CS DR 6 x 6 DR ER 20 20 ER Shielded cable FLK1 Host computer RS 232C Processor 9 2326 MAX232C or equivalent Abbrevi Pin Pin Abbrevi EET ation No No ation SG 5 5 SG SD 3 3 sp HT lt lt TX RD 2r RD gt RX RS 71 7 RS CS 8 CS DR 6 7 6 ER 4 4 Safety Shielde
42. write See Note 1 Set value write only with bank See Note 2 Set value read See Note 1 Set value read only with bank See Note 2 Hold data read See Note 3 Display value PV read Model data read Test Note 1 Effective only in communication plus comparative output type 2 Effective only in K3NR and communication plus comparative output type 3 Not effective in K3NC 2 6 Reset Control Maximum Minimum Value Reset The same operation resulting from input to the reset terminal is executed through communication The reset control for the KSNC functions as a reset for the measured values Command Format Header code Terminator 46 Set Value Write K3NX K3NV K3NH Communication Comparative Output Section 2 7 Response Format Response at normal end End code 00 Header code Terminator When this command ends normally a reset is performed 2 7 Set Value Write K3NX K3NV K3NH Communication Comparative Output This set value write is effective only in models with communication and compar ative output The set values HH H L and LL are written individually Command Format Set value data Terminator H H HH set value data H SP H set value data SP represents a space L SP L set value data L L LLset value data Response Format Response at normal end End code 00 Terminator H HH set
43. 1 K3NH Operation Manual N92 E1 1 K3NR Operation Manual N93 E1 1 K3NP Operation Manual N94 E1 1 K3NC Operation Manual N95 E1 1 K3NV Operation Manual N91 E1 1 When the K3NLI Intelligent Signal Processor is being used in one of the following applications be sure to allow ample margin in the ratings and characteristics use the necessary safety measures such as fail safe systems and consult with your OMRON representative Section 1 describes communications using the CompoWay F format CompoWay F is OMRON s standard communications format for general serial communications so it can simplify communica tions between components or between personal computers and components Section 2 provides information on host link communications Host link communications provide com patibility with earlier K3T series Units Section 3 provides the basic operational elements required in order to use the BCD output model and gives two programming examples Appendix A provides an ASCII list Appendix B provides a list of optional accessories NNARNING Failure to read and understand the information provided in this manual may result in personal injury or death damage to the product or product failure Please read each section in its entirety and be sure you understand the information provided in the section and related sections before attempting any of the procedures or operations given ix PRECAUTIONS This section pr
44. 173 U S A Tel 1 847 843 7900 Fax 1 847 843 8568 OMRON ASIAPACIFIC PTE LTD 83 Clemenceau Avenue 11 01 UE Square Singapore 239920 Tel 65 835 3011 Fax 65 835 2711 MRON d N Authorized Distributor J Cat No N96 E1 1 Note Specifications subject to change without notice AAA um NOLLVHAdO 1085800 jeubls edA indinO 13 96 ON
45. 232C Intelligent Signal Processor is configured as DTE Data Terminal Equipment therefore no host side CD Carrier Detect can be supported If the host computer requires a CD signal support this signal by pulling up from the host side When using this connection short circuit RS with CS and DR with ER at the host computer side 2 1 2 RS 232C 9 pin Communications Signals Signal Frame Ground safety ground Electrical characteristics Conforms to EIA RS 232C The following information identifies the key input output signals of the interface Abbreviation Signal direction Signal Ground or common return Send Data Output Receive Data Input Request To Send Output Can Send Input Data Set Ready Input Data Terminal Ready Connection Diagram Output The following example provides information on how the RS 232C Intelligent Sig nal Processor is to be connected to the host computer Host computer Processor 85 2320 RS 232C MAX232C or equivalent Shielded cable shield grounding 39 Interface Specifications Section 2 1 Synchronization clock Internal clock Cable length 15 m maximum If increasing the cable length use OMRON s RS 232C optical interface Z3RN Applicable connectors Plug XM2D 0901 OMRON or equivalent Hood XM2D 0911 OMRON or equivalent Connection method RS 232C direct connection 1 1 connection on
46. 5 Communications Signals The following information identifies the key input output signals of the interface 18 14 20 21 22 23 24 25 26 Jeorerelrelelel Terminal Block SW Sins Abbrevistion Signal direction Inverted output Negative side Input output Non inverted output Positive side Input output 18 Connection Diagram The following example provides information on how the RS 485 Intelligent Sig nal Processor is to be connected to the host computer Intelligent Signal Processor side Turn OFF all terminal VDD SN751177N or equivalent Host computer block switches RS 485 except at the end station V ation Terminal Termi Abbrevi 2200 block switch H nal ation EREA ER PE U Ir Pe Shielded cable Processor end station RS 485 Terminal block switch Termi Abbrevi 220 Q manaa 2 Terminal block switch ON at the end station Shielded cable Synchronization clock Internal clock Total line length 500 m maximum Recommended cable CO HC ESV 3P x 7 0 2 Hirakawa Densen Connection method RS 485 connection Maximum 1 32 connection In this case the SYSMAC BUS wire type cannot be connected 42 General RS 232C RS 422 RS 485 Specifications Section 2 3 t2 2 Before Applying Power Terminator Designation For the RS 422 and RS 485 Models designate the Intelligent Signal Processor located at the right end of the transmission line as an end stati
47. 64 34 BCED Programs venere pb toeren bewe bebt eet seo 64 3 5 Program Example 1 Connection toa PC 65 3 5 1 Explanation of Operation eenen eee 65 3 5 2 Allocation in Use an says oee Meet E RE RE ee be 65 3 5 3 DM Data Memory Area 66 3 5 4 adder Program enan E ne LENDERS LR 67 3 525 Timing ate ette ELEN uen c 68 3 6 Program Example 2 Connection toa PC 68 3 6 1 Explanation of Operation oee 68 3 6 2 Allocation in Use eee 68 3 6 3 DM Data Memory Area eee eee eee 70 3 6 4 Ladder Program nar oan en eenen ete ne ee SA e SE ae pee 71 3 6 5 Timing Chart anssen opreed ee eg AARLE 73 59 Connecting BCD Outputs Section 3 1 3 1 Connecting BCD Outputs The BCD output type Processor is convenient when connecting directly with a PC or personal computer Refer to the following connection example Intelligent Signal Processor PC SYSMAC DC Input Unit 1 COMMON COM 777 T 2 1 N NN A a 3 2 PS GL ha 100 L 1 4 4 NS VW 4 YM 3 5 I 5 8 NE vw i Era ha g ae EE 1 ER 23 DATA VALID L es
48. Example Program Example for RS 232C Communication 0000 0001 0002 0000 0001 0002 0003 0004 0000 No averaging 0001 Moving average 2 times 0002 Moving average 4 times 0003 Moving average 8 times 0004 Moving average 16 times 0005 Moving average 32 times 0011 Simple average 2 times 0012 Simple average 4 times 0013 Simple average 8 times 0014 Simple average 16 times 0015 Simple average 32 times 0000 to 0999 0 1 5 units 0001 to 9999 0000 Standard output 0001 Zone output 0002 Level output 00 0019999 to 00099999 0019999 to 00099999 0019999 to 00099999 FOO19999 to 00099999 0000 50 Hz 0001 60 Hz In this program transmission data is input in command format from the com puter keyboard When the corresponding response data is returned from the Processor it is displayed on the computer screen Input the data to be transmitted beginning with the unit number and ending with the number of elements If this program is not executed correctly there may be a transmission error check the communications
49. FD 00506 C D V D 7 00200 00008 SP ER A PVREQ 00105 00109 00111 A D V B D V 00105 DIFU 00502 00501 00018 A D V D 000 D0000 FUN83 001 0000 D0001 FUN82 001 0007 D0002 00401 00201 00022 E O DFM SELE 00105 00109 00111 DIFU A D V B D V C D V 00503 00109 DIFD B D V 00504 71 Program Example 2 Connection to a Section 3 6 72 This diagram is a continuation from the previous page 00032 00036 ISP SELE C PVREQ 00105 00109 00111 C D V CT BIT 00111 DIFD C D V 00506 00046 MOV 000 00020 00050 Program Example 2 Connection to a Section 3 6 3 6 5 Timing Chart The following example illustrates the relative timing and duration of each input output signal nn MR RUN START DU START ss es EE Differentiation at START signal rise time D V A NEU OR DU D V A Differentiation at DATA VALID signal rise time of A DD D V A Differentiation at DATA VALID signal fall time of A REQ B NES EMO D V B EE ee es DU D V B Differentiation at DATA VALID signal rise time of A DD D V B Differentiation at DATA VALID signal fall time of A REQ C D V C EE M N 7 Es DU D V C Differentiation at DATA VALID signal rise time of A DD D V C Differentiation at DATA VALID signal fall time of A 73 Appendix
50. Value PV Value Read Section 2 12 Response Format Response at normal end End code 00 X End code Display value data Status data FCS 2 X109 X163 162 Ww v J Header code Display value data Terminator Status data X163 X162 161 160 23 22 21 20 23 22 21 20 23 22 2120 23 22 21 20 Overflow Underflow Forced zero function operating 0 in the K3NR K3NP and In test mode Hold input now ON compensation input under execution in the case of Bank input 1 Bank input 2 LL comparative output o OFF L comparative output 1 ON H comparative output HH comparative output PASS output see Note 2 Note 1 Display value is expressed in five figures of ASCII Negative sign is repre sented by F at the position of the 104 digit 2 The comparative outputs of K3NC status data are as follows X163 X16 X16 20 23 22 21 20 23 OUT1 comparative output 0 OFF OUT2 comparative output 1 ON OUT3 comparative output OUT4 comparative output OUT5 comparative output 53 Model Data Read Section 2 13 2 13 Model Data Read Reads model data N N Header code Terminator Command Format Response Format Response at normal end End code 00 Output spec U End code Input spec Display spec Input content Terminator Input spec Display spec Output spe
51. ad communication output 49 comparative output 49 K3TR communication output 50 K3TR comparative output 50 with bank function 50 with RS 422 485 50 with Tr communication output 50 set value write communication output 47 comparative output 47 K3TR communication output 48 K3TR comparative output 48 set values location in memory 17 SID Service ID 5 specifications communications 2 SRC command code 5 SRES response code 5 status data location in memory 17 STX 5 sub address 5 T W test 55 timing charts continuous data output 61 sampling data output 61 transmission procedure 2 wiring 3 write commands 28 Revision History A manual revision code appears as a suffix to the catalog number on the front cover of the manual Cat No N96 E1 1 Revision code The following table outlines the changes made to the manual during each revision Page numbers refer to previous version Revision code Bas Revised conten February 1998 Original production 81 OMRON CORPORATION Supervisory Control Devices Division Industrial Devices and Components Division H Q 28F Crystal Tower Bldg 1 2 27 Shiromi Chuo ku Osaka 540 6028 Japan Tel 81 6 949 6035 Fax 81 6 949 6069 Regional Headquarters OMRON EUROPE B V Wegalaan 67 69 NL 2132 JD Hoofddorp The Netherlands Tel 31 2356 81 300 Fax 31 2356 81 388 OMRON ELECTRONICS INC 1 East Commerce Drive Schaumburg IL 60
52. c Operating mode faye re r GO X16 X16 X16 Ed OO Basic model FLK 1 Host Link RS 232C T 5 K3NH value LED display model FLK 2 Host Link RS 485 V D 5 K3NX DC voltage input FLK 3 Host Link RS 422 A D 5 K3NX DC current input FLK 4 Host and comparative output value Ns qu OE FLK 5 Host Link RS 485 and A A 5 K3NX AC current input comparative output value L C 5 K3NV DC current input FLK 6 Host Link RS 422 and N B 5 K3NR P C NPN or voltage pulse input comparative output value P B 5 K3NR P C PNP input Input content K3NX K3NH co K3NV pepe perpen EE Dieselfde emee a K2 C EF uuu HEI 54 Undefined Command Error Section 2 15 Operating mode EE 1 Rotational 1 2 Individual circ speed speed inputs 2 Absolute 2 Cycle 3 Phase differ ratio ence inputs Time differ 3 erom ESEG 4 Rotational 4 Elapsed difference time 5 Flow rate 5 Length mea ratio surement Passing time 5 mena 7 Pulse counting The command content is expressed in ASCII 2 14 Test One block of data with FCS sent from the host computer is returned without altering anything Command Format excluding Header code Terminator Response Format Response at normal end End code 00 5 Arbitrary characters 10 characters max excluding v J Header code Ter
53. command code sent by the command is returned unchanged when the command was completed normally or an operating error occurred 15 Commands and Responses Section 1 4 1 4 10 Summary of Response Codes Response code 0000 Normal completion Meaning The command was completed properly 0401 Undefined command The command was incorrect 1002 Command too short Some required data was missing from the command 1003 Number of elements Data mismatch An error occurred while writing data The specified number of elements and amount of data didn t agree 1100 Parameter error The specified parameters s were incorrect 1101 Area type error The area type memory parameter specification was incorrect 1103 Starting address out of range error The specified starting address was outside of the allowed range 1104 End address out of range error The specified end address starting address number of elements was outside of the allowed range 110B Response too long The response exceeded the maximum response length 37 bytes 2203 Operating error Attempted to change a set value while in local mode Attempted to change a setting other than a set value while in RUN mode Execution wasn t possible because the startup compensation time function was being executed K3NX 3003 16
54. d cable shield FLK4 grounding RS 422 RS 422 connections can be one to one one to N when a 3G2A9 AL001 Link Adapter is used A maximum of 32 Units including the host computer can be connected in one to N systems The total cable length can be 500 m max Use a shielded twisted pair cable AWG 28 or larger Preparation For Operation Section 1 2 Be sure to turn ON the terminator switches only in the devices at each end of the transmission line Host computer RS 422 Abbrevi Processor Terminator ation RS 422 Terminal SN751177N or equivalent wa FG Pin Abbrevi 220 Q _ block switch Cc ASN No ation w o 27 RDA 9 SDA Uo NE lt d e RB 5 SDB l px SDA 6 RSA t Le x T M H SDB 1 RSB 1 6 8 V AMO SG 3 SG joe 220 Q lt lt The terminator Shielded cable must have a mini mum resistance of The terminator 220 Q is set with the terminal block switch 100 Q RS 485 RS 485 connections can be one to one or one to N A maximum of 32 Units including the host computer can be connected in one to N systems The total cable length can be 500 m max Use a shielded twisted pair cable AWG 28 or larger Be sure to turn ON the terminator switches only in the devices at each end of the transmission line
55. e In non comparative output type End code is 16 without corresponding com mand In comparative output type without corresponding set value End code is 22 without corresponding memory Note 1 Set value is expressed in five figures of ASCII Negative sign is represented by F at the position of the 104 digit 2 Comparative operands for the K3NC are as follows Comparative set value data for OUT5 Comparative set value data for OUT4 Comparative set value data for OUT3 Comparative set value data for OUT2 Comparative set value data for OUT1 48 Set Value Read K3NX K3NV K3NH Communication Comparative Output Section 2 9 2 9 Set Value Read K3NX K3NV K3NH Communication Comparative Output This set value read is effective only in models with communication and compara tive output The set values HH and LL are read individually Terminator 908 H H HH set value H SP H set value L SP L set value L L LL set value Response Format Response at normal end End code 00 Header code Set value data Terminator H H HH set value data H SP H set value data L SP L set value data L L LL set value data Response format when an error occurs N dd Header code Terminator H H H SP L SP L L End code when error occurs e In non comparative output type End code is 16 without corresponding com
56. efer to 1 5 Memory Parameter Area Details for details on the write data Response Text within the Response Frame Response codes MRC SRC Response code 01 02 2 bytes 2 bytes 4 bytes Response code Meaning Normal completion 0000 1001 Command too long 1002 Command too short 1100 Parameter error 1101 Area type error 1103 Starting address out of range error 2203 Operating error 3003 Read only data Note The write operation won t be executed unless the response code is 0000 Commands and Responses Section 1 4 1 4 4 Parameter Area Read Text within the Command Frame Parameter MRG SRC type Starting read address Number of elements 02 01 See 1 See section 1 5 8001 2 bytes 2 bytes 2 bytes 4 bytes 4 bytes 1 2 3 1 Parameter type K3NH Type Meaning 8000 Input type decimal point position see note average processing hysteresis and comparative output pattern COOC Scaling upper limit value scaling lower limit value upper limit compensation value and Lower limit compensation value 8824 Temperature unit standby sequence and display digit change Note An error response will be returned if a temperature input in t has been selected for the input type K3NX Type Meaning 8000 Input ran
57. end character 1380 RDATAS RDATAS INPUTS LOC 1 1 1390 IF LEN RDATAS lt 2 HEN LOOP 1400 IF MIDS RDATA 2 LEN RDATAS 2 1420 1430 1440 Display received data 1450 PRINT Response 5 5 1460 GOTO REPEAT 1470 1480 EXIT 1490 Exit process 1500 CLOSE 1 1510 END 34 Communications Program Example Section 1 8 Operation Example The following is an execution example of the previous program read display data for Unit No 00 The DE symbol represents the Return Key This program cannot execute trans mission normally unless the initial transmission settings of the personal com puter are even parity 7 data bits 2 stop bits and the 5 baud rate is the same as the Processor s If the connectors are not properly connected pro gram may stop midway RUN 2 SEND DATA BTXJoo 00 0 0101 0000 00 0001 L Number of elements F Starting read address Memory type MRC and SRC SID Sub address Unit number The response is as follows 00 00 00 0101 0000 00099999 Read data Response code MRC and SRC End code Sub address Unit number 35 SECTION 2 Host Link Communications This section provides information on host link communications which provides compatibility with earlier K3T Units When a new system is being created we recommend using the CompoWay F communications exclusively 2 1
58. g set value End code is 22 without corresponding memory Note 1 Set value is expressed in five figures of ASCII Negative sign is represented by F at the position of the X104 digit 50 Maximum Minimum Read Section 2 11 2 The comparative operands for the K3TC are as follows Comparative set value data for OUT5 Comparative set value data for OUT4 Comparative set value data for Comparative set value data for OUT2 Comparative set value data for OUT1 2 11 Maximum Minimum Read Reads maximum minimum hold data maximum minimum values This command is not effective in the Command Format Terminator H Maximum hold value B H Minimum hold value 51 Display Value PV Value Read Section 2 12 Response at normal end End code 00 Response Format Terminator Hold data P H Maximum hold value B H Minimum hold value Status data 161 160 23 22 21 20 23 22 21 20 Overflow Underflow Forced zero function 0 in the K3NR and Hold input now ON Bank input 1 0 in the K3NX V H Bank input 2 0 in the K3NX V H Hold data is expressed in five figures of ASCII Negative value is indicated by F at the position of the X104 digit 2 12 Display Value PV Value Read Reads display value PV value lx po N JU N Header code Terminator Command Format 52 Display
59. ge decimal point position average processing startup compensation time hysteresis and comparative output pattern COOC Scaling input value 2 scaling display value 2 scaling input value 1 and scaling display value 1 8824 Power supply frequency K3NV Type Meaning 8000 Input range decimal point position average processing startup compensation time hysteresis and comparative output pattern COOC Scaling input value 2 scaling display value 2 scaling input value 1 and scaling display value 1 8824 Power supply frequency K3NR Type Meaning 8000 Operating mode decimal point position process time for averaging measured value startup compensation time hysteresis and comparative output pattern COOC Prescaling value X mantissa of input A prescaling value Y exponent of input A prescaling value X mantissa of input B and prescaling value Y exponent of input B 8824 Sensor type time unit power failure memory C82A Auto zero time of input A X mantissa auto zero time of input A Y exponent auto zero time of input B Y mantissa and auto zero time of input B Y exponent K3NP Type Meaning 8000 Operating mode decimal point position and comparative output pattern COOC Prescaling value X mantissa of input A and prescaling value Y exponent of input A 8824 Sensor type and time unit
60. git 19 RD5 2 Output 2 Read data 104 digit 20 RD5 4 Output 4 Read data 104 digit 21 RD5 8 Output 8 Read data 104 digit 22 OVER Output Output when input value is not within the display range 23 D V Output Data confirmation signal 24 RUN Output Operation signal 25 COM GND VO See Note 1 26 REQ Input PV output request 27 MAX REQ Input Maximum value output request See Note 2 28 MIN REQ Input Minimum value output request See Note 2 29 HOLD Input Hold input See Note 3 30 RESET Input Reset input 31 POL Output Positive negative polarity signal 32 HH Output HH output See Note 4 33 H Output H output See Note 4 34 PASS Output PASS output See Note 4 35 L Output L output See Note 4 36 LL Output LL output See Note 4 37 COM Output GND VO See Note 1 Applicable Connectors 3 2 3 3 3 4 64 1 Terminals No 1 25 and 37 have the same COM 2 The above Max and Min not effective in the 3 HOLD is effective only in the K3NH and and is not effec tive in the COMPENSATION is effective only in the K3NC 4 OUT1 to OUT5 are effective only in the K3NC Plug 2 3701 OMRON or equivalent Hood XM2S 3711 OMRON or equivalent Setting before Power Application No specification setting before power application is required for the BCD output type Operations Front Key Section No setting with front keys is required for the BCD o
61. he status bits Status data Always 0 3 hexadecimal digits represented by ASCII characters X16 ar x16 yr 160 3 E Present value overflow Present value underflow Maximum value overflow Maximum value underflow Minimum value overflow Minimum value underflow Present value sensor error KSNH only Maximum value sensor error only Minimum value sensor error only Always 0 17 Memory Parameter Area Details Section 1 5 Memory K3NC Address Data contents Data length Present value PV F0019999 to 00099999 Double words Status data Bit 0 Present value overflow Bit 1 Present value underflow Others The remaining bits are always 0 OUT1 set value FOO19999 to 00099999 OUT2 set value FOO19999 to 00099999 OUTS set value FOO19999 to 00099999 OUT4 set value FOO19999 to 00099999 OUTS set value FOO19999 to 00099999 Note 1 The leading X in the addresses represents the bank number 2 Data values which begin with an are negative values 3 The following diagram shows the details of the status bits Status data Always 0 2 hexadecimal digits represented by ASCII characters r X16 X169 4 Present value overflow Present value underflow Always 0 18 Memory Parameter Area Details Section 1 5 Parameters K3NH Address Data contents Data length Input
62. hen a character other than 0 to 9 or A to F is included in the command text Sub address error The received frame s header or address is incorrect Frame length error The received frame exceeded the prescribed number of bytes 1 4 Commands and Responses 1 4 1 Memory Area Read Command Text within the Command Frame Memory MRG SRC type Starting read address Number of elements 01 01 CO See section 1 5 OO 0001 2 bytes 2 bytes 2 bytes 4 bytes 4 bytes 1 2 3 1 Memory type Memory types Mem Present value PV MAX value MIN value status or set value 2 Starting read address Specify the address of the data which you want to read in 4 digit hexadeci mal Refer to 1 5 Memory Parameter Area Details for details on the starting addresses of each memory type 3 Number of elements 4 digit hexadecimal Number of elements 0001 Executes the read operation and completes it normally Note If 0000 is specified the read operation won t be executed but the command will be completed normally Any value other than 0000 or 0001 will cause a parameter error Commands and Responses Section 1 4 Response Text within the Response Frame SRC Response code Read data 01 01 2 bytes 2 bytes 4 bytes 8 bytes 1 2 3 1 Response code Response code Meaning 0000
63. it Input unit 0008 RD3 2 Output Read data 102 digit Input unit 0009 RD3 4 Output Read data 102 digit Input unit 0010 RD3 8 Output Read data 102 digit Input unit 0011 RD4 1 Output Read data 103 digit Input unit 0012 RD4 2 Output Read data 103 digit Input unit 0013 RD4 4 Output Read data 103 digit Input unit 0014 RD4 8 Output Read data 103 digit Input unit 0015 RD5 1 Output Read data 104 digit Input unit 0100 RD5 2 Output Read data 104 digit Input unit 0101 RD5 4 Output CO 5 CO 5 OP PD Oo 5 Read data 104 digit Input unit 0102 RD5 8 Output 8 Read data 104 digit Input unit 0103 OVER Output Output when input value exceeds display range Input unit 0104 See Note DATA VALID Output Data confirmation signal Input unit 0105 RUN Output Operation signal Input unit 0106 COM GND GO See Note REQ Input PV output request Output unit 0200 Max Input Maximum value output request Output unit 0201 See Note Min Input Minimum value output request Input Hold input Output unit 0203 See Note Input Reset input Output unit 0202 See Note Output unit 0204 See Note Output Positive negative pola
64. ltage 12 to 24 10 1596 Maximum load current 10 mA Leakage current Input voltage 100 uA No voltage contact input Input current 10 mA Operating voltage 3 V min 1 5 V max DATA POLARITY OVERFLOW DATA VALID RUN Rated load voltage 12 to 24 VDC 10 4596 Maximum load current 10 mA Leakage current Note Logic method negative logic Terminal Numbers Terminal number Signal name Signal direction GND VO See Note 1 100 max Output Read data 100 digit Output Read data 100 digit Output Read data 100 digit Output Read data 100 digit Output Read data 101 digit Output Read data 101 digit ON Output Read data 101 digit Output Read data 101 digit Output Read data 102 digit Output Read data 102 digit Output Read data 102 digit Output Read data 102 digit Output o 5 Read data 103 digit 63 BCD Programs Section 3 4 Terminal Signal name Signal Use number direction 15 RD4 2 Output 2 Read data 103 digit 16 RD4 4 Output 4 Read data 103 digit 17 RD4 8 Output 8 Read data 103 digit 18 RD5 1 Output 1 Read data 104 di
65. ly Note 1 The Processor s RS 232C connection is a DTE connection so the host s CD carrier detect signal can t be supported When the CD signal is required in the host take the necessary measures at the host such as a pull up so that the signal is supported 2 Short circuit the RS with CS and the DR with ER on the host computer side 2 1 3 RS 422 Electrical characteristics Conforms to EIA RS 422 Communications Signals The following information identifies the key input output signals of the interface Abbreviation Signal direction Output Output Input Input Send Data A Send Data B Receive Data A Receive Data B Signal Ground Frame Ground safety ground The following example provides information on how the RS 422 Intelligent Sig nal Processor is to be connected to the host computer Connection Diagram Host computer Processor RS 422 Pin Abbrevi ation SN751177N or equivalent Terminal 220 Q _ block switch o The terminator 220 Q is set with the terminal block switch The terminator must have a mini mum resistance of 100 Q Shielded cable Internal clock 500 m maximum CO HC ESV 3P x 7 0 2 Hirakawa Densen Plug 2 0901 OMRON or equivalent Hood XM2S 0911 OMRON or equivalent Synchronization clock Total line length Recommended cable Applicable connectors 40 Interface Specifications Section 2 1
66. mand e In comparative output type without corresponding set value End code is 22 without corresponding memory e When set value is changed in RUN mode End code is 0D not executable due to change of setting in RUN mode Note Set value is expressed in five figures of ASCII Negative sign is represented by F at the position of the X104 digit 49 Set Value Read K3NR K3NP K3NC Output Section 2 10 2 10 Set Value Read K3NR K3NP K3NC Communication Comparative Output This set value read is effective only in models with RS 422 485 capability Tr comparative output and bank function and special models with K3TR nication and comparative output The set values HH H L and LL of the banks not in use are read individually Refer to the following Note 2 for operands Command Format Header Bank No Terminator code 01 to 04 H HH set value H H SP H set value L SP set value L L LL set value Response Format i V Header code Set value data Terminator HH set value data set value data L set value data LL set value data V dd Terminator Response format when an error occurs Header code End code when error occurs e In output type End code is 16 without corresponding com mand e In comparative output type without correspondin
67. minator 2 15 Undefined Command Error The following response is returned when a command header code cannot be decoded Response Format Response at normal end End code 00 Header code Terminator 55 Communication Program Example Section 2 17 2 16 End Code List Contents Normal completion Address over data overflow Not executable because of setting mode Not executable because of test mode Parity error Framing error Overrun error FCS error Format error parameter length error parameter error data code error data length error No corresponding command Not executable due to sensor failure K3NH not executable due to startup compensation time function K3NX Not executable due to Processor failure No corresponding memory 0 0 0 0 1 1 1 1 1 1 2 RIO 2 17 Communication Program Example 2 17 1 Program Example of RS 232C Communication In this program when inputting transmission data in command format from a computer keyboard data returned from the Processor that conforms to the response format is displayed on the computer screen Input the data to be trans mitted from the start character to the last piece of text data After data input FCS is calculated and transmitted with a terminator If this program is not executed correctly there will be an error in the transmission section check the connectio
68. mmable Controller and is not used as an abbreviation any thing else Visual Aids The following headings appear in the left column of the manual to help you locate different types of information Note Indicates information of particular interest for efficient and convenient operation of the product 1 2 3 1 Indicates lists of one sort or another such as procedures checklists etc OMRON 1998 rights reserved No part of this publication may be reproduced stored in a retrieval system or transmitted in any form or by any means mechanical electronic photocopying recording or otherwise without the prior written permis sion of OMRON No patent liability is assumed with respect to the use of the information contained herein Moreover because OMRON is constantly striving to improve its high quality products the information contained in this manual is subject to change without notice Every precaution has been taken in the preparation of this manual Nevertheless OMRON assumes no responsibility for errors or omissions Neither is any liability assumed for damages resulting from the use of the informa tion contained in this publication TABLE OF CONTENTS PRECAUTIONS arch p ace ree e deerd xi 1 General Precautions ep CELA CRURA CERRAR SEO RE CRURA eg xii 2 Salety Precautions saar renee edere EE EE RDE NEER NERO S e xii Application Precautions 22 04 436 ER EE GEE DER Te E S
69. mode and their setting ranges Parameter Code Setting range Default setting Unit number 0 to 99 Baud rate 1 2 2 4 4 8 9 6 19 2 or 38 4 kbps Data bits 7 or 8 bit Parity none eUen or odd Stop bits 1or2 1 3 Data Format Unless otherwise indicated numbers in the following tables are hexadecimal Values in double quotation marks such as 00 are ASCII Command Frame STX Node No Sub address SID Command text ETX 02 101 x100 00 0 MRC SRG Data 03 1 byte 2 bytes 2 bytes 1 byte 1 byte 1 byte Response Frame STX Node No Sub address End code Response text ETX BCC 02 101 x100 00 00 MRC SRC MRES SRES Data 03 1 byte 2 bytes 2 bytes 2 bytes 1 byte 1 byte Note There will be no data if there was an error in the command frame In this case there will be an end code other than 00 or OF STX This code 02 indicates the beginning of the transmission frame Always set this character in the first byte Node number This number specifies the transmission s destination Specify the K3N T s unit number to transmit to the K3N Specify XX for a broadcast transmission No responses will be returned for broadcast transmissions Sub address Not used for the Always set the sub address to 00 SID Service ID Not used for the
70. n of communication cables etc This program is written in N88 BASIC An PC 9801 personal computer is used as the host system 1000 7 1010 PROGRAM K3N Communication Sample Program K3T Compatible 1020 VERSION 1 00 1030 C Copyright OMRON Corporation 1997 1040 All Rights Reserved 1050 1060 1070 COM port settings even parity 7 data bits 2 stop bits 1080 OPEN COM E73 AS 1 1090 1100 REPEAT 1110 Transmission process 1120 Input transmission data 1130 INPUT SEND DATA SENDS 1140 1150 Jump to exit process if there is no input 56 Communication Program Example Section 2 17 1160 SENDS THEN EXIT 1170 1180 BCC calculation 1190 FCS 0 1 1200 FOR 1 1 TO 11 N 5 5 1210 FCS FCS XOR ASC MIDS 5 05 1 1220 NEXT1 1230 FCSS CHRS 0 5 FCS 2 1240 1250 Transmission 1260 SDATAS SENDS FCSS CHRS 13 1270 PRINT 1 SDATAS 1280 1290 Reception process 1300 RDATAS TIMEOUT 0 1310 LOOP 1320 No response detection 1330 TIMEOUT TIMEOUT 1 El 2 1340 IF TIMEOUT gt 20000 THEN RESPS No Response GOTO R 1350 IF LOC 1 0 THEN LOOP 1360 1370 End character discrimination Read if it isn t end character
71. ock check check of each block e Format check Command format construction is checked e Registration data check Check of numerical range of numbers such as unit number and bank number e FCS check Exclusive logical sumcheck of to the last text character If the above checks detect that an error has occurred during communication error recovery control is requested at the host computer by the response block end code Note however that when it is determined that the communication address is different through the registration data check no response block is transmitted 45 Reset Control Maximum Minimum Value Reset Section 2 6 2 5 Commands and Responses 2 5 1 Command Response Format Data The hexadecimal data and decimal data relevant to command format and response format must be converted into ASCII Example Hexadecimal data F 46 Decimal data 8 38 Hereafter hexadecimal data and decimal data in command response format are expressed as follows Hexadecimal Data Decimal Data X463 X162 X461 X169 X103 X102 X10 X163 through 160 mean hexadecimal 103 through 100 mean hexadecimal qata qata Therefore the numbers to be processed Therefore the numbers to be processed are 0 0000 through F 1111 are 0 0000 through 9 1001 2 5 2 List Header code RUN mode Test mode Setting mode RUN During change of setting Reset control maximum minimum value resetting Set value
72. on by setting the terminator switch of that unit to ON End station designation is not required for the RS 232C Model OUTPUT NPN Tr RS422 12 to 24 VDC 50 mA Max TERMINATOR OUTPUT 12 to 24 VDC 50 mA Max RDA SDA LL OUT1 OFF id H PASS LL 0115 OUT3 OUT2 ouT1 TERMINATOR am 9 009 0 mor DOOGO RDB SG SDB HH OUTS H OUT4 COM PASS OUT3 L OUT2 2 3 General RS 232C RS 422 RS 485 Specifications Transmission line connection Multiple point Communication system RS 232C RS 422 4 wire half duplex RS 485 2 wire half duplex Synchronization system Start stop synchronization 2 stop bits Communication speed 1 200 2 400 4 800 9 600 19 200 38 400 bps key selectable Communication code ASCII 7 bits Error detection Vertical parity even and FCS frame check sequence Interface RS 232C RS 422 RS 485 Start stop synchronization data configuration DO Dt D2 D4 05 06 Parity bit Start bit 2 stop bits When a personal computer is used as the host system do not select either 19 200 bps or 38 400 bps as the communication speed 43 Communications and Error Control Section 2 4 2 4 Communications and Error Control 2 4 1 Communications Control Procedures The host link procedure for the Intelligent Signal Processor series is conversa tional based on host link procedures The prior data transmission right belongs to the host computer and
73. ons e Parameters can be written only during remote operation e Only the set value can be written while in RUN mode All other parameters are read only e Parameters cannot be written or read when a sensor error has occurred K3NH e Parameters cannot be written or read during startup lock K3NX Transmission line connection Multiple point Communications method RS 232C or RS 422 4 wire half duplex RS 485 2 wire half duplex Synchronization method Start stop synchronization Communication speed 1 200 2 400 4 800 9 600 19 200 38 400 bps default 9 600 bps Communication code ASCII Data bits 7 or 8 bits default 7 bits An 8 bit code is made by adding a 0 to the 7 bit code Stop bits 1 or 2 bits default 2 bits Error detection Vertical parity none even or odd default even parity block check character Start stop synchronization data composition When the host computer transmits a command frame the transmits a response frame that corresponds to the command frame A single response frame is returned for each command frame The following diagram shows the operation of the command and response frames Command frame Command frame Preparation For Operation Section 1 2 Interface Communications with the host computer are carried out through a standard RS 232C RS 422 or RS 485 interface The model numbers indicate
74. ovides precautions for using the Intelligent Signal Processor and related devices The information contained in this section is important for the safe and reliable application of the Intelligent Signal Processor You must read this section and understand the information contained before attempting to set up or operate the Intelligent Signal Processor 1 General Precautions es e Rh CE UR Ie REPE TUR GEREED AAR ue Ege 2 Safety PrecautiOnSs oo eb eR OEC Ree ret dee e UE I 3 Application Precautions an deas BE RR RR aqa sas agua HR Q RES EUR W 4 Noise Prevention svn e EUR boy ewe Re Veto tede esee ER e ee ai xi Section 3 Application Precautions 1 2 3 xii General Precautions The user must operate the product according to the performance specifications described in the operation manuals Before using the product under conditions which are not described in the manual or applying the product to nuclear control systems railroad systems aviation systems vehicles combustion systems medical equipment amusement machines safety equipment and other systems machines and equipment that may have a serious influence on lives and property if used improperly consult your OMRON representative Be sure to read this manual before attempting to use the product and keep this manual close at hand for reference during operation Safety Precautions WARNING WARNING Never attempt to disassemble any Units while power is
75. rea details 17 minimum values location in memory 17 resetting 15 model data read 54 model number explanation 13 reading 13 MRC command code 5 MRES response code 5 node number 5 operating mode switching 15 Optical Link Adapter available model 78 parameter area details K3NC 22 details K3NH 19 details K3NP 22 details K3NR 21 details K3NV 20 details K3NX 20 parameters communications parameters 5 power before application of 43 precautions general xi present value PV location in memory 17 process value read 52 program example 1 1 Processor DM Data Memory area 66 VO allocation in use 65 ladder program 67 operation 65 timing chart 68 program example 2 3 Processors DM Data Memory area 70 allocation in use 68 ladder program 71 operation 68 timing chart 73 programming example communications program 33 example Host Link program 56 PV value read 52 R read commands 24 remote programming selecting 15 reset control minimum maximum value 46 80 response codes summary 16 response frame data format 5 RS 232C connections 3 RS 422 connections 3 RS 485 connections 4 RS 232C communications signals 38 39 connections 38 39 RS 422 communications signals 40 connections 40 system example 41 RS 485 communications signals 42 connections 42 5 security restricting communications access 23 set value re
76. rity signal Input unit 0107 Note marked with an asterisk is not used in this program 65 Program Example 1 Connection toa Section 3 5 3 5 3 DM Data Memory Area Read data is stored in the memory below Polarity 00 bit 10 digit 00 03 bit 103 digit 12 15 bit 102 digit 08 11 bit 101 digit 04 07 bit 100 digit 00 03 bit 66 Program Example 1 Connection toa Section 3 5 3 5 4 Ladder Program The following diagram illustrates the flow and order of signals 00106 00113 00000 DIFU P V REQ 00500 UEST 00500 00003 KEEP START DI 00400 FU 00501 00006 00008 00010 00014 67 Program Example 2 Connection toa Section 3 6 3 5 5 Timing Chart The following example illustrates the relative timing and duration of each input output signal RUN START D START Differentiation at START signal rise time KEEP en E MEN mu EN EE EN D D V manne Differentiation at DATA VALID signal rise time 3 6 Program Example 2 Connection to a The following program example 2 shows 3 Processors designated as ISP A ISP B and ISP C Units connected to the SYSMAC C500 PC OMRON 3 6 1 Explanation of Operation In this program by turning ON PC 0013 PV process values of three Proces sors A B and C are successively read into the PC to be stored into data memory Without
77. settings cable connec tions etc 33 Communications Program Example Section 1 8 This program is written in N88 BASIC An PC 9801 personal computer is used as the host system 1000 7 1010 PROGRAM K3N Communication Sample Program CompoWay F 1020 VERSION 1 00 1030 Copyright OMRON Corporation 1997 1040 All Rights Reserved 1050 7 1060 1070 COM port settings even parity 7 data bits 2 stop bits 1080 OPEN COM E73 AS 1 1090 1100 1110 Transmission process 1120 Input transmission data 1130 INPUT SEND DATA SENDS 1140 1150 Jump to exit process if there is no input 1160 IF SENDS THEN EXIT 1170 1180 calculation 1190 BCC 0 SENDS SENDS CHRS 3 1200 FOR 1 1 LEN SENDS 1210 BCC BCC XOR ASC 05 SENDS I 1 1220 NEXT I 1230 BCCS CHRS BCC 1240 1250 Transmission 1260 SDATAS CHRS 2 SEND BCCS 1270 PRINT 1 SDATAS 1280 1290 Reception process 1300 RDATAS TIMEOUT 0 1310 LOOP 1320 7 No response detection 1330 TIMEOUT TIMEOUT 1 1340 IF TIMEOUT gt 20000 THEN RESP No Response GOTO REND 1350 IF LOC 1 0 THEN LOOP 1360 1370 End character discrimination Read if it isn t
78. t value read X004 L set value read X005 LL set value read X006 X007 Filler Operating mode Decimal point position 0000 Process time for averaging measured value 0001 Startup compensation time 0002 Hysteresis 0003 Comparative output pattern 0004 Prescaling value X mantissa of input A 0005 Prescaling value Y exponent of input A X000 Prescaling value X mantissa of input B X001 Prescaling value Y exponent of input B X002 Sensor type X003 Time unit 0000 Power failure memory 0001 Auto zero time of input A X mantissa 0002 Auto zero time of input A Y exponent 0000 Auto zero time of input B Y mantissa 0001 Auto zero time of input B Y exponent 0002 0003 25 Command Lists Section 1 7 K3NP K3NC 26 Command Present value read Maximum value read Minimum value read Status read HH set value read H set value read L set value read LL set value read Starting read address Filler Operating mode Decimal point position Comparative output pattern Prescaling value X man
79. tecting the product against high frequency noise abnormal voltages Line filter Intelligent Signal Processor Power input Power input Signal input Signal input p Surge absorber e Countermeasures for protecting the product against inductive noise produced from the input line Intelligent Signal Processor 2 conductor shield wire SECTION 1 CompoWay F Communications Procedures This section describes communications using the CompoWay F format 151 Introduction eR Bed ee RR A SEAS 2 1 2 Preparation For Operation sss nn on ens kh RR RE S RR Kee 3 121 WIEBES os ent EE EE EE ER EES 3 1 2 2 Communications Parameters 5 153 Data Format ES ENE ORE ER a EE wama q a a ka OS oe RE RE ge be 3 1 4 Commands and Responses eee eeen 6 1 4 1 Memory Area Read eee e 6 1 4 2 Command Text Composition oaeen 7 1 4 3 Memory Area Write esn voceri eiei ua eee 8 1 4 4 Parameter Area Read 9 1 4 5 Parameter Area Write 1 1 426 Properties Read u notre eee ie ek ep ee ass 12 1 4 7 Controller Status Read cence 13 1 4 8 Internode Echo Test eee eee eee ee 14 1 4 0 Operating Command gt saq d RR 15 1 4 10 Summary of Response Codes oee 16 1 5 Memory Parameter Area Details
80. tissa of input A Prescaling value Y exponent of input A Sensor type Time unit Command Present value read Status read OUT set value read OUT2 set value read OUTS set value read OUT4 set value read OUT5 set value read Starting read address 0000 0003 X004 X005 X006 X007 Filler Input mode Decimal point position Output mode 8000 0000 0001 0005 Prescaling value X mantissa of input A Prescaling value Y exponent of input A X000 X001 Sensor type Power failure memory Compensation input condition 0000 0001 0002 Compensation value 0000 Command Lists Section 1 7 K3NV Command Present value read Maximum value read Starting read address 0000 Minimum value read 0001 Status read 0002 HH set value read 0003 H set value read X004 L set value read X005 LL set value read X006 X007 Filler Input type Decimal point position 0000 Average processing 0001 Startup compensation time 0002 Hysteresis 0003 Comparative output
81. type 0000 to 0021 Decimal point position 0000 to 0003 See note 1 Average processing 0000 No averaging 0001 to 0004 Moving average 2 4 8 or 16 times 0011 to 0014 Simple average 2 4 8 or 16 times Not used Hysteresis 0001 to 9999 Comparative output pattern 0000 Standard output 0001 Zone output 0002 Level output Scaling upper limit value FOO19999 to 00099999 Double words Scaling lower limit value F0019999 to 00099999 Upper limit compensation value 0019999 to 00099999 Lower limit compensation value 0019999 to 00099999 Temperature unit 0000 C Celsius 0001 F Fahrenheit Standby sequence 0000 OFF 0001 ON 0002 Display digit change 0000 4 digits 0001 5 digits Note 1 An error response will be returned if a temperature input in t has been selected for the input type 2 Data values which begin with an F are negative values 19 Memory Parameter Area Details Section 1 5 Parameters Address Data contents Data length 0000 Input range 0000 to 0004 0001 Decimal point position 0000 to 0004 0002 Average processing 0000 No averaging 0001 to 0005 Moving average 2 4 8 16 32 times 0011 to
82. ut pattern COOC Scaling input value 2 scaling display value 2 scaling input value 1 and scaling display value 1 8824 Power supply frequency K3NR Type Meaning Operating mode decimal point position process time for averaging measured value startup compensation time hysteresis and comparative output pattern COOC Prescaling value X mantissa of input A prescaling value Y exponent of input A prescaling value X mantissa of input B and prescaling value Y exponent of input B 8824 Sensor type time unit power failure memory C82A Auto zero time of input A X mantissa auto zero time of input A Y exponent auto zero time of input B Y mantissa and auto zero time of input B Y exponent K3NP Type Meaning 8000 Operating mode decimal point position and comparative output pattern COOC Prescaling value X mantissa of input A and prescaling value Y exponent of input A 8824 Sensor type and time unit 11 Commands and Responses Section 1 4 K3NC Meaning Operating format decimal point position and comparative output pattern Prescaling value X mantissa of input A and prescaling value Y exponent of input A Sensor type power failure memory and compensation input condition Compensation value 2 Starting write address Specify in 4 digit hexadecimal the address of the data which you want to
83. ut unit 0100 19 19 19 RD5 2 Output 2 Read data 104 digit Input unit 0101 20 20 20 RD5 4 Output 4 Read data 10 digit Input unit 0102 21 21 21 RD5 8 Output 8 Read data 104 digit Input unit 0103 22 22 22 OVER Output Output when input value Input unit 0104 See Note exceeds display range 23 DATA Output Data confirmation signal A Input unit 0105 VALID 24 RUN Output Operation signal A Input unit 0106 23 DATA Output Data confirmation signal B Input unit 0109 VALID 24 RUN Output Operation signal B Input unit 0110 23 DATA Output Data confirmation signal C Input unit 0111 VALID 24 RUN Output Operation signal C Input unit 0112 25 25 25 COM GND VO 26 REQ Input PV output request A Output unit 0200 26 REQ Input PV output request B Output unit 0201 26 REQ Input PV output request C Output unit 0202 27 Max Input Maximum value output Output unit 0203 See Note request A 27 Input Maximum value output Output unit 0204 See Note request B 27 Input Maximum value output Output unit 0205 See Note request C 28 Input Minimum value output Output unit 0206 See Note request A 28 Input Minimum value output Output unit 0207 See Note request B 28 Input Minimum value output Output unit 0208 See Note request C 29 HOLD Input Hold input A Output unit 0209 See Note 29
84. utput type BCD Programs With the BCD output type only the PV value display value maximum value and minimum value can be read The marks and correspond respectively to L polarity and H polarity Read the read data after the DATA VALID signal rises Data cannot be written from the PC to the Processor Program Example 1 Connection toa Section 3 5 3 5 Program Example 1 Connection to a 3 5 1 3 5 2 Terminal No Signal name COM The following program example 1 shows a single Processor connected to the SYSMAC C500 PC OMRON Explanation of Operation In this program by turning ON PC 0013 the PV process value of the Processor is read into the PC to be stored in data memory Without regard to 0013 ON time only one data sample is read VO Allocation in Use Signal direction Description GND VO See Note VO allocation RD1 1 Output Read data 100 digit Input unit 0000 RD1 2 Output Read data 100 digit Input unit 0001 RD1 4 Output Read data 100 digit Input unit 0002 RD1 8 Output Read data 100 digit Input unit 0003 RD2 1 Output Read data 101 digit Input unit 0004 RD2 2 Output Read data 101 digit Input unit 0005 WIN RD2 4 Output Read data 101 digit Input unit 0006 RD2 8 Output Read data 101 digit Input unit 0007 RD3 1 Output Read data 102 dig
85. write Refer to 1 5 Memory Parameter Area Details for details on the starting addresses of each parameter type 3 Number of elements 4 digit hexadecimal Number of elements 8001 Executes the write operation and completes it normally Note If 8000 is specified the write operation won t be executed but the command will be completed normally Any value other than 8000 or 8001 will cause a parameter error 4 Write data Specify the data which you want to write Refer to 1 5 Memory Parameter Area Details for details on the write data Response Text within the Response Frame MRC SRC Response code 02 02 2 bytes 2 bytes 4 bytes Response codes Response code Meaning 0000 Normal completion 1001 Command too long 1002 Command too short 1100 Parameter error 1101 Area type error 1103 Starting address out of range error 2203 Operating error Note The write operation won t be executed unless the response code is 0000 1 4 6 Properties Read Text within the Command Frame MRC SRC 05 03 2 bytes 2 bytes Response Text within the Response Frame MRC SRC Response code Model number Buffer size 05 03 2bytes 2 bytes 4 bytes 10 bytes 4 bytes 12 Commands and Responses Section 1 4 1 2 3 1 Response codes Response code Meaning
86. xt 5 commands Controller Status Read 13 Internode Echo Test 14 list of Host Link commands 46 list of read commands 24 list of write commands 28 Memory Area Read 6 Memory Area Write 8 Operating Command 15 Parameter Area Read 9 Parameter Area Write 11 Properties Read 12 communication program example operation example 58 RS 232C RS 422 RS 485 Communication 56 Index communications control procedures 44 example communications program 33 example Host Link program 56 restricting access 23 RS 232C specifications 43 RS 422 specifications 43 RS 485 specifications 43 communications buffer size reading 13 communications parameters 5 communications specifications 2 connection to a PC program example 1 1 Processor 65 program example 2 3 Processors 68 SYSMAC 500 OMRON 65 68 Connectors available models 77 D E data format 5 display value read 52 end code 5 summary 6 end code list 56 error control 45 ETX 5 F H FCS 44 forced zero clearing or executing 15 format data command 46 response 46 frame check sequence 44 Host Link communications 37 commands 46 interface communications 3 interface specifications 38 RS 232C 25 pin 38 RS 232C 9 pin 39 RS 422 40 RS 485 42 Link Adapters available models 77 local programming selecting 15 maximum values location in memory 17 resetting 15 79 Index maximum minimum read 51 memory a

Download Pdf Manuals

image

Related Search

Related Contents

Bomba de jeringa Alaris® PK  APC-3081 IP65 Rugged Panel PC User Manual Release  Fiche produit : NEOVIA05, Peinture caoutchouc    Istruzioni e avvertenze  Samsung Galaxy Tab 3 (7.0, 3G) User Manual(KK)  SEPT / DéC 201 4 élisabeth Roudinesco Frédéric  ウインカーステーキット 取扱説明書  posizionatori forche modello mz 2.5 – 3.5 t  CETVLED32HD3 MODE D`EMPLOI  

Copyright © All rights reserved.
Failed to retrieve file