Omron H8GN V1.02 User Manual

Cat.No. M066–E1–1
H8GN
Preset Counter/Timer
USER’S MANUAL
Preface
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.
E 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. 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.
Moreover, because
I

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:
In circumstances or environments that have 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.
II

SAFETY PRECAUTIONS

JSafety 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
CAUTION
minor injury, damage to the product, or faulty operation.
JSafety Precautions
CAUTION
F Electric Shock Warning
Tighten the terminal screws properly. Loose screws may cause ignition and malfunction. Tightening torque :0.5 Nm 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 products. These may cause leak of electricity, fire or malfunction.
III

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) If the 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 solutions can damage the
outer casing of the H8GN.
IV
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) 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 (Y92FĆ34).
(9) The output 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:
ĂChanging the set value
When changing the set value during operation, the output will turn ON if the set value equals the present value.
Ă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:
Ă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 y Set value Input mode DOWN: Elapsed time y 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.
ĂOperation with set value of 0
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.
V
(12) To allow for the startup time of peripheral devices (sensors, etc.), the H8GN starts timing operaĆ
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.
VI

Table of Contents

Preface I. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Precautions II. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Safety Precautions III. . . . . . . . . . . . . . . . . . . . . . . . . . . .
Notice IV. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Notice 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.
1.1 Outline 1-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Introduction 1-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Communications specifications 1-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Transmission procedure 1-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Interface 1-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Wiring 1-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Communications parameters 1-4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CHAPTER 2 COMPOWAY/F COMMUNICATIONS
PROCEDURES 2-1. . . . . . . . . . . . . . . . . . . . . . . . . . . .
Read this chapter if you are to communicate using the CompoWay/F format.
2.1 Data Format 2-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Command frame 2-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Response frame 2-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Communications data 2-4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Example of end code 2-4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.2 Structure of Command Text 2-5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
PDU structure 2-5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Area definitions 2-5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Type code (variable type) 2-5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Addresses 2-5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Number of elements 2-5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
List of services 2-6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.3 Details of Services 2-7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Read from variable area 2-7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Write to variable area 2-8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Read controller attributes 2-10. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Read controller status 2-11. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Echoback test 2-12. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Operation instructions 2-13. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.4 Response Code List 2-15. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
CHAPTER 3 COMMUNICATIONS DATA 3-1. . . . . . . . . . . . . . . . . .
This chapter lists the details of each of the communications data in the Compo­Way/F communications procedures.
3.1 Variable Area (setup range) List 3-2. . . . . . . . . . . . . . . . . . . . . . . . . . .
3.2 Status 3-6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.3 Sample Program 3-9. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
APPENDIX A-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ASCII List A-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
INDEX
CHAPTER1
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.
CHAPTER 1 ABOUT COMMUNICATIONS METHODS
1.1 Outline 1Ć2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Introduction 1Ć2. . . . . . . . . . . . . . . . . . . . . . . . . . .
Communications specifications 1Ć2. . . . . . . . . .
Transmission procedure 1Ć3. . . . . . . . . . . . . . . .
Interface 1Ć3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Wiring 1Ć3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Communications parameters 1Ć4. . . . . . . . . . . .
1–1
CHAPTER 1 30P aaaaaaa

1.1 Outline

JIntroduction
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Ć
lers in OMRON FA networks.
The H8GN have the following communications functions:
ĂReading/writing of parameters ĂOperation instructions ĂSelection of setup levels
Communications are subject to the following condition:
ĂParameters can be written only when the communications writing"
parameter is set to ON (enabled).
JCommunications specifications
Transmission line connection Multiple point Communications method RS-485 (2-wire, half-duplex) Synchronization method Start-stop synchronization Baud rate Communication code ASCII Data bits Stop bits Error detection Vertical parity (non, even, or odd)
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.
*1
*1 *1
1200, 2400, 4800, 9600 (bit /s)
7 or 8 bits
1 or 2 bits
BCC (block check character)
1–2
JTransmission
procedure
When the host computer transmits a command frame, the H8GN transĆ
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.
JInterface
JWiring
Host computer
Host computer H8GN
RS-485
Abbr
FG
+
SG
Command frame
Response frame
Command 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 stanĆ
dard RSĆ485 interface.
ĂRSĆ485 connections can be 1 : 1 or 1 : N. A maximum of 32 Units (including
the host computer) can be connected in oneĆtoĆN systems.
ĂThe total cable length is 500 m max. ĂUse a shielded, twistedĆpair cable AWG28 or larger for wiring the H8GN.
Communications transceiver
H8GN RS-485
Pin No. Abbr
8
A(–)
7
B(+)
TX
RX
Shielded cable
A<B: [1] mark A>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 the terminators must be at least 54Ω.
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.
Terminator
Shielded cable
6.8V
120
(1/2W)
H8GN end node RS-485
Pin No. Abbr
8
A(–)
7
B(+)
Use a terminator of resistance 120 = (1/2W).
1–3
JCommunications
parameters
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Ć
ting ranges.
Parameter
Communications unit No. 0 to 99 Baud rate 1.2 / 2.4 / 4.8 / 9.6 (k bit/s) Communications data length 7 / 8 (bit) Communications stop bit 1/2 Communications parity None / even / odd
Displayed
Characters
Setting Range Set Value
Highlighted characters indicate defaults.
F Communications
parameter setup
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.
0, 1 to 99
1.2 / 2.4 / 4.8 / 9.6 (k bit/s)
7 / 8 (bit)
1/2
//
Communications unit No.
Baud rate
Communications data length
Communications stop bit
Communications parity
H8GN
1–4
F Communications
parameter setup
Note that communications parameters are enabled after they have been
changed by resetting the controller.
ĂCommunications unit No. ( )
This parameter is for setting the unit No. to each of the H8GN. This unit No. is 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 ( )
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 length ( )
This parameter is for setting the communications data length. Set either of 7 bits" or 8 bits".
ĂCommunications stop bit ( )
This parameter is for setting the communications stop bit. Set either of 1" or 2".
ĂCommunications parity ( )
This parameter is for setting the communications parity. Set one of none", even" or odd".
1–5
1–6
Loading...
+ 32 hidden pages