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.
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 .
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 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...
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.
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.
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.
(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.
* 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)
’ 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.
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...
Need help?
Do you have a question about the H8GN - V1.1 and is the answer not in the manual?
Questions and answers