Home
H8GN User's Manual
Contents
1. Smas nano 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 __ Bitposition Setup area Communications writing Spare Spare Spare Spare Spare Spare Spare Spare Spare Spare Spare Spare Spare Spare snes Bunelado The following shows the status contents Bit Description Bit position PV underflow 1 Not generated Generated Spare Spare Spare CP 1 signal input 1 CP 2 gate input 1 Reset input 1 Spare Output 1 Spare Spare Spare Setup area Setup area 0 Setup area 1 Communications writing OFF disabled ON enabled Spare Spare Spare bits are OFF at all times 1 The status is as follows when reading is carried out in setup area 1 PV underflow Previous value is held until reset is generated CP 1 signal input CP2 gate input reset input OFF 0 Output OFF O 3 3 Sample Program MN88Basic The following sample program displays responses returned from the H8GN on screen when command data is entered from the keyboard Enter starting with the unit up to the number of elements as the command data This sample program was created using N88BASIC 1010 PROGRAM H8GN Communication Sample Program Compo Way F 1020 VERSION 1 00 1030 c Copyright OMRON Corporation 2000 1040 All Right Reserved 1070 Communications port
2. 3 Number of elements Number of elements 0000 Write is not carried out the service response PDU is not appended with write data and processing ends in normal completion 0001 to 0002 Write is carried out and processing ends in normal completion 4 Response code At normal completion Responsecode Mame At occurrence of error Response code Error name Command too short The command is too short Area type error Wrong variable type Start address out of range error Write start address is out of range End address out of range error The write end address write start address number of elements exceeds the final address of the variable area Number of elements data mismatch The number of data does not match the number of elements Parameter error e Bit position is other than 00 e Write data is out of setting range Read only data Variable type CO was written to Operation error e The communications writing parame ter is setto OFF disabled e Writing was carried out on the parame ters from setup areas 0 to 1 e Writing was carried out on a protected da other than in the protect lev el e CPU or EEPROM error E Read controller attributes 10 This service reads the model No and communications buffer size Service request PDU MRC SRC 0 5 0 3 2 2 Service response PDU MRC SRC
3. H 00000001 to H 0000270F 0 001 to 9 999 Input signal edge Communications unit No 1 H 00000000 0 Rise edge H 00000001 1 Fall edge H 00000000 to H 00000063 0 to 99 Baud rate 1 v1 2 2 4 4 8 9 6 H 00000000 H 00000001 H 00000002 H 00000003 Communications data length 1 H 00000007 H 00000008 Communications stop bit 1 H 00000001 Communications parity Use SV bank H 00000000 H 00000001 H 00000002 H 00000000 H 00000001 OFF ON Use totalizing counter H 00000000 0 OFF H 00000001 1 ON 0 1 2 3 7 8 1 2 0 1 2 0 1 0 1 H 00000002 Display auto return time H 00000000 0 OFF H 00000001 to H 00000063 1 to 99 Move to protect level time H 00000003 to H 0000001E 3 to 30 Initial setting Communica tions setting Advanced function setting 1 Communications parameters are enabled after they have been changed by turning the power OFF then back ON again 3 2 Status The figure below shows the structure of the status data 15 14 13 12 11 10 9 Bit position PV underflow Spare Spare Spare CP 1 signal input CP 2 gate input Reset input Spare Spare Spare Spare Spare Output Spare Spare Spare meis andun OJUl JOU
4. Response Model No Communica code tions buffer size 0 5 0 3 2 2 4 10 1 Model No The model No is expressed in 10 byte ASCI code Empty bytes are space codes Example The model number for the H8GN is expressed as follows HISIGIN A D 2 Communications buffer size Thecommunications buffer size is expressed in 2 byte hexadecimal code and read after being converted to 4 byte ASCII code Buffer size 40 bytes H 0028 3 Response code At normal completion Responsecode mame Description 0000 Normal completion At occurrence of error C Reponse code e O oen 1001 Command too long The command is too long 2203 Operation error CPU or EEPROM error EI Read controller This service reads the run status of the controller status Service request PDU MRC SRC o 6j0 1 2 2 Service response PDU MRC SRC Response Run Related code status informa tion 0 6 0 1 2 2 4 2 1 Run status Status in which the count timer input can be accepted error notgen erated when setup area is 0 Status in which the count timer input cannot be accepted other than 2 Related information 7 6 5 4 3 2 1 0 Bit position PV underflow 3 Response code At normal completion E eseripi n At occurrence of error CO ame sermton 1001 Command too long The command is too long 2203 Operation error CPU or EEPROM error 11 MEchoback test This service carries out the echoba
5. 35H Calculation result 35H is setto the BCC area The 9 symbol indicates exclusive OR operation and the H indicates hexadecimal code MResponse frame Node No Sub address End code Command text BCC A AAA iene SA Error Description Detection Priority Normal completion The command ended normally without error FINS command error The specified FINS command could not be executed The FINS response code should indicate why the command could not be executed Parity error The sum total of bits whose received data is 1 does not match the set value of communications parity Framing error Stop bit is 0 Overrun error An attempt was made to transfer new data when the reception data was already full BCC error The calculated BCC value is different from the received BCC val ue Format error e The command text contains characters other than 0 to 9 and A to F This error is notapplicable to the echoback test Forde tails see chapters 2 3 Echoback test No SID and command text Or no command text MRC SRC not included in command text Sub address error Illegal unsupported sub address No sub address SID and command text Sub address less than two characters and no SID and com mand text Frame length error The received frame exceeds the fixed Supported number of by tes e The end code is returned to received command frames addresses to the self node e No r
6. Communications Data 2 Bit position Bit accessing is not supported on the H8GN Fixed to 00 3 Number of elements Number of elements 0000 Read is not carried out the service response PDU is not appended with read data and processing ends in normal completion 0001 to 0002 Read is carried out and processing ends in normal completion 4 Response code At normal completion Response code Name Description 0000 Normal completion No errors were found At occurrence of error Response code Error name Command too long The command is too long Command too short The command is too short Area type error Start address out of range error The variable type is wrong The read start address is out of range Response too long The number of elements is larg erthan 0002 Parameter error The bit position is other than 00 CPU or EEPROM error Operation error This service writes to variable areas Service request PDU MRC SRC Vari Read start Number of Write data aie address elements for number of elements 0 1 0 2 pen 2 2 0or8or16 Service response PDU MRC SRC Response code 01 0 12 2 2 4 1 Variable type and write start address For details on variable types and write start addresses see Chapter 3 Communications Data 2 Bit position Bit accessing is not supported on the H8GN Fixed to 00
7. set up communications unit No Communication rate and other parameters by carrying out the fol lowing procedure 1 Hold down the C J key for at least three seconds to move from the opera tion level to the initial setting level 2 Press tre O key for less than one second to move from the initial set ting level to the communications setting level 3 Select the parameters as shown below by pressing thelcal key 4 Usethel or keys to change the parameter set values Communications unit No Baud rate Communications data length Communications stop bit Communications parity H8GN O Communications Note that communications parameters are enabled after they have been parameter setup changed by resetting the controller Communications unit No na This parameter is for setting theunit No to each oftheH8GN Thisunit No is set so that the host computer can identify the H8GN when communica tions are carried out with the host computer Set aunit No within therange O to 99 for each H8GN connected to the host computer on the network De fault is 1 When two or more H8GN are used do not set the same unit No Doing so will prevent normal operation Baud rate bP5 This parameter is for setting the baud rate when communicating with the host computer Set one of 1 2 1200 bit s 2 4 2400 bit s 4 8 4800 bit s and 9 6 9600 bit s Communications data le
8. H8GN NOTICE 1 Do not use the H8GN in the following locations e Locations with high humidity that may result in condensation e Locations with radical temperature changes 2 Pay the utmost attention not to make mistakes in polarity when wiring the Timer 3 Always maintain the power supply voltage within the specifications 4 Connect the power supply voltage through a relay or switch in such a way that the voltage reaches a fixed value at once Otherwise the H8GN may not be reset or outputs may turn ON 5 Besure that the capacity of the power supply is large enough otherwise the H8GN may not start due to inrush current Approx 15A that may flow for an instant when the H8GN is turned on 6 For the power supply of an input device for the H8GN usean isolating transformer with the primary and secondary windings mutually isolated and the secondary winding not grounded 7 Leaving theH8GN with outputs ON at a high temperature for along time may hasten the degradation of internal parts such as electrolytic capacitors For this reason by using in combination with relays avoid situations where outputs are left ON for a long time e g one month or more 8 If the watertight rubber packing is not compressed sufficiently water may penetrate the panel For this reason be sure to tighten the reinforcement screws of the Mounting Adapter Y 92F 34 Sun 9 The output contacts are SPST NO and SPST NC For this reason
9. be sure not to use these contacts in circuits that will result in 3 point short circuits power supply short circuiting due to arcing 10 In counter operation e Changing the set value When changing the set value during operation the output will turn ON if the set value equals the present value e Operation with set value and present value of O The output will turn ON if the set value of O equals the present value The output will be OFF while the Reset Key is pressed or the reset input is ON 11 In timer operation e Changing the set value When changing the set value during operation the H8GN operates in the same way as when the present value reached theset value because a constant read in system isin use And output may turn ON depending on the output mode if the set value is changed as follows Input mode UP Present value Set value Input mode DOWN Elapsed time Set value Present value 0 Note When in DOWN mode the amount set value is changed is added to or subtracted from the present value e Operation with set value of O a When the output mode is set to A B one shot output D or F output will turn ON when the start signal is input b When the output mode is set to B hold output E or Z output will remain OFF even when the start signal is input VI 12 To allow for the startup time of peripheral devices sensors etc the H8GN starts timing operation between 210 to 260 ms after power
10. duplex Synchronization method Start stop synchronization Baud rate 1 1200 2400 4800 EST bit s Communication code ASCII Data bits E or 8 bits Stop bits 2 1 orbits Error detection Vertical parity non ETE or odd BCC block check character Flow control None Interface RS 485 Retry function None Communications buffer 40 byte 1 Baud rate data bits stop bits and vertical parity can each be set indepen dently in the communications setting level Highlighted characters in the table above indicate defaults Transmission procedure H8GN Wi Interface E Wiring Host computer RS 485 A lt B 1 mark A gt B 0 space Both ends of the transmission line including the host computer must be specified by setting terminator ON as the end node The total resistance of Shielded cable When the host computer transmits a command frame the H8GN 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 Host computer II rat DADOS f IA Response frame Allow a wait time of at least 2 ms until the next command is sent after the host computer receives a response from the H8GN Communications with the host computer are carried out through a standard RS 4
11. is turned ON For this reason in operations where timing starts from power ON the time display will actually start from 258 ms If the set value is 258 ms or less the time until output turns ON will bea fixed value between 210 and 260 Normal operation is possible for set value of 259 ms or more In applications where a set value of 258 ms or less is required use start timing with signal input Table of Contents Preface Alves std nl dn DOE e ld aks aro A tos Bee AIRA Precautions ccc cece eee eee eens Safety Precautions 0c ccc eee eee Notice uta ir tle MARINA no a hen Gales le A NOE ects deco Mile wee ed eee CHAPTER 1 ABOUT COMMUNICATIONS METHODS 1 1 1 1 This chapter briefly describes the supported communications methods and how to wire equipment First time users should read this chapter without fail to ensure prop er installation of the equipment OS esmas antares caine Day A TADAS iaa 1 2 NtrOdUEUION AA EA are ii 1 2 Communications specifications sssaaa auaa aaea 1 2 Transmission procedure coco 1 3 MEETA CS iS 1 3 A E a a a Oe e e E ee atk xt E E Gee A Mo 1 3 Communications parameters 0 0 ccc eee eee teens 1 4 CHAPTER 2 COMPOWAY F COMMUNICATIONS 2 1 2 2 2 3 2 A PROCEDUR ES 2 naa daran 2 1 Read this chapter if you are to communicate using the CompoWay F format Data Format inst tae A ba 2 2 Command MAME AS san a a da saa eens as 2 2 RESPONSE MM ere wire dan
12. range list 3 2 BUN Sa ida ees cece 1 2 23 W A BERR REM eae aired ae 1 3 Interface eee 12 13 Writeto variablearea 26 2 8 A 3 H8GN Revision History A manual revision code appears as a suffix to the catalog number on the front cover of the manual Cat No MO66 E 1 1 Revision code The following table outlines the change made to the manual during each revision Page numbers refer to previous version Revision code Data Revised content 1 June 2000 Original production
13. system protocol CompoWay F Host built into the Serial Communications Board Network communication command executable flag A20200 Input condition 000000 Protocol macro in progress flag 191915 Communication port 0 Serial port 2 Destination address E1 serial communication board FAL 06 01 Sequence No 0258H 600 Network First word address for transmission data error flag First word address for reception data A21900 The PV is stored to DO1502 and DO1503 if the read PV command is set to D01000 onwards If a communications error occurs execute the FAL command continue op eration and analyze trouble commana 11 12 Data transmission word assignment Node Sub Variable Bit STX No address SID MRC SRC type Address position Number of elements EXT BCC D01000 No of transmission words D01000 to D01006 D01001 Node No of H8GN 1 D01002 CompoWay F command Variable area read D01003 No of bytes transmitted 12 D01004 D01005 Variable type read start address bit position Number of elements D01006 Data reception word assignment Node Sub End STX No address code MRC SRC Response code EXT BCC CI IA T TIA ES D01500 0004 Number of reception words D01500 to D01503 D01501 i ail Response code Current process value APPENDIX APPENDIX ASCII oin once dle tues ala Bits A 2
14. 00 H 00000001 H 00000002 H 00000003 Incremental Decremental Individual Phase difference Time range H 00000000 H 00000001 H 00000002 H 00000003 H 00000004 4 H 00000005 H 00000006 H 00000007 H 00000008 0 1 0 1 2 3 0 1 2 3 0 000s to 9 999s 0 00s to 99 99s 0 0s to 999 9s Os to 9999s Om0s to 99m59s 0 0m to 999 9m OhOm to 99h59m 0 0h to 999 9h Oh to 9999h Timer mode H 00000000 H 00000001 Elapsed time Remainning time Output mode counter H 00000000 H 00000001 H 00000002 H 00000003 N Output mode timer H 00000000 H 00000001 H 00000002 H 00000003 5 6 7 8 0 1 0 1 2 3 0 1 2 3 H 00000004 4 F H 00000005 5 pz Output time H 00000001 to H 0000270F 0 01 to 99 99 counter H 00000000 to H 0000270F 0 00 to 99 99 timer Counting speed H 00000000 H 00000001 30Hz 5kHz Input signal width H 00000000 0 1 0 H 00000001 1 20ms Ims Initial setting Variable type Address Decimal point Set monitor Value H 00000000 H 00000001 H 00000002 0 1 2 H 00000003 3 Pre scale value
15. 0000000014F SEND DATA STX 00 00 O 0101 CO 0001 00 0001 ETX BBC Number of elements Bit position Read start address Variable type MRC SRC SID Sub address Node No RESPONSE STX 00 00 00 0101 0000 000014F ETX BBC Read data Response code MRC SRC Final code Sub address Node No Protocol macro What is a proto col macro Connection Sample ladder program A HA communication The protocol macro function uses the PMCR command in a ladder program to execute a data send receive sequence protocol with various communica tions devices such as general purpose components connected to the RS 232C or RS 422A RS 485 interface to control the device Standard system protocol is pre installed on Serial Communications Board Unit for enabling control of OMRON components eg controllers and tem perature control units For details on protocol macros refer to the CS1W SCB21 41 SCU 21 User s Manual Cat No W336 Use port 2 on the Serial Communications Board CS1W SCB41 for direct connection to the RS 485 CPU unit CS1H Serial Communications Board CS1W SCB41 common H8GN CAN PST OUT TOTAL oj CHAE ange Set the TERM switch on the Serial Communications Board to ON and the WIRE switch to 2 Attach a terminator to H8GN Read the PV of H8GN using sequence No 600 send receive with ASCII con version response ON of thestandard
16. 85 interface e RS 485 connections can be 1 1 or 1 N A maximum of 32 Units induding the host computer can be connected in one to N systems e Thetotal cable length is 500 m max e Usea shielded twisted pair cable AWG28 or larger for wiring the H8GN Communications transceiver Terminator H8GN 1209 end node 1 2 iRS 485 Use a terminator of resistance the terminators must be at least 54Q Shielded cable 1200 1 2W Match the communications specifications of the H8GN andthe host comput er faone to N system is being used besure that the communications specifi cations of all devices in the system except individual unit numbers are the same Communications The H8GNs communications specifications are set in the communications setting level These parameters are set on the H8GNs front panel The following table shows the communications parameters and their setting parameters Parameter Communications unit No ranges Displayed Characters Setting Range 0 to 99 Set Value O Elto 99 Baud rate 1 2 2 4 4 8 9 6 k bit s 1 2 2 4 4 8 EIG k bit s Communications data length 7 8 bit El 8 bit Communications stop bit 1 2 1 28 Communications parity Communications parameter setup None even odd nan L__I ladd Highlighted characters indicate defaults Beforeyou carry out communications with theH8GN
17. A 1 ASCII LIST ANSI X 3 4 1986 0 amp DEL SPAC NUL EOT DC4 ACK SYN Even parity A 2 A L Addr SS S tyrenn Giles a CEU a 25 List Of SOPVICES m kee eee 26 Area definitions oooooooo 25 N ASCII Wistu eke Sond a Sead dn A 2 Nicer ORA ON 25 B O BECAS e Ss 1 2 2 2 23 24 eae c 2 Operation instructions 2 6 2 14 Command frame o oooooooo 1 3 2 2 P A a ee lee oes 22 25 PDO od ei eat taza an 2 5 2 10 Communications data 24 3 1 R Communications data length 14 15 Read controller attributes 2 6 2 10 Communications methods 1 1 1 2 Read controller status 2 6 2 11 Communications parameters 14 Read from variable area 2 6 2 7 Communications parity 14 15 Response code list coooomciccno 2 15 Communications specifications 12 Response frame tare iii tones cadet tow 23 Communications stop bit 14 15 S Communications unit No 14 15 dt 3 9 CompoWay F 0s ceceeeeeees 12 24 31 e o EE E ad D E T StatUS sls aane naa ah a A Meh iat Ree a ad 36 ata fo Mat ep wets Fac da Beis eee DER ON 27 SUK a el Sh bn 2 2 E T Echoback DS 26 2 12 Transmission procure la wets aoe 13 A A aouaannan niana 23 24 Type code variable type 25 O Fae ew ae es 22 23 V F Variable area setup
18. D E F H 00000000 to H 000026E7 0 00 to 99 59 Time range at timer m s h m and output mode A B D E F Note 2 H 00000000 to H 00000064 0 to 100 Output mode at timer Z Set value 0 H 00000000 to H 0000270F 0 to 9999 Adjustment Input mode at counter incremental or decremental H FFFFFC19 to H 0000270F 999 to 9999 Input mode at counter individual or phase differ entinput H 00000000 to H 0000270F 0 to 9999 Time range at timer other than m s h m and output mode A B D E F H 00000000 to H 000026E7 0 00 to 99 59 Time range at timer m s h m and output mode A B D E F Note 2 H 00000000 to H 00000064 O to 100 Output mode at timer Z Set value 1 Same as set value 0 Set value 2 Same as set value 0 Set value 3 Same as set value 0 Cycle time H 00000000 to H 0000270F 0 to 9999 Operation Time range at timer other than m s h m H 00000000 to H 000026E7 0 00 to 99 59 Time range at timer m s h m Note 2 Note 1 This item is not displayed on the controller display Note 2 Even if the set value is within the setting range the out of range error occurs when the 2nd digit sextal number is six or above such as 5 60 H 00000230 Variable type Address Select function H 00000000 H 00000001 Set monitor Value Counter Timer Input mode H 000000
19. Node No Sub address SID Command text BCC 1 2 2 1 1 1 BCC calculation range This code 02 indicates the beginning of the communications frame text Always set this character in the first byte When STX is received again during reception reception is carried out again from the point where STX was received Node number e This number specifies the transmission s destination e Specify the H8GN s Communications unit No BCD range 00 to 99 and XX can be set e Specify XX fora broadcast transmission No response will be returned for broadcas transmissions e No responses will be returned from node Nos set otherwise from the above Sub address This is not used on the H8GN Be sure to set the sub address to 00 SID service 1D This is not used on the H8GN Be sure to set the sub address to 00 Command text Command text area For details see 2 2 Structure of Command Text ETX This code 03 indicates the end of the text BCC Block Check Character The BCC resultis found by calculating the exclusive OR ofthe bytes from the node No up to ETX BCC calculation The BCC is formed by converting the 8 bit value obtained by converting the example exclusive OR of thenode No uptoET X intotwo ASCII characters and setting this to the BCC area STX Node No Sub address SID Command text a BCC 30H 09 30H 68 30H 09 30H 89 30H 09 30H 09 35H 9 30H 09 33H BO03H
20. Preface The H8GN supports serial communications specifications CompoWay F and Sysway This User s Manual describes the communications functions of the H8GN Before using your H8GN thoroughly read and understand this manual in order to en sure correct use Also store this manual in a safe place so that it can be retrieved whenever necessary OMRON 2000 All 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 permission 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 Neverthe less OMRON assumes no responsibility for errors or omissions Neither is any liability assumed for damages resulting from the use of the information contained in this publication PRECAUTIONS When the product is used under the circumstances or environments described in this manual always adhere to the limitations of the rating and functions Also for safety take countermeasures such as fitting fail safe installations DO NOT USE e In circumstances or environments that have not been described in this m
21. anual e For control in nuclear power railway aircraft vehicle incinerator medical entertain ment or safety applications e Where death or serious property damage may occur or where extensive safety precau tions are required SAFETY PRECAUTIONS W Safety Signal Words This manual uses the following signal words to mark safety precautions for the H8GN These precautions provide important information for the safe application of the product You must be sure to follow the instructions provided in all safety precautions Indicates information that if not heeded could result in relatively serious or mi nor injury damage to the product or faulty operation E Safety Precautions AN CAUTION Electric Shock Warning Tighten the terminal screws properly Loose screws may cause ignition and malfunction Tightening torque 0 5 N m max Do not operate this product in flammable and explosive gas atmospheres The life expectancy of the output relays varies greatly with the switching capacity and other switching conditions Always use the output relays within their rated load and electrical life expectancy If an output relay is used beyond its life expectancy its contacts may become fused or burned Never disassemble repair or modify the product Doing so may cause electric shock fire or malfunction Do not allow metal fragments or lead wire scraps to fall inside this products These may cause leak of electric
22. ck test Service request PDU MRC SRC Test data 018 011 a 2 Oto 23 Test data 0 to 23 Service response PDU MRC SRC Response code 0 8 0 1 2 2 1 Test data Set any test data within the range O to 23 Set a value for the test data within the ranges shown below according to the communications data length Communications data length Test data 8 bits 20 to 7E Al to FE converted to ASCII code 7 bits 20 to 7E converted to ASCII code 2 Response code At normal completion Response code Name Description 0000 Normal completion No errors were found At occurrence of error Response code Name Description 1001 Command too long The command is too long 2203 Operation error CPU or EEPROM error 12 EH O peratio n Thisservice carries out reset communications writing multi SP move to pro instructions tect level move to setup area 1 and software reset Service request PDU MRC SRC Instruc Related tion Service response PDU MRC SRC Response code 3 0 0 5 2 2 4 1 Instruction code and related information Instruction nc 3 eode Description Related information Communications writing OFF disabled ON enabled Reset Reset PV Reset totalizing count value Reset PV totalizing count value SV bank Set value 0 Set value 1 Set value 2 Set value 3 Software reset Move to setup area 1 Move to p
23. e An MRC Main Request Code and SRC Sub R equest Code followed by the various required data is transferred to the command text Service request PDU MRC SRC Data MRES Main Response Code and SRES Sub Response Code are transferred following the above MRC SRC Data isthen transferred fol lowing these MRES and SRES Service response PDU during normal a a Ifthespecified command text could not be Sas only theMRC SRC and MRES SRES become the target response PDUs Service response PDU at non execution of specified command text MRES SRES becomes the response code except when processing ends n normal completion E Area definitions Areas comprise only variable area MW Type code The following defines variable area type codes variable type rt Description R O read only parameter Protect level parameter Operation and adjustment level parameter Initial setting communications setting and advanced function setting level parameter E Addresses Each of the variable types is appended with an address Express addresses in 2 byte hexadecimal code E Number of The number of elements is expressed in 2 byte hexadecimal code Specify the elements number of elements within the range O to 2 For example when the number of elements is 0002 specify data for two items from the address Wi List of services Name of service Read from variable area Process This service reads from va
24. esponse will be returned if all the items in the response frame are in complete up to the ET X and BCC e Error Detection Priority indicates the priority when two or more errors occur simultaneously E Communications data Set monitor Value Decimal point 8 digits Hex 2 s complement Decimal point is removed and the result is converted to hexadecimal Example 105 0 1050 000041A MExample of end The following examples show an end code when a command did not end nor code mally Example 1 Illegal sub address and no SID and command text Command Format Node No Sub address BCC mT TCO gt Response Format Node No Sub address End code BCC ek e End code is 16 sub address error This is because a sub address was received and the sub address error has a higher error detection priority than the format error Example 2 No command text Command Format Node No Sub address SID BCC porra oO EE Response Format Node No Sub address End code BCC popa ES End code is 14 format error STX STX Example 3 All node Nos not provided Command Format BCC mT Ta 7 The node No is lacking one character Response Format No response Example 4 No sub address and illegal BCC Command Format Node No BCC Response Format Node No Sub address End code BCC Sub address is 00 and end code is 13 BCC error STX STX 2 2 Structure of Command Text WPDU structur
25. iable type CO was written to Operation error e The communications writing parame ter is setto OFF disabled e Writing was carried out on the parame ters from setup areas 0 to 1 Writing was carried out on a protected parameter other than in the protect level Processing is not possible by operating instruction CPU or EEPROM error 15 CHAPTER 3 COMMUNICATIONS DATA This chapter lists the details of each of the communications data in the CompoWay F communications procedures 3 1 Variable Area setup range List 3 2 Status 3 3 Sample Program N88Basic Protocol macro 3 1 Variable Area setup range List The following table lists the variable areas Items expressed in hexadecimal in the Set monitor Value column are the setting range Values in paren theses are the actual setting range For details of variable areas that are described not in numerical values but by text refer to the relevant parameter descriptions Variable type Address Version Note 1 Set monitor Value H 00000100 PV H FFFFFC19 to H 0000270F 999 to 9999 Counter At PV underflow lower limit value H F FFFFC19 999 H 00000000 to H 0000270F 0 to 9999 Time range at timer other than m s h m H 00000000 to H 000026E7 0 00 to 99 59 Time range at timer m s h m Operation Status Note 1 See 3 2 Status Totalizi
26. ity fire or malfunction NOTICE Be sure to observe these precautions to ensure safe use 1 2 3 4 5 When storing the H8GN make sure that the ambient temperature and humidity are within the rated values Leave the H8GN at room temperature for at least three hours before using the H8GN if it has been stored at an ambient temperature of 10 C or below Do not use the H8GN in the following locations e Locations with excessive vibration or shock e Locations where the H8GN is exposed to sprayed water or oil Do not use the H8GN in dusty environments or expose it to corrosive gases or direct sunlight Besureto usethe H8GN according to its rated ambient operating temperature and humidity ranges Make sure that the voltage is applied within the specified range Otherwise the internal elements of the H8GN may be damaged When using the H8GN in an area with excess electronic noise separate the H8GN wiring and the equipment which generates the input signals as far as possible from the noise sources It is also recom mended to shield the input signal wiring to prevent electronic interference If the H8GN is used in locations with high static electricity such as sites with pipes transporting mold ing materials powders or liquids be sure to separate the H8GN from all sources generating static electricity Organic solvents such as paint thinner as well as very acidic or basic solutions can damage the outer casing of the
27. ld read this chapter without fail to ensure proper installation of the equipment TL QUO a rt a NOU O are OR Communications specifications Transmission procedure Interface and dea te do DA Sone we WIIN a a oes Da a eres Communications parameters 1 2 1 2 1 3 1 3 1 3 1 4 1 1 Outline HW Introduction The program for the communications functions are created on the host com puter and the H 8GN s parameters are monitored or set fromthe host comput er Therefore the description provided here is from the viewpoint of the host computer CompoWay F is OMRON s standard communications format for general seri al communications This format uses a standard frame format as well as the FINS commands which have proven successful in OM RON s PLCs There fore it can simplify communications between components and the host com puter FINS Factory Interface Network Service TheFINS protocol provides message communications between controllers in OMRON FA networks The H8GN have the following communications functions e Reading writing of parameters e Operation instructions e Selection of setup levels Communications are subject to the following condition e Parameters can be written only when the communications writing pa rameter is set to ON enabled E Communications specifications Transmission line connection Multiple point Communications method RS 485 2 wire half
28. ng count value Operation adjustment protection H 00000000 to H 05F5E 0FF 0 to 99999999 H 00000000 0 No restrictions in operation and adjust ment levels H 00000001 1 Move to adjustment level restricted H 00000002 2 Display and change of only PV SV pa rameters enabled H 00000003 3 SES of only PV SV parameters en able Initial setting commu nications protection H 00000000 0 Move to initial setting communications setting level enabled move to ad vanced function setting level dis played H 00000001 1 Move to initial setting communications setting level enabled move to ad vanced function setting level not dis played H 00000002 2 Move to initial setting communications setting level restricted Setting change protec tion H 00000000 0 OFF changing of setup on controller display enabled H 00000001 1 ON changing of setup on controller dis play disabled Reset key protection H 00000000 0 OFF reset key enabled H 00000001 1 ON reset key disabled Operation Protect ees Address Set monitor Value Set value H 00000000 to H 0000270F 0 to 9999 Operation Input mode at counter incremental or decremental H FFFFFC19 to H 0000270F 999 to 9999 Input mode at counter individual or phase differ ent input H 00000000 to H 0000270F 0 to 9999 Time range at timer other than m s h m and output mode A B
29. ngth t Ea This parameter is for setting the communications data length Set either of 7 bits or 8 bits Communications stop bit Sac This parameter is for setting the communications stop bit Set either of 1 or 2 Communications parity P kY This parameter is for setting the communications parity Set one of none even or odd CHAPTER 2 CompoWay F COMMUNICATIONS PROCEDURES Read this chapter if you are to communicate using the CompoWay F format 2 1 2 2 2 3 2 4 Data Format cut ee ee ee is Command frame 00 0 eee eens Response frame 000cc cece eens Communications data Example of end code Structure of Command Text PDU SIPUCIUIC cae lie cas bien ee Area definiti0NS o oooooo o Type code variable type Addresses Number of elements Eist Of SEFVICES isa Details of ServiCesS oooooooomoo Read from variable area Write to variable area Read controller attributes Read controller status Echobark Test cavacoroiacaldscravdsst Operation instructi0nS Response Code List 2 1 Data Format Unless otherwise indicated numbers in this manual are expressed in hexade cimal Values in double quotation marks such as 00 are ASCII Thenumber underneath each delimiter in aframe indicates thenumber of by tes Command frame Text
30. ot change Move to protect level This instruction moves to the protect level and can be accepted only in setup area 0 When this instruction command is issued in setup area 1 an operation error is generated and move to setup area 1 is forbidden 2 4 Response Code List At normal completion Response DS fesse mame esen Error detection priority 0000 Normal No errors were found None completion At occurrence of error Response code Unsupported command Description The service function for the relevant com mand is not supported Error detection priority Command too long The command is too long Command too short The command is too short Area type error The variable type is wrong Start address out of range error The read write start address is out of range End address out of range error The write end address write start address number of elements exceeds the final address of the variable area Number of ele ments data mis match The number of data does not match the number of elements Response too long The response exceeds the communica tions buffer size when larger than number of elements 0002 Parameter error e The bit position is other than 00 e The write data is outofthe setting range e The instruction code and related information in the operating instruction is wrong Read only error Var
31. riable areas Write to variable area This service writes to variable areas Read controller attributes This service reads the model No and commu nications buffer size Read controller status This service reads the run status of the control ler Echoback test This service carries out the echoback test Operation instructions This service carries out reset communications writing multi S P move to protect level move to setup area 1 and software reset In a memory error RAM error or initial state until the control starts normaly after the power is turned ON all commands will not be accepted and no response will be returned The following table summarizes setup areas O and 1 SESS ASG zane A Setup area O This area groups together the protect operation and adjustment levels This area groups together the initial setting communications setting and advanced function setting levels 2 3 Details of Services Read from variable area Ml Write to variable area This service reads from variable areas Service request PDU MRC SRC Variable type address Number of elements Read start Bit position 2 Service response PDU MRC SRC Response Read data code for number of elements 0 1 0 1 AS 2 2 4 0or8or16 1 Variable type and read start address For details on variable types and read start addresses see Chapter 3
32. rotect level No response will be returned when a software reset is carried out 2 Response code At normal completion Responsecode ame Pen At occurrence of error Response code Error name Command too long The command is too long Command too short The command is too short Parameter error Instruction code and related information are wrong Operation error e The communications writing parame ter is setto OFF disabled However note that the error is accepted regard less of the communications writing parameter setting ON OFF e The command cannot be processed F or details see 3 Description of oper ating instructions and precautions below e CPU or EEPROM error 3 Description of operation instructions and precautions 13 Communications writing Set the communications writing parameter to ON enabled or OFF disabled according to related information This instruction can be ac cepted at both setup areas O and 1 Reset The PV and or total count value is reset according to the related value Reset PV Resets the PV This can be accepted only in setup area 0 The operation error occurs in the following instance e When the reset is issued in setup area 1 Reset totalizing count value Resets the totalizing count value This can be accepted only in setup area 0 The operation error occurs in the following ins
33. setting PARITY EVEN DATA 7 STOP 2 1090 OPEN COM E73 AS 1 1110 REPEAT 1150 Entry of send data 1160 INPUT SEND DATA SEND 1180 To exit processing if there is no entry 1190 IF SEND THEN EXIT 1210 Calculation of BCC 1220 BCC 0 1230 SEND SEND CHR 3 1240 FOR I 1 TO LEN SEND 1250 BCC BCC XOR ASC MID SENDS I 1 1260 NEXTI 1270 BCC CHR BCC 1290 Transmission 1300 SDATA CHR 2 SEND BCC 1310 PRINT 1 SDATA 1350 LOOPO 1360 RDATA 1370 TIMEOUT 0 1380 LOOP 1390 Detection of time out 1400 TIMEOUT TIMEOUT 1 1410 IF TIMEOUT gt 2000 THEN RESP No Response GOTO REND 1420 IF LOC 1 0 THEN LOOP 10 1440 Identification of end character reading is continued if character is not end character 1450 RDATA RDATA INPUT LOC 1 1 1460 IF LEN RDATA lt 2 THEN LOOP 1470 IF MID RDATA LEN RDATA 1 1 lt gt CHR 3 THEN LOOP 1480 RESP MID RDATA 2 LEN RDATA 2 1490 IF RDATA SDATA THEN LOOPO 1500 REND 1510 1520 Display receive data 1530 PRINT RESPONSE RESP 1540 GOTO REPEAT 1550 1560 EXIT 1570 End processing 1580 CLOSE 1 1590 END Sample operation Read the PV of unit No 00 In this example PV 335 RUN SEND DATA 000000101C 00001000001 RESPONSE 00000001010
34. t he ache ae ge OR ee ee ot 2 3 Communications data Lu ccc cet eee ARA 2 4 Example of end Code eee eee Dn AF RU 2 4 Structure of Command Text savas odio tad bale dis 2 5 P DUSTU CU dic ada a Wed oo aiid waited Sig he bee eh tada 2 5 Area definitions ses soe EA EA A ie 2 5 Type code variable type 1 0 cece eee eens 2 5 Addresses Mere ils hates celia OY bot bk hee oe nee tl eet te dee att tk 2 5 Number of elements rior cece Saree a a e 2 5 VISTO SEN COS iene a Gatos Lee ed ek eee ae Le od 2 6 DetallS Of SCMICES ats a a oat st bins 2 7 Read from variable area tet e ete eee tenes 2 7 Write to variable area unana unaenea 2 8 Read controller attributes e a ec cette eee 2 10 Read controller status 0 ccc cece ete e E tenes 2 11 Echoback tes ter shank ada tidad 2 12 Operation INS TUCU NS 24 200054 a la ad dec a cee DA 2 13 Response Code list suis lr sas 2 15 CHAPTER 3 COMMUNICATIONS DATA 5 3 1 This chapter lists the details of each of the communications data in the CompoWay F communications procedures 3 1 Variable Area setup range Lis a ccc cece eee ees 3 2 32 SAWS bu neh Raa Ral eRe ene Radek Pda heh epee aa we 3 6 33 Sample Progra M nena een a ake ee aa a 3 9 APPENDIX cra A eE arse anc a RA A 1 KSG sra ten dni AEA A 2 INDEX CHAPTER 1 ABOUT COMMUNICATIONS METHODS This chapter briefly describes the supported communications methods and how to wire equipment First time users shou
35. tances e When the reset is issued in setup area 1 e When select function is set to timer e When use total counter is set to OFF Reset PV totalizing count value Resets the PV andthe totalizing count value This can be accepted only in setup area 0 The operation error occurs in the following instances e When the reset is issued in setup area 1 e When select function is set to timer e When use total counter is set to OFF O SV bank Set four set value beforehand in the adjustment level so that you switch to a desired set value SV bank can be accepted at both setup areas O and 1 The operation error occurs in the following instance e When use SV bank is set to OFF Software reset This instruction resumes processing after the power is turned OFF This instruction can be accepted at both setup areas O and 1 No response will be returned for this operation instruction Move to setup area 1 Thisinstruction moves to setup area 1 and can be accepted at both setup areas 0 and 1 However note that when initial setup communications protection is set to 2 an operation error is generated and move toset up area 1 is forbidden When this move is carried out from setup area O the display indicates the select function in the initial setting level When this operation instruc tion is issued in setup area 1 the display will n
Download Pdf Manuals
Related Search
Related Contents
無線電力測定タップ 取扱説明書 (PM-234-RFU XTR WinControl User Manual GORDIUS Little Giant Invacare Kuschall Ultra Light Tecumseh AEA9422ZXAXB Drawing Data 原告準備書面 原告準備書面 USER`S MANUAL iNUKE NU12000 Controls HP LaserJet 5000gn User's Manual Copyright © All rights reserved.
Failed to retrieve file