Home

USER'S MANUAL

image

Contents

1. 2 5 Type code variable type 2 5 Addresses Foo whee 32404 48 44 2 5 Number of elements 2 5 List OF services 2 280 2 6 2 3 1 1 2 7 Read from variable area 2 7 Write to variable 2 8 Read controller attributes 2 10 Read controller status 2 11 Echoback 2 12 Operation instructions 2 13 2 4 Response Code List 2 15 chapter 2 CompoWay F COMMUNICATIONS PROCEDURES 2 1 Data Format Unless otherwise indicated numbers in this manual are expressed in hex adecimal Values in double quotation marks such as 00 are ASCII The number underneath each delimiter in a frame indicates the number of bytes Command frame Text Node No Sub address SID Command text BCC 1 2 2 1 1 1 BCC calculation range STX 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 e BCD range 00 to 99 and XX can be set e Specify XX for a bro
2. chapter 3 COMMUNICATIONS DATA Data transmission word assignment Node Sub Variable Bit STX No address SID MRC type Address position Number of elements EXT BCC D01000 No of transmission words D01000 to D01006 001001 Node No of H8GN 1 01002 CompoWay F command Variable area read D01003 No of bytes transmitted 12 D01004 D01005 __ Variable type read start address bit position Number of elements 001006 Data reception word assignment Node Sub End STX address code Response code Data EXT BCC oaks ae D01500 0004 Number of reception words 001500 to D01503 D01501 Response code Current process value 3 12 APPENDIX APPENDIX ASCI ISG ios pee ete Ren eo NEA A 2 A 1 APPENDIX ASCII LIST ANSI X 3 4 1986 2010 00111114 01110 011 po 011 01 011 011 ge 01123 4 5 ey SEA eR Ts Te Even parity INDEX A Interface 1 2 1 8 Addresses 2 5 Area definitions 2 5 List of services 2 6 2 us Y Qo JJ VO Z C Operation instructions 2 6 2 14 Command frame 1 3 2 2 Command text 2 2 2 5
3. Communications parameters Parameter ting ranges Displayed Characters Setting Range Set Value Communications unit No 0 to 99 99 Baud rate 1 2 2 4 4 8 9 6 k bit s 1 2 2 4 4 8 k bit s Communications data length LEA 7 8 bit bit Communications stop bit 1 2 vA Communications parity Prey None even odd n nE odd Communications parameter setup Highlighted characters indicate defaults Before you carry out communications with the H8GN set up communica tions unit No Communication rate and other parameters by carrying out the following procedure 1 Hold down the key for at least three seconds to move from the operation level to the initial setting level 2 Press the key for less than one second to move from the initial setting level to the communications setting level 3 Select the parameters as shown below by pressing the key 4 Use the or keys to change the parameter set values Communications unit No Baud rate Communications data length 5 Communications stop bit LI P EuEn Communications parity H8GN LLL Communications Note that communications parameters are enabled after they have been parameter setup changed by resetting the controller e Communications unit No L a This parameter is for setting the unit No to each of the H8GN This unit No is
4. Preset Counter Timer 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 ensure 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 ha
5. does not 2 match the set value of communications parity 11 Framing error Stop bit is 0 1 12 Overrun error An attempt was made to transfer new data when the recep 3 tion data was already full 13 BCC error The calculated BCC value is different from the received BCC 5 value 14 Format error e The command text contains characters other than 0 to 9 7 and A to F This error is not applicable to the echoback test For details see chapters 2 3 Echoback test e No SID and command text Or no command text MRC SRC not included in command text 16 Sub address error e llegal unsupported sub address 6 e No sub address SID and command text e Sub address less than two characters and no SID and command text 18 Frame length error The received frame exceeds the fixed Supported number of 4 bytes e The end code is returned to received command frames addresses to the self node No response will be returned if all the items in the response frame are incomplete up to the ETX and BCC e Error Detection Priority indicates the priority when two or more errors occur simultaneously chapter 2 CompoWay F COMMUNICATIONS PROCEDURES Communications data Set monitor Value Minus Value Decimal point 8 digits Hex 25 complement Decimal point is removed and the result is converted to hexadecimal Example 105 0 1050 000041A m Example of end The following examp
6. solutions can damage the outer casing of the H8GN NOTICE 1 Do not use the H8GN in the following locations Locations with high humidity that may result in condensation 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 Be sure 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 use an isolating transformer with the prima ry and secondary windings mutually isolated and the secondary winding not grounded 7 Leaving the H8GN with outputs ON at a high temperature for a long time may hasten the degrada tion 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 Ifthe 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 Y92F 34 9 The outpu
7. 00008 8 Oh to 9999h 0 1 0 1 2 3 0 1 2 3 4 F C K A B D E F Z 0006 Output time H 00000001 to H 0000270F 0 01 to 99 99 counter H 00000000 to H 0000270F 0 00 to 99 99 timer 0007 Counting speed H 00000000 0 30Hz H 00000001 1 5kHz 0008 Input signal width H 00000000 0 20ms H 00000001 1 1ms gt gt gt gt Initial setting Variable type Address Item YZatiable Area setup range List Set monitor Value Level C3 0009 Decimal point H 00000000 0 H 00000001 1 H 00000002 2 H 00000003 3 C3 000A Pre scale value H 00000001 to H 0000270F 0 001 to 9 999 C3 000B Input signal edge H 00000000 0 Rise edge H 00000001 1 Fall edge 000 Communications unit H 00000000 to H 00000063 0 to 99 No 1 C3 000D Baud rate 1 H 00000000 0 1 2 H 00000001 1 2 4 H 00000002 2 4 8 H 00000003 3 9 6 C3 000E Communications data H 00000007 7 7 length 1 H 00000008 8 8 C3 000F Communications stop H 00000001 1 bit 1 H 00000002 2 C3 0010 Communications parity H 00000000 0 None H 00000001 1 Even H 00000002 2 Odd C3 0011 Use SV bank H 00000000 0 OFF H 00000001 1 ON C3 0012 Use totalizing counter H 00000000 0 OFF H 00000001 1 ON C3 0013 Display au
8. 0001 1 ON changing of setup on controller display disabled Reset key protection H 00000000 0 OFF reset key enabled H 00000001 1 ON reset key disabled Protect LLL id Address Item Set monitor Value Level C2 0000 Set value H 00000000 to H 0000270F 0 to 9999 Operation nput mode at counter incremental or decre mental H FFFFFC19 to H 0000270F 999 to 9999 nput mode at counter individual or phase dif ferent input 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 0 to 100 Output mode at timer Z C2 0001 Set value 0 H 00000000 to H 0000270F 0 to 9999 Adjustment nput mode at counter incremental or decre mental H FFFFFC19 to H 0000270F 999 to 9999 nput mode at counter individual or phase dif ferent input 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 0 to 100 Output mode at timer Z H 00000000 to H 0000270F 0 to 9999 C2 0002 Set value 1 Same as set value 0 C2 0003 Set value 2 Same as set value 0 C2 0004 S
9. Command too long The command is too long 2203 Operation error CPU or EEPROM error chapter 2 CompoWay F COMMUNICATIONS PROCEDURES Echoback test This service carries out the echoback test Service request PDU SRC Test data olslolt 2 2 to 23 Service response PDU Test data SRC Response code 0181011 2 2 0 to 23 1 Test data Set any test data within the range 0 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 A1 to FE converted to ASCII code 7 bits 20 to 7E converted to ASCII code 2 Response code At normal completion Response code Name Demon At occurrence of error Response code Name Description 1001 Command too long The command is too long 2203 Operation error CPU or EEPROM error Deails of Services al Operation This service carries out reset communications writing multi SB move to instructions protect level move to setup area 1 and software reset Service request PDU MRC SRC Instruc Related tion code Service response PDU SRC Response code 3101015 2 2 4 1 Instruction code and related information Instruction code Description Related information Communications writing OFF disabled ON enabled Reset Reset PV Reset totalizi
10. Ip UC 2 5 2 10 Communications data 2 4 3 1 esee Read controller attributes 2 6 2 10 Communications methods ips Read controller status 2 6 2 11 Communications parameters 1 4 2 6 2 7 Communications parity Response code list 2 15 Communications specifications 1 2 Response 9 3 Communications stop bit 1 4 1 5 Communications unit No 1 4 1 5 S 3 0 SID 9 2 2 4 hg PEE bids 3 6 2 2 STX 2 9 Details of services 2 7 T E Transmission procedure 1 3 Echoback 2 6 2 12 Type code variable type 2 5 End 1204 2 8 2 4 EE 2 2 2 8 3 9 F W Nee ee Pee 1 3 Write to variable area 2 6 2 8 Revision History A manual revision code appears as a suffix to the catalog number on the front cover of the manual Cat No M066 E1 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
11. SRC 0151013 2 2 Service response PDU MRC SRC Response Model No Communica code tions buffer size 0151013 2 2 4 10 1 Model No The model No is expressed in 10 byte ASCII code Empty bytes are space codes Example The model number for the H8GN is expressed as follows HI8 G N A D 2 Communications buffer size The communications 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 Response ade 0000 Normal completion At occurrence of error Response code Name Description 1001 Command too long The command is too long 2203 Operation error CPU or EEPROM error Deails of Services E Read controller This service reads the run status of the controller status Service request PDU MRC SRC 0161011 2 2 Service response PDU MRC SRC Response Run Related code status informa tion 0161011 1 Run status Run status Description Status in which the count timer input can be accepted error not generated when setup area is 0 Status in which the count timer input cannot be accepted other than above 2 Related information 7 6 5 4 3 2 1 0 Bit position PV underflow 3 Response code At normal completion Response code Nam At occurrence of error Response code Name Description 1001
12. adcast transmission No response will be returned for broad cast 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 ID 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 result is found by calculating the exclusive OR of the bytes from the node No up to ETX Data Format BCC calculation The BCC is formed by converting the 8 bit value obtained by converting example the exclusive OR of the node No up to ETX into two ASCII characters and setting this to the BCC area BCC 30HB30OHB30OHB3OHB3OHB30OHB35SHB30HB33SHBOSH 35H Calculation result 35H is set to the BCC area The amp symbol indicates exclusive OR operation and the H indicates hexadecimal code Response frame Node No Sub address End code Command text BCC 1 2 2 2 1 1 End Error Bade Name Description Detection Priority 00 Normal completion The command ended normally without error None OF FINS command error The specified FINS command could not be executed 8 The FINS response code should indicate why the command could not be executed 10 Parity error The sum total of bits whose received data is 1
13. cations 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 e g controllers and temperature control units For details on protocol macros refer to the CS1W SCB21 41 SCU21 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 Serial Communications Board CS1H CS1W SCB41 CMW RST OUT TOTAL 11 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 conversion response ON of the standard system protocol CompoWay F Host built into the Serial Communications Board Network communication Input command Protocol macro Communication port 0 condition executable flag in progress flag Serial port 2 000000 A20200 191915 Destination address E1 serial communication board Sequence No 0258H 600 First word address for transmission data First word address for reception data FAL 06 01 The PV is stored to D01502 and D01503 ifthe read PV command is set to 001000 onwards If a communications error occurs execute the FAL command continue operation and analyze trouble command
14. d and move to setup area 1 is forbidden When this move is carried out from setup area 0 the display indicates the select function in the initial setting level When this operation instruction is issued in setup area 1 the display will not 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 forbid den Response Code 2 4 Response Code List At normal completion Response code 0000 Name Normal completion At occurrence of error Description No errors were found Error detection priority None R h Error pen SE Name Description detection code priority 0401 Unsupported The service function for the relevant 1 command command is not supported 1001 Command too The command is too long 2 long 1002 Command too The command is too short 3 short 1101 Area type error The variable type is wrong 1103 Start address The read write start address is out of out of range range error 1104 End address The write end address write start 6 out of range address number of elements error exceeds the final address of the vari able area 1003 Number of ele The number of data does not match 7 ments data mis the number of elements match 110B Response too The response
15. et value Same as set value 0 C2 0005 Cycle time H 00000000 to H 0000270F 0 to 9999 Operation at timer other than m s H 00000000 to H 000026E7 0 00 to 99 59 Time range at timer m 5 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 chapter 3 COMMUNICATIONS DATA Variable type Address 0000 Item Select function Set monitor Value H 00000000 0 Counter H 00000001 1 Timer C3 0001 Input mode H 00000000 0 H 00000001 1 H 00000002 2 H 00000003 3 Incremental Decremental Individual Phase difference C3 0002 Time range H 00000000 0 H 00000001 1 H 00000002 2 H 00000003 3 H 00000004 4 0 000s to 9 999s 0 00s to 99 99s 0 0s to 999 9s Os to 9999s OmOs to 99m59s H 00000005 5 0 0m to 999 9m H 00000006 6 OhOm to 99h59m 0003 Timer mode H 00000000 0 Elapsed time H 00000001 1 Remainning time 0004 Output mode counter H 00000000 0 H 00000001 1 H 00000002 2 H 00000003 3 C3 0005 Output mode timer H 00000000 0 H 00000001 1 H 00000002 2 H 00000003 3 H 00000004 4 H 00000005 5 0 1 2 3 0 1 2 3 4 5 6 H 00000007 7 0 0h to 999 9h H 000
16. etection of time out TIMEOUT TIMEOUT 1 IF TIMEOUT gt 2000 THEN RESP No Response GOTO REND IF LOC 1 0 THEN LOOP chapter 3 COMMUNICATIONS DATA 1440 1450 1460 1470 1480 1490 1500 1510 1520 1530 1540 1550 1560 1570 1580 1590 Identification of end character reading is continued if character is not end character RDATA RDATA INPUT LOC 1 1 IF LEN RDATA lt 2 THEN LOOP IF MID RDATA LEN RDATA 1 1 lt gt CHR 3 THEN LOOP RESP MID RDATA 2 LEN RDATA 2 IF RDATA SDATA THEN LOOPO REND c Display receive data PRINT RESPONSE RESP GOTO REPEAT CLOSE 1 END Sample operation Read the PV of unit No 00 In this example PV 335 RUN SEND DATA 000000101 00001000001 RESPONSE 000000010100000000014F SEND DATA STX 00 00 0 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 Program Protocol macro What is a proto col macro Connection Sample ladder program Network communication error flag A21900 The protocol macro function uses the PMCR command in a ladder pro to execute a data send receive sequence protocol with various com muni
17. exceeds the commu 8 long nications buffer size when larger than number of elements 0002 1100 Parameter error The bit position is other than 00 9 e The write data is out of the setting range e The instruction code and related information in the operating instruc tion is wrong 3003 Read only error Variable type CO was written to 10 2203 Operation error The communications writing 11 parameter is set to OFF disabled e Writing was carried out on the parameters from setup areas 0 to 1 e Writing was carried out on a pro tected parameter other than in the protect level e Processing is not possible by oper ating instruction e CPU or EEPROM error chapter 2 CompoWay F COMMUNICATIONS PROCEDURES CHAPTER 3 COMMUNICATIONS pata CHAPTERS 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 3 2 DLAalUS cerere nar EE 3 8 3 3 Sample Program 3 9 1 9 9 Protocol Macro zx cb enm 9 11 _ 0 0 3 1 Variable Area setup range List The following table lists the variable areas Items expressed in hexadeci mal in the Set monitor Value column are the setting range Values in parentheses are the actual setting range For details of variable areas t
18. hat are described not in numerical values but by text refer to the relevant parameter descriptions Ew Address Item Set monitor Value Level CO 0000 Version Note 1 H 00000100 CO 0001 PV H FFFFFC19 to H 0000270F 999 to 9999 Operation Counter At PV underflow lower limit value H FFFFFC19 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 CO 0002 Status Note 1 See 3 2 Status CO 0003 Totalizing count value H 00000000 to H 05F5E0FF 0 to 99999999 Operation Operation adjustment protection H 00000000 0 H 00000001 1 H 00000002 2 H 00000003 3 No restrictions in operation and ad justment levels Move to adjustment level restricted Display and change of only PV SV parameters enabled Display of only PV SV parameters enabled Initial setting commu nications protection H 00000000 0 H 00000001 1 H 00000002 2 Move to initial setting communica tions setting level enabled move to advanced function setting level dis played Move to initial setting communica tions setting level enabled move to advanced function setting level not displayed Move to initial setting communica tions setting level restricted Setting change protec tion H 00000000 0 OFF changing of setup on control ler display enabled H 0000
19. les show an end code when a command did not end code normally Example 1 Illegal sub address and no SID and command text Command Format Node No Sub address BCC Response Format Node No Sub address End code BCC 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 SIX SIX Example 2 No command text Command Format Node No Sub address SID BCC STX Im JJ D 5 O O D 3 0 F Node No Sub address End code BCC STX End code is 14 format error Example 3 All node Nos not provided 2 zd MEE Q Q BE 3 1 s gt lt UJ E The node No is lacking one character Response Format No response Example 4 No sub address and illegal BCC Command Format Node No BCC SIX ETX Err Response Format Node No Sub address End code BCC Im Sub address is 00 and end code is 13 BCC error SIX amp euaicture of Command Tex 2 2 Structure of Command Text B PDU structure Area definitions Type code variable type Addresses Number of elements An MRC Main Request Code and SRC Sub Request Code followed by the various required data is transferred to the command text Service request PDU MRES Main Response Code and SRES Sub Response Code are
20. n the following instance 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 instances When the reset is issued in setup area 1 e When select function is set to timer When use total counter 15 set to OFF Reset PV totalizing count value Resets the PV and the totalizing count value This can be accepted only in setup area 0 The operation error occurs in the following instances 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 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 0 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 0 and 1 No response will be returned for this operation instruction Move to setup area 1 This instruction moves to setup area 1 and can be accepted at both setup areas 0 and 1 However note that when initial setup communica tions protection is set to 2 an operation error is generate
21. nded with write data and processing ends in normal completion 0001 to 0002 Write is carried out and processing ends in normal completion Deails of Services 4 Response code At normal completion Response code Desorption _ At oecurrence of error Response code 1002 Error name Command too short Cause The command is too short 1101 Area type error Wrong variable type 1103 Start address out of range error Write start address is out of range 1104 End address out of range error The write end address write start address number of elements exceeds the final address of the vari able area 1003 Number of elements data mismatch The number of data does not match the number of elements 1100 Parameter error e Bit position is other than 00 e Write data is out of setting range 3003 Read only data Variable type CO was written to 2203 Operation error The communications writing parameter is set to OFF dis abled e Writing was carried out on the parameters from setup areas 0 to 1 e Writing was carried out on a pro tected parameter other than in the protect level e CPU or EEPROM error chapter 2 CompoWay F COMMUNICATIONS PROCEDURES Read controller This service reads the model No and communications buffer size attributes Service request PDU MRC
22. ng count value Reset PV totalizing count value SV bank Set value 0 Set value 1 Set value 2 Set value Software reset Move to setup area 1 Move to protect level No response will be returned when a software reset is carried out 2 Response code At normal completion Response code Name Description 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 informa tion are wrong Operation error e The communications writing parameter is set to OFF dis abled However note that the error is accepted regardless of the com munications writing parameter set ting ON OFF The command cannot be pro cessed For details see 3 Description of operating instruc tions and precautions below e CPU or EEPROM error chapter 2 CompoWay F COMMUNICATIONS PROCEDURES 3 Description of operation instructions and precautions Communications writing Set the communications writing parameter to ON enabled or OFF disabled according to related information This instruction can be accepted at both setup areas 0 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 opera tion error occurs i
23. ocess 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 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 The variable type is wrong Start address out of The read start address is range error out of range Response too long The number of elements is larger than 0002 Parameter error The bit position is other than 00 Operation error CPU or EEPROM error 2 chapter 2 CompoWay F COMMUNICATIONS PROCEDURES Write to variable This service writes to variable areas area Service request PDU MRC SRC Vari Read start Number of Write data able address osi elements for number of elements type 2 2 2 0 or 8 or 16 Service response PDU MRC SRC Response code 01110 2 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 3 Number of elements Number of elements Process Write is not carried out the service response PDU is not appe
24. of at least 2 ms until the next command is sent after the host computer receives a response from the H8GN interface Communications with the host computer are carried out through a stan dard RS 485 interface E Wiri ng RS 485 connections can 1 1 or 1 N A maximum of 32 Units including the host computer can be connected in one to N systems e The total cable length is 500 m max Use a shielded twisted pair cable AWG28 or larger for wiring the H8GN Communications transceiver Host computer dm 5 485 H8GN TX 5 485 m Ao a a RX A 6 8V Shielded cable A lt B 1 mark Terminator i H8GN 02 end node A gt B 0 space 1 2W RS 485 EE Pin No Abbr oth ends of the transmission line 8 TAO including the host computer must be 032 specified by setting terminator ON as the end node The total resistance of Use a terminator of resistance the terminators must be at least 540 Shielded cable 1200 1 2W Match the communications specifications of the H8GN and the host com puter If a one to N system is being used be sure that the communications specifications of all devices in the system except individual unit numbers are the same _ 0 0 0 ll 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 set
25. ommunicate using the CompoWay F format 21 Dala FOMA Seated a dou mS uda DAR ee 2 2 Command AUC Ron AC Io 2 2 Response Trame 4 eos 2 3 Communications 2 4 Example of end code 2 4 2 2 Structure of Command Text 2 5 88 14 0 PPP 2 5 5 ted a Atm 2 5 Type code variable type 2 5 Addresses ened 2 5 Number of elements 21 22 ines pass 2 5 PIS OF 16 84 RU dr ood 2 6 2 9 Details of Services 2 7 Read from variable area 2 7 Write to variable area 2 8 Read contoler attnibules zb vica rear 2 10 Head controller status 341229 ss ren da ac A A ad 2 11 ECHhODACK TCS Racine ee Mae OS Ae eee Shes 2 12 OBerati n ihstruUclOns deed dole icr atte dm teo hte te dan hee ded audes 2 13 2 4 Response Code List 2 15 CHAPTER 3 COMMUNICATIONS DATA This chapter lists the details of each of the communications data in
26. pera tion between 210 to 260 ms after power 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 be a fixed value between 210 and 260 Normal opera tion 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 ti o a a ee Precautions area ake Gare Safety Precautions 11 NOICE RD ae IV NOICE sb aue t duc ee eee V CHAPTER 1 ABOUT COMMUNICATIONS METHODS 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 proper installation of the equipment ee aa ec alas ag nee 1 2 una a wears cd diea ien Seti nee 1 2 Communications 5 5 1 2 Transmission procedure 1 3 a V1 21 ERREUR 1 3 CENE 1 3 Communications parameters 1 4 CHAPTER 2 COMPOWAY F COMMUNICATIONS PROCEDURES 2 1 Read this chapter if you are to c
27. roducts These may cause leak of electricity fire or malfunction NOTICE Be sure to observe these precautions to ensure safe use 1 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 2 Do not use the H8GN in the following locations Locations with excessive vibration or shock Locations where the H8GN is exposed to sprayed water or oil 3 Do not use the H8GN in dusty environments or expose it to corrosive gases or direct sunlight 4 Be sure to use the H8GN according to its rated ambient operating temperature and humidity ranges 5 Make sure that the voltage is applied within the specified range Otherwise the internal elements of the H8GN may be damaged 6 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 recommended to shield the input signal wiring to prevent electronic interference 7 Ifthe H8GN is used in locations with high static electricity such as sites with pipes transporting molding materials powders or liquids be sure to separate the H8GN from all sources generating static electricity 8 Organic solvents such as paint thinner as well as very acidic or basic
28. s in OMRON FA networks The H8GN have the following communications functions Reading writing of parameters e Operation instructions Selection of setup levels Communications are subject to the following condition e Parameters can be written only when the communications writing parameter is set to ON enabled Communications specifications Transmission line connection Multiple point Communications method RS 485 2 wire half duplex Synchronization method Start stop synchronization Baudrate 1 1200 2400 4800 bit s Communication code ASCII Data bits 1 Fj or 8 bits Stop bits 1 1 orBlbits Error detection Vertical parity non 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 inde pendently in the communications setting level Highlighted characters in the table above indicate defaults 21 O Od Transmission When the host computer transmits a command frame the H8GN trans procedure mits a response frame that corresponds to the command frame A single response frame is returned for each command frame The following dia gram shows the operation of the command and response frames Host computer _______ 12 22 2222 H8GN Response frame Allow a wait time
29. set so that the host computer can identify the H8GN when commu nications are carried out with the host computer Set a unit No within the range 0 to 99 for each H8GN connected to the host computer on the network Default is 1 When two or more H8GN are used do not set the same unit No Doing so will prevent normal operation Baud rate 575 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 e Communications data length This parameter is for setting the communications data length Set either of 7 bits or 8 bits Communications stop bit bac This parameter is for setting the communications stop bit Set either of or In e Communications parity r This parameter is for setting the communications parity Set one of 77 even odd CHAPTER 2 CompoWay F COMMUNICATIONS PROCEDURES CHAPTERZ CompoWay F COMMUNICATIONS PROCEDURES Read this chapter if you are to communicate using the CompoWay F format 2 1 Data ormat ss REED Mex eS 2 2 Command frame 2 2 Response frame 2 3 Communications data 2 4 Example of end 2 4 2 2 Structure of Command Text 2 5 1548 2 6 Area definitions
30. t contacts are SPST NO and SPST NC For this reason 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 0 The output will turn ON if the set value of 0 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 the set value because a constant read in system is in 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 0 a When the output mode is set to A one shot output D or 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 o
31. the Compo Way F communications procedures 3 1 Variable Area Setup range List 22210101 See eas dc d 8 3 3 Sample Program APPENDIX ASCII List INDEX 3 2 3 6 3 9 A 2 CHAPTER 1 ABOUT COMMUNICATIONS METHODS 8 CHAPTER 1 ABOUT COMMUNICATIONS METHODS This chapter briefly describes the supported communications methods and how to wire equipment First time users should read this chapter without fail to ensure proper installation of the equipment Leb Outline ESQ RETAIL 1 2 Intr duelion 1 2 Communications specifications 1 2 Transmission procedure 1 8 Inlerlace 1 3 WIENO none nahen 1 3 Communications parameters 1 4 1 1 chapter 1 aaaaaaa 1 4 Outline E Introduction The program for the communications functions are created on the host computer and the H8GN s parameters are monitored or set from the host computer Therefore the description 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 PLCs Therefore it can simplify communications between components and the host computer FINS Factory Interface Network Service The FINS protocol provides message communications between control ler
32. to return H 00000000 0 OFF time H 00000001 to H 00000063 1 to 99 C3 0014 Move to protect level H 00000003 to H 0000001E 3 to 30 time 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 chapter 3 COMMUNICATIONS DATA 3 2 Status The figure below shows the structure of the status data 15 14 13 12 1 9 8 7 Bit position PV underflow er Spare 9 Spare 3 Spare x CP1 signal input E CP2 gate input Reset input at Spare Spare Spare Spare Spare Output Spare 3 6 Status 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 Bit position Setup area Communications writing Spare Spare O 2 0 3 7 chapter 3 COMMUNICATIONS DATA The following shows the status contents Bit Description Bit position Status 0 1 0 PV underflow 1 Not generated Generated 1 Spare 2 Spare 3 Spare 4 CP1 signal input 1 5 CP2 gate input 1 6 Reset input 1 7 Spare 8 Spare 9 Spare 10 Spare 11 Spare 12 Output 1 OFF ON 13 Spare 14 Spare 15 Spare Setup area Setup area 0 Set
33. transferred following the above MRC SRC Data is then transferred following these MRES and SRES Service response PDU during normal operation MRES SRES Data If the specified command text could not be executed only the MRC SRC and MRES SRES become the target response PDUs Service response PDU at non execution of specified command text MRC SRC MRES SRES MRES SRES becomes the response code except when processing ends in normal completion Areas comprise only variable area The following defines variable area type codes Variable type Description R O read only parameter C1 Protect level parameter C2 Operation and adjustment level parameter C3 Initial setting communications setting and advanced function set ting level parameter Each of the variable types is appended with an address Express addresses in 2 byte hexadecimal code The number of elements is expressed in 2 byte hexadecimal code Specify the number of elements within the range 0 to 2 For example when the number of elements is 0002 specify data for two items from the address chapter 2 CompoWay F COMMUNICATIONS PROCEDURES List of services MRC SRC Name of service Process 01 01 Read from variable This service reads from variable areas area 01 02 Write to variable area This service writes to variable areas 05 03 Read controller This service reads the model No and com a
34. ttributes munications buffer size 06 01 Read controller This service reads the run status of the status controller 08 01 Echoback test This service carries out the echoback test 30 05 Operation This service carries out reset communica instructions tions writing multi SP move to protect level move to setup area 1 and software reset Ina 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 0 and 1 Area Description Setup area 0 levels This area groups together the protect operation and adjustment Setup area 1 This area groups together the initial setting communications set ting and advanced function setting levels Deails of Services 2 3 Details of Services B Read from This service reads from variable areas variable area Service request PDU MRC SRC Variable Read start Bit Number of address position elements Service response PDU MRC SRC Response code 0111011 2 2 4 1 Variable type and read start address Read data for number of elements 0 or 8 or 16 For details on variable types and read start addresses see Chapter 3 Communications Data 2 Bit position Bit accessing is not supported on the H8GN Fixed to 00 3 Number of elements Number of elements Pr
35. up area 1 Communications writing OFF disabled ON enabled Spare Spare 20 Spare 21 Spare 22 Spare 23 Spare 24 Spare 25 Spare 26 Spare 27 Spare Spare bits are OFF at all times The status is as follows when reading is carried out in setup area 1 PV underflow Previous value 15 held until reset is generated CP1 signal input CP2 gate input reset input OFF 0 Output OFF 0 Program 3 3 Sample Program N68Basic 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 PROGRAM H8GN Communication Sample Program Compo Way F VERSION 1 00 c Copyright OMRON Corporation 2000 All Right Reserved Communications port setting PARITY EVEN DATA 7 STOP 2 OPEN E73 AS 1 REPEAT Entry send data INPUT SEND DATA SEND To exit processing if there is no entry IF SEND THEN EXIT BCC 0 SEND SEND CHR 3 FOR 1 1 TO LEN SEND XOR ASC MID SENDS 1 NEXT BCC CHR BCC Transmission SDATA CHR 2 SEND BCC PRINT 1 SDATA LOOPO RDATA TIMEOUT 0 LOOP D
36. ve not been described in this manual For control in nuclear power railway aircraft vehicle incinerator medical enter tainment or safety applications Where death or serious property damage may occur or where extensive safety pre cautions are required SAFETY PRECAUTIONS 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 minor injury damage to the product or faulty operation Safety Precautions 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 out put 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 p

Download Pdf Manuals

image

Related Search

Related Contents

Life Fitness 93T Treadmill User Manual  Hauck Lounger  Neue Online-Dienste und Datenschutz Prof. Dr. Peter Wedde - E-LIB  Kenroy Home 32428DWH Instructions / Assembly  

Copyright © All rights reserved.
Failed to retrieve file