Omron H8GN - V1.1 User Manual
Omron H8GN - V1.1 User Manual

Omron H8GN - V1.1 User Manual

Preset counter/timer

Advertisement

Quick Links

Cat.No. M066–E1–1
H8GN
Preset Counter/Timer
USER'S MANUAL

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the H8GN - V1.1 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Omron H8GN - V1.1

  • Page 1 Cat.No. M066–E1–1 H8GN Preset Counter/Timer USER’S MANUAL...
  • Page 2: Preface

    Preface 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.
  • Page 3 PRECAUTIONS DO NOT USE:...
  • Page 4: Safety Precautions

    SAFETY PRECAUTIONS JSafety Signal Words CAUTION JSafety Precautions CAUTION F Electric Shock Warning...
  • Page 5: Notice

    NOTICE Be sure to observe these precautions to ensure safe use.
  • Page 6 NOTICE Note:...
  • Page 8: Table Of Contents

    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. 1.1 Outline .
  • Page 9 CHAPTER 3 COMMUNICATIONS DATA ....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 .
  • Page 10: Chapter 1 About Communications Methods

    CHAPTER 1 ABOUT COMMUNICATIONS METHODS CHAPTER CHAPTER 1 ABOUT COMMUNICATIONS METHODS 1–1...
  • Page 11: 1.1 Outline

    9600 (bit /s) Communication code ASCII Data bits or 8 bits Stop bits 1 or bits Error detection Vertical parity (non, even, or odd) BCC (block check character) Flow control None Interface RS-485 Retry function None Communications buffer 40 byte...
  • Page 12: Transmission Procedure

    A(–) (including the host computer) must be B(+) specified (by setting terminator ON) as the end node. The total resistance of Use a terminator of resistance Shielded cable the terminators must be at least 54 . 120 = (1/2W). 1–3...
  • Page 13 Set Value Characters Communications unit No. 0 to 99 to 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 7 / 8 (bit) / 8 (bit)
  • Page 14 F Communications parameter setup 1–5...
  • Page 15 1–6...
  • Page 16: Chapter 2 Compoway/F Communications Procedures

    CHAPTER 2 CompoWay/F COMMUNICATIONS PROCEDURES CHAPTER CHAPTER 2 CompoWay/F COMMUNICATIONS PROCEDURES 2–1...
  • Page 17 Command text area. For details, see “2.2 Structure of Command Text.” This code (03) indicates the end of the text. Block Check Character The BCC result is found by calculating the exclusive OR of the bytes from the node No. up to ETX. 2–2...
  • Page 18 Command text 0(30H) 0(30H) 0(30H) 0(30H) 0(30H) 0(30H) 5(35H) 0(30H) 3(33H) BCC=30H30H30H30H30H30H35H30H33H03H=35H Calculation result 35H is set to the BCC area. The  symbol indicates exclusive OR operation and the H indicates hexadecimal code. JResponse frame Node No. Sub-address End code...
  • Page 19: Communications Data

    JCommunications data Set (monitor) Value Minus 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 JExample of end code Command Format Node No. Sub-address Response Format Node No.
  • Page 20: Structure Of Command Text

    2.2 Structure of Command Text JPDU structure Service request PDU Data Service response PDU (during normal operation) MRES SRES Data Service response PDU (at non-execution of specified command text) MRES SRES JArea definitions JType code (variable type) Variable Description type R/O (read only) parameter.
  • Page 21: List Of Services

    Name of service Process Read from variable This service reads from variable areas. area Write to variable area This service writes to variable areas. Read controller This service reads the model No. and com- attributes munications buffer size. Read controller...
  • Page 22 0 or 8 or 16 Number of Process 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.”...
  • Page 23 0 1 0 2 Number of Process 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.”...
  • Page 24 The command is too short. 1101 Area type error Wrong variable type 1103 Start address out-of- Write start address is out of range. range error 1104 End address out-of- The write end address (write start range error address + number of elements) exceeds the final address of the vari- able area.
  • Page 25 MRC SRC Response Model No. Communica- tions buffer size code 0 5 0 3 0 0 2 8 Example: H 8 G N – A D Response code Name Description 0000 Normal completion No errors were found. Response code Name...
  • Page 26 0 6 0 1 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) Bit position...
  • Page 27 0 8 0 1 0 to 23 Communications Test data data length 8 bits 20 to 7E, A1 to FE converted to ASCII code 7 bits 20 to 7E converted to ASCII code Response code Name Description 0000 Normal completion No errors were found.
  • Page 28 Instruction code and related informa- tion are wrong. 2203 Operation error “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.
  • Page 29 CHAPTER 2 CompoWay/F COMMUNICATIONS PROCEDURES 2–14...
  • Page 30: 2.4 Response Code List

    (when larger than number of elements 0002). 1100 Parameter error The bit position is other than “00”. The write data is out of the setting range. The instruction code and related information in the operating instruc- tion is wrong.
  • Page 31 CHAPTER 2 CompoWay/F COMMUNICATIONS PROCEDURES 2–16...
  • Page 32: Chapter 3 Communications Data

    CHAPTER 3 COMMUNICATIONS DATA CHAPTER CHAPTER 3 COMMUNICATIONS DATA 3–1...
  • Page 33: Variable Area (Setup Range) List

    * 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...
  • Page 34 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 3–3...
  • Page 35 H’00000001(1): B H’00000002(2): D H’00000003(3): E H’00000004(4): F H’00000005(5): 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...
  • Page 36 H’00000000(0): - - - - Initial setting H’00000001(1): - - -.- H’00000002(2): - -.- - H’00000003(3): -.- - - 000A Pre-scale value H’00000001 to H’0000270F (0.001 to 9.999) 000B Input signal edge H’00000000(0): Rise edge H’00000001(1): Fall edge 000C Communications unit H’00000000 to H’00000063 (0 to 99)
  • Page 37: Status

    CHAPTER 3 COMMUNICATIONS DATA 3.2 Status Bit position PV underflow Spare Spare Spare CP1 (signal) input CP2 (gate) input Reset input Spare Spare Spare Spare Spare Output Spare Spare Spare 3–6...
  • Page 38 Status Bit position Setup area Communications writing Spare Spare Spare Spare Spare Spare Spare Spare Spare Spare Spare Spare Spare Spare 3–7...
  • Page 39 CHAPTER 3 COMMUNICATIONS DATA Bit Description Bit position Status PV underflow *1 Not generated Generated Spare Spare Spare CP1 (signal) input *1 CP2 (gate) input *1 Reset input *1 Spare Spare Spare Spare Spare Output *1 Spare Spare Spare Setup area...
  • Page 40: Sample Program

    ’ 1150 ’---------- Entry of send data ---------- 1160 INPUT ”SEND DATA:”, SEND$ 1170 ’ 1180 ’---------- To exit processing if there is no entry ---------- 1190 IF SEND$=”” THEN EXIT 1200 ’ 1210 ’---------- Calculation of BCC ---------- 1220...
  • Page 41 1570 ’=====End processing========== 1580 CLOSE #1 1590 SEND DATA: 000000101C00001000001 RESPONSE: 000000010100000000014F SEND DATA : [STX] 00 00 0 0101 C0 0001 00 0001 [ETX] [BBC] Number of elements Bit position Read start address Variable type MRC/SRC Sub–address Node No.
  • Page 42: Sample Program

    Serial port 2 000000 191915 A20200 Destination address E1 (serial communication board) PMCR #02E1 #0258 Sequence No. 0258H (=600) D01000 “Network First word address for transmission data communication D01500 First word address for reception data error” flag A21900 FAL(06) 01 3–11...
  • Page 43: Chapter 3 Communications Data

    ”01” ”00” ”0” ”01” ”01” ”C0” ”0001” ”00” ”0001” D01000 0007 No. of transmission words (D01000 to D01006) D01001 0001 Node No. of H8GN: 1 D01002 0101 CompoWay/F command: Variable area read D01003 000C No. of bytes transmitted: 12 D01004...
  • Page 44: Appendix

    APPENDIX APPENDIX A–1...
  • Page 45: Ascii List

    APPENDIX ASCII LIST (ANSI X 3.4-1986) SPAC Even parity ” & ’ < > A–2...
  • Page 46 INDEX...
  • Page 47 Revision History Revision code Data Revised content June 2000 Original production...

This manual is also suitable for:

H8gn

Table of Contents