Omron H8GN User manual

Authorized Distributor:
OMRON Corporation
Industrial Automation Company
Measuring and Supervisory Controls Department
Shiokoji Horikawa, Shimogyo-ku,
Kyoto 600-8530 Japan
Tel: (81)75-344-7108/Fax: (81)75-344-7189
Regional Headquarters
OMRON EUROPE B.V.
Wegalaan 67-69, NL-2132 JD Hoofddorp
The Netherlands
Tel: (31)2356-81-300/Fax: (31)2356-81-388
OMRON ELECTRONICS, LLC
1 East Commerce Drive, Schaumburg, IL 60173
U.S.A.
Tel: (1)847-843-7900/Fax: (1)847-843-8568
OMRON ASIA PACIFIC PTE. LTD.
83 Clemenceau Avenue, #11-01, UE Square,
Singapore 239920
Tel: (65)835-3011/Fax: (65)835-2711
OMRON CHINA CO. LTD.
BEIJING OFFICE
Room 1028, Office Building,
Beijing Capital Times Square,
No.88 West Chang'an Road,
Beijing 100031 China
Tel: (86)10-8391-3005/Fax: (86)10-8391-3688
Cat. No. M066-E1-1 Note: Specifications subject to change without notice. Printed in Japan
0301-2M (0600) (B)
User's Manual
Cat. No. M066-E1-1
Communications
Functions
PresetCounter / Timer

H8GN
I
The H8GN su orts serial communications s ecifications, Com oWay/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 lace so that it can be retrieved whenever necessary.
E
OMRON, 2000
All rights reser ed. No part of this publication may be reproduced, stored in a retrie al 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. Moreo er, because
OMRON is constantly stri ing to impro e its highĆquality products, the information contained in this manual is
subject to change without notice. E ery precaution has been taken in the preparation of this manual. Ne ertheĆ
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.
Preface

H8GN
II
PRECAUTIONS
When the product is used under the circumstances or en ironments 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 en ironments that ha e not been described in this manual.
•
For control in nuclear power, railway, aircraft, ehicle, incinerator, medical, enterĆ
tainment, or safety applications
•
Where death or serious property damage may occur, or where extensi e safety preĆ
cautions are required.

H8GN
III
SAFETY PRECAUTIONS
J
Safet Signal Words
This manual uses the following signal words to mark safety recautions for the H8GN.
These recautions rovide im ortant information for the safe a lication of the roduct. You
must be sure to follow the instructions rovided in all safety recautions.
CAUTION
Indicates information that, if not heeded, could result in relatively serious or
minor injury, damage to the roduct, or faulty o eration.
J
Safet Precautions
CAUTION
F
Electric Shock Warning
Tighten the terminal screws ro erly. Loose screws may cause ignition and malfunction.
Tightening torque :0.5 N
m max.
Do not o erate this roduct in flammable and ex losive gas atmos heres.
The life ex ectancy of the out ut relays varies greatly with the switching ca acity and other switching
conditions. Always use the out ut relays within their rated load and electrical life ex ectancy. If an outĆ
ut relay is used beyond its life ex ectancy, its contacts may become fused or burned.
Never disassemble, re air or modify the roduct.
Doing so may cause electric shock, fire or malfunction.
Do not allow metal fragments or lead wire scra s to fall inside this roducts.
These may cause leak of electricity, fire or malfunction.

I
V
NOTICE
Be sure to observe these precautions to ensure safe use.
!& +,'*"& ,! %# +-* ,!, ,! %"&, ,%(*,-* & !-%"",1 * /",!"& ,!
*, .$-+ . ,! , *''% ,%(*,-* '* ,$+,,!*!'-*+'*-+"& ,!
" ", !+ & +,'* , & %"&, ,%(*,-* ' 3
_
'* $'/
' &', -+ ,! "& ,! '$$'/"& $',"'&+
•
',"'&+ /",! 0++". ."*,"'& '* +!'#
•
',"'&+ /!* ,! "+ 0('+ ,' +(*1 /,* '* '"$
' &', -+ ,! "& -+,1 &."*'&%&,+ '* 0('+ ", ,' '**'+". ++ '* "*, +-&$" !,
+-* ,' -+ ,! '*"& ,' ",+ *, %"&, '(*,"& ,%(*,-* & !-%"",1
*& +
# +-* ,!, ,! .'$, "+ (($" /",!"& ,! +("" *& ,!*/"+ ,! "&,*&$ $%&,+
' ,! %1 %
!& -+"& ,! "& & * /",! 0++ $,*'&" &'"+ +(*, ,! /"*"& & ,!
)-"(%&, /!"! &*,+ ,! "&(-, +" &$+ + * + ('++"$ *'% ,! &'"+ +'-*+ , "+ $+'
*'%%& ,' +!"$ ,! "&(-, +" &$ /"*"& ,' (*.&, $,*'&" "&,**&
,! "+ -+ "& $',"'&+ /",! !" ! +,," $,*"",1 +-! + +",+ /",! ("(+ ,*&+('*,"&
%'$"& %,*"$+ ('/*+ '* $")-"+ +-* ,' +(*, ,! *'% $$ +'-*+ &*,"&
+,," $,*"",1
* &" +'$.&,+ +-! + ("&, ,!"&&* + /$$ + .*1 "" '* +" +'$-,"'&+ & % ,!
'-,* +"& ' ,!

V
NOTICE
5 45: ;9, :/, 04 :/, -5225=04. 25*(:0549
•
5*(:0549 =0:/ /0./ /;30+0:? :/(: 3(? 8,9;2: 04 *54+,49(:054
•
5*(:0549 =0:/ 8(+0*(2 :,36,8(:;8, */(4.,9
(? :/, ;:359: (::,4:054 45: :5 3(1, 309:(1,9 04 652(80:? =/,4 =0804. :/, #03,8
2=(?9 3(04:(04 :/, 65=,8 9;662? <52:(., =0:/04 :/, 96,*0-0*(:0549
544,*: :/, 65=,8 9;662? <52:(., :/85;./ ( 8,2(? 58 9=0:*/ 04 9;*/ ( =(? :/(: :/, <52:(., 8,(*/,9
( -0>,+ <(2;, (: 54*, :/,8=09, :/, 3(? 45: ), 8,9,: 58 5;:6;:9 3(? :;84
, 9;8, :/(: :/, *(6(*0:? 5- :/, 65=,8 9;662? 09 2(8., ,45;./ 5:/,8=09, :/, 3(? 45: 9:(8:
+;, :5 048;9/ *;88,4: 6685> :/(: 3(? -25= -58 (4 049:(4: =/,4 :/, 09 :;84,+ 54
58 :/, 65=,8 9;662? 5- (4 046;: +,<0*, -58 :/, ;9, (4 0952(:04. :8(49-583,8 =0:/ :/, 6803(A
8? (4+ 9,*54+(8? =04+04.9 3;:;(22? 0952(:,+ (4+ :/, 9,*54+(8? =04+04. 45: .85;4+,+
,(<04. :/, =0:/ 5;:6;:9 (: ( /0./ :,36,8(:;8, -58 ( 254. :03, 3(? /(9:,4 :/,+,.8(+(A
:054 5- 04:,84(2 6(8:9 9;*/ (9 ,2,*:852?:0* *(6(*0:589 58 :/09 8,(954 )? ;904. 04 *53)04(:054
=0:/ 8,2(?9 (<50+ 90:;(:0549 =/,8, 5;:6;:9 (8, 2,-: -58 ( 254. :03, ,. 54, 354:/ 58 358,
- :/, =(:,8:0./: 8;)),8 6(*104. 09 45: *5368,99,+ 9;--0*0,4:2? =(:,83(? 6,4,:8(:,:/, 6(4,258
:/09 8,(954 ), 9;8, :5 :0./:,4 :/, 8,04-58*,3,4: 9*8,=9 5- :/, 5;4:04. +(6:,8 &A
#/, 5;:6;: *54:(*:9 (8, " "#A (4+ " "#A 58 :/09 8,(954 ), 9;8, 45: :5 ;9, :/,9, *54:(*:9
04 *08*;0:9 :/(: =022 8,9;2: 04 A6504: 9/58:A*08*;0:9 65=,8 9;662? 9/58:A*08*;0:04. +;, :5 (8*04.
4 *5;4:,8 56,8(:054
•
/(4.04. :/, 9,: <(2;,
%/,4 */(4.04. :/, 9,: <(2;, +;804. 56,8(:054 :/, 5;:6;: =022 :;84 0- :/, 9,: <(2;, ,7;(29
:/, 68,9,4: <(2;,
•
6,8(:054 =0:/ 9,: <(2;, (4+ 68,9,4: <(2;, 5-
#/, 5;:6;: =022 :;84 0- :/, 9,: <(2;, 5- ,7;(29 :/, 68,9,4: <(2;, #/, 5;:6;: =022 ),
=/02, :/, !,9,: ,? 09 68,99,+ 58 :/, 8,9,: 046;: 09
4 :03,8 56,8(:054
•
/(4.04. :/, 9,: <(2;,
%/,4 */(4.04. :/, 9,: <(2;, +;804. 56,8(:054 :/, 56,8(:,9 04 :/, 9(3, =(? (9 =/,4 :/,
68,9,4: <(2;, 8,(*/,+ :/, 9,: <(2;, ),*(;9, ( *549:(4: 8,(+A04 9?9:,3 09 04 ;9, 4+ 5;:6;: 3(?
:;84 +,6,4+04. 54 :/, 5;:6;: 35+, 0- :/, 9,: <(2;, 09 */(4.,+ (9 -5225=9
46;: 35+, $ 8,9,4: <(2;,
y
",: <(2;,
46;: 35+, % 2(69,+ :03,
y
",: <(2;, 8,9,4: <(2;,
Note:
%/,4 04 % 35+, :/, (35;4: 9,: <(2;, 09 */(4.,+ 09 (++,+ :5 58 9;):8(*:,+ -853
:/, 68,9,4: <(2;,
•
6,8(:054 =0:/ 9,: <(2;, 5-
( %/,4 :/, 5;:6;: 35+, 09 9,: :5 54,A9/5: 5;:6;: 58 5;:6;: =022 :;84 =/,4
:/, 9:(8: 90.4(2 09 046;:
) %/,4 :/, 5;:6;: 35+, 09 9,: :5 /52+ 5;:6;: 58 ' 5;:6;: =022 8,3(04 ,<,4 =/,4
:/, 9:(8: 90.4(2 09 046;:

H8GN
V
I
(12) T all w f r the startup time f peripheral devices (sens rs, etc.), the H8GN starts timing peraĆ
ti n between 210 t 260 ms after p wer is turned ON. F r this reas n, in perati ns where timing
starts fr m p wer ON, the time display will actually start fr m 258 ms. If the set value is 258 ms
r less, the time until utput turns ON will be a fixed value between 210 and 260. (N rmal peraĆ
ti n is p ssible f r set value f 259 ms r m re.) In applicati ns where a set value f 258 ms r less
is required, use start timing with signal input.

H8GN
Preface I......................................
Precautions II..................................
Safety Precautions III............................
Notice I.......................................
Notice .......................................
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.....................................
Table of Contents

H8GN
CHAPTER 3 COMMUNICATIONS DATA 3Ć1..................
This hapter lists the details of ea h of the ommuni ations data in the CompoĆ
Way/F ommuni ations pro edures.
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

CHAPTER 1 ABOUT COMMUNICATIONS METHODS
1-1
CHAPTER 1
ABOUT
COMMUNICATIONS
METHODS
This chapter briefly describes the supported communications methods
and ho to ire equipment. FirstĆtime users should read this chapter
ithout fail to ensure proper installation of the equipment.
CHAPTER1
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 1 ABOUT COMMUNICATIONS METHODS
1-2
1.1 Outline
$! ,-+#-) "+- /$! +))0*%/%+*. "0*/%+*. -! -!/! +* /$! $+./
+),0/!- * /$! . ,-)!/!-. -! )+*%/+-! +- .!/ "-+) /$! $+./
+),0/!- $!-!"+-! /$! !.-%,/%+* ,-+1% ! $!-! %. "-+) /$! 1%!2,+%*/
+" /$! $+./ +),0/!-
+),+3 %. . ./* - +))0*%/%+*. "+-)/ "+- #!*!-(
.!-%( +))0*%/%+*. $%. "+-)/ 0.!. ./* - "-)! "+-)/ . 2!((
. /$! +))* . 2$%$ $1! ,-+1!* .0!.."0( %* . .
$!-!"+-! %/ * .%),(%"3 +))0*%/%+*. !/2!!* +),+*!*/. * /$!
$+./ +),0/!-
*
/+-3 */!-"! !/2+-' !-1%!
$! ,-+/++( ,-+1% !. )!..#! +))0*%/%+*. !/2!!* +*/-+(6
(!-. %* *!/2+-'.
$! $1! /$! "+((+2%*# +))0*%/%+*. "0*/%+*.
•
! %*#2-%/%*# +" ,-)!/!-.
•
,!-/%+* %*./-0/%+*.
•
!(!/%+* +" .!/0, (!1!(.
+))0*%/%+*. -! .0&!/ /+ /$! "+((+2%*# +* %/%+*
•
-)!/!-. * ! 2-%//!* +*(3 2$!* /$! 4+))0*%/%+*. 2-%/%*#
,-)!/!- %. .!/ /+ !*(!
J
Communicationsspecifications
Transmission line connection Multiple point
Communications method RSĆ485 (2Ćwire, halfĆduplex)
Synchronization method StartĆstop synchronization
Baud rate *1 1200, 2400, 4800,
9600
( it /s)
Communication code ASCII
Data its *1
7
or 8 its
Stop its *1 1or
2
its
Error detection Vertical parity (non,
even
, or odd)
BCC ( lock check character)
Flow control None
Interface RSĆ485
Retry function None
Communications uffer 40 yte
*
0 -/! / %/. ./+, %/. * 1!-/%( ,-%/3 * !$ ! .!/ %* !6
,!* !*/(3 %* /$! +))0*%/%+*. .!//%*# (!1!( %#$(%#$/! $-/!-.
%* /$! /(! +1! %* %/! !"0(/.
J
Introduction

1.1 Outline
1-3
!% *! !&)* &$'+*( *(%)$"*) &$$% ($ *! *(%)1
$"*) ()'&%) ($ *!* &(()'&%) *& *! &$$% ($ )"% #
()'&%) ($ ") (*+(% &( ! &$$% ($ ! &##&-"% "1
($ )!&-) *! &'(*"&% & *! &$$% % ()'&%) ($)
Command frame Command frame
Response frame
Host computer
H8GN
##&- -"* *"$ & * #)* $) +%*"# *! %.* &$$% ") )%* *( *!
!&)* &$'+*( (",) ()'&%) (&$ *!
&$$+%"*"&%) -"*! *! !&)* &$'+*( ( ((" &+* *!(&+ ! )*%1
( 1 "%*(
•
1 &%%*"&%) % &($."$+$&%"*)"%#+"%
*! !&)* &$'+*( % &%%* "% &%1*&1 )/)*$)
•
! *&*# # #% *! ") $ $.
•
) )!"#*-")*1'"(# &( #( ( &( -"("% *!
8
7
H8GN
RSĆ485
Pin No. Abbr
8
7
Host computer
RSĆ485
Abbr
FG
-
+
SG
Shielded cable
A(-)
B(+)
6.8V
erminator
120
Ω
(1/2W)
Shielded cable
H8GN
end node
RSĆ485
Pin No. Abbr
A(-)
B(+)
Use a terminator of resistance
120
Ω
= (1/2W).
Communications transceiver
X
RX
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. he total resistance of
the terminators must be at least 54
Ω
.
*! *! &$$+%"*"&%) )'""*"&%) & *! % *! !&)* &$1
'+*( &%1*&1 )/)*$ ") "% +) )+( *!* *! &$$+%"*"&%)
)'""*"&%) & ## ,") "% *! )/)*$ .'* "%","+# +%"* %+$()
( *! )$
J
Transmission
procedure
J
Interface
J
Wiring

CHAPTER 1 ABOUT COMMUNICATIONS METHODS
H8GN
1-4
The H8GNs co unications specifications are set in the co unications
setting level. These para eters are set on the H8GNs front panel.
The following table shows the co unications para eters and their setĆ
ting ranges.
Parameter Displayed
Characters Setting Range Set Value
Communic tions unit No. 0to99 0,
1
to 99
B ud r te 1.2 / 2.4 / 4.8 / 9.6 (k bit/s) 1.2 / 2.4 / 4.8 /
9.6
(k bit/s)
Communic tions d t length 7 / 8 (bit)
7
/ 8 (bit)
Communic tions stop bit 1/2 1/
2
Communic tions p rity None / even / odd //
Highlighted characters indicate defaults.
Before you carry out co unications with the H8GN, set up co unicaĆ
tions unit No., Co unication rate and other para eters by carrying out
the following procedure.
(1) Hold down the key for at least three seconds to ove fro the
operation level" to the initial setting level."
(2) Press the key for less than one second to ove fro the initial
setting level" to the co unications setting level."
(3) Select the para eters as shown below by pressing the key.
(4) Use the or keys to change the para eter set values.
H8GN
Communic tions unit No.
B ud r te
Communic tions d t length
Communic tions stop bit
Communic tions p rity
J
Communications
parameters
F
Communications
parameter setup

1.1 Outline
1-5
&* * * &$$+%!*!&%) '($*() ( %# *( * . , %
% . ()**!% * &%*(&##(
•
&$$+%!*!&%) +%!* &
!) '($*( !) &( )**!% * +%!* & *& & * !) +%!*
& !))*)&* ** &)* &$'+*( % !%*!. * - %&$$+1
%!*!&%) ( ((! &+* -!* * &)* &$'+*( * +%!* & -!* !%
* (% *& &( &%%* *& * &)* &$'+*( &% *
%*-&(" +#* !) / % *-& &( $&( ( +) & %&* )*
* )$ +%!* & &!% )& -!## '(,%* %&($# &'(*!&%
•
+ (*
!) '($*( !) &( )**!% * + (* - % &$$+%!*!% -!*
* &)* &$'+*( * &% & / !*) / !*) /
!*) % / !*)
•
&$$+%!*!&%) * #%*
!) '($*( !) &( )**!% * &$$+%!*!&%) * #%* * !* (
& / !*) &( / !*)
•
&$$+%!*!&%) )*&' !*
!) '($*( !) &( )**!% * &$$+%!*!&%) )*&' !* * !* ( &
/ &( /
•
&$$+%!*!&%) '(!*.
!) '($*( !) &( )**!% * &$$+%!*!&%) '(!*. * &% &
/%&% /,% &( /&
F
Communications
parameter setup

CHAPTER 2 CompoWay/F COMMUNICATIONS PROCEDURES
2-1
CHAPTER 2
CompoWay/F
COMMUNICATIONS
PROCEDURES
Rea this chapter if you are to communicate using the CompoWay/F
format.
CHAPTER2
2.1 Data Format 2Ć2...........................
Comman frame 2Ć2.......................
Response frame 2Ć3........................
Communications ata 2Ć4..................
Example of en co e 2Ć4....................
2.2 Structure of Comman Text 2Ć5.............
PDU structure 2Ć5.........................
Area efinitions 2Ć5........................
Type co e (variable type) 2Ć5...............
A resses 2Ć5.............................
Number of elements 2Ć5....................
List of services 2Ć6.........................
2.3 Details of Services 2Ć7......................
Rea from variable area 2Ć7................
Write to variable area 2Ć8...................
Rea controller attributes 2Ć10...............
Rea controller status 2Ć11..................
Echoback test 2Ć12..........................
Operation instructions 2Ć13..................
2.4 Response Co e List 2Ć15....................

CHAPTER 2 CompoWay/F COMM NICATIONS PROCED RES
H8GN
2-2
2.1 Data Format
Unless othe wise indicated, numbe s in this manual a e exp essed in hexĆ
adecimal. Values in double quotation ma ks, such as 00", a e ASCII.
The numbe unde neath each delimite in a f ame indicates the numbe
of bytes.
J
Command frame
STX 0 0 ETX
12 21 11
BCCSID
Text
BCC calculation range
Node No. SubĆaddress Command text
0
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
•
This number specifies the transmission's destination.
•
Specify the H8GN's Communications unit No.".
•
BCD range 00" to 99" and XX" can be set.
•
SpecifyXX" for abroadcast transmission. NoresponsewillbereturnedforbroadĆ
cast transmissions.
•
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.

2.1 Data Format
2-3
$ !# * ! '#% % -% '& !% * ! '#%
% )&$' ! % ! ! &" %! %! %(! #%#$
$%% %$ %! % #
STX SID ETX BCC
03H 35H02H 0(30H) 0(30H) 0(30H) 0(30H) 0(30H) 0(30H) 5(35H) 0(30H) 3(33H)
BCC=30H
30H
30H
30H
30H
30H
35H
30H
33H
03H=35H
Node No. SubĆaddress Command text
Calculation result 35H is set to the BCC area.
The
symbol indicates exclusive O operation and the H indicates hexadecimal code.
J
Response frame
STX ETX
12 2 2 11
BCCNode No. SubĆaddress Command textEnd code
End
code Name Description Error
Detection
Priority
00 Normal completion The command ended normally without error. None
0F FINS command error The specified FINS command could not be executed.
The FINS response code should indicate why the command
could not be executed.
8
10 Parity error The sum total of bits whose received data is 1" does not
match the set value of communications parity." 2
11 Framing error Stop bit is 0". 1
12 Overrun error An attempt was made to transfer new data when the recepĆ
tion data was already full. 3
13 BCC error The calculated BCC value is differentfrom the received BCC
value. 5
14 Format error
•
The command text contains characters other than 0 to 9,
and A to F. This error is not applicable to the echoback test.
(For details, see chapters 2.3 Echoback test.")
•
No SID and command text. Or, no command text
•
M C/S C" not included in command text
7
16 SubĆaddress error
•
Illegal (unsupported) subĆaddress
•
No subĆaddress, SID and command text
•
SubĆaddress less than two characters, and no SID and
command text
6
18 Frame length error The received frame exceeds the fixed (supported) number of
bytes. 4
•
! $ #%&# %! #' ! #$ #$$$ %! %
$ !
•
! #$"! $ ( #%&# % %$ % #$"! $ # #
!"% &" %! %
•
+##!# %%! #!#%* %$ % "#!#%* ( %(! !# !#
##!#$ !&# $&% !&$*
F
BCC calculation
example

CHAPTER 2 Compo ay/F COMMUNICATIONS PROCEDURES
H8GN
2-4
J
Communicationsdata
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
T e following examples s ow an end code w en a command did not end
normally.
Example 1) Illegal subĆaddress, and no SID and command text
STX 0 ETX
BCC
A
STX 0 ETX
BCC
A16
Command Format
Node No. SubĆaddress
Node No. SubĆaddress End code
Response Format
End code is 16" (subĆaddress error).
T is is because a subĆaddress was received and t e subĆaddress
error as a ig er error detection priority t an t e format error.
Example 2) No command text
STX 0 ETX
BCC
0
SID
0
STX 0 ETX
BCC
014
Command Format
Response Format
Node No. SubĆaddress
Node No. SubĆaddress End code
End code is 14" (format error).
Example 3) All node Nos. not provided
STX ETX
BCC
Command Format
T e node No. is lacking one c aracter.
Response Format
No response
Example 4) No subĆaddress, and illegal BCC
STX ETX
BCC
STX 0 ETX
BCC
013
Err
Command Format
Response Format
Node No.
Node No. SubĆaddress End code
SubĆaddress is 00" and end code is 13" (BCC error).
J
Example of end
code

2.2 Structure of Command Text
H8GN
2-5
2.2 Structure of Command Te t
An MRC (Main Request Code) and SRC (SubĆRequest Code) followed by
the various required data is transferred to the command text.
MRC SRC
Service request PDU
Data
MRES (Main Response Code) and SRES (SubĆResponse Code) are
transferred followin the above MRC/SRC. Data is then transferred
followin these MRES and SRES.
MRC SRC MRES SRES
Service response PDU (during norma operation)
Data
If the specified command text could not be executed, only the MRC/
SRC and MRES/SRES become the tar et response PDUs.
MRC SRC MRES SRES
Service response PDU (at nonĆexecution of specified command text)
MRES/SRES becomes the response code except when processin
ends in normal completion."
Areas comprise only variable area.
The followin defines variable area type codes.
Variable
type Description
C0 R/O (read on y) parameter.
C1 Protect eve parameter.
C2 Operation and adjustment eve parameter.
C3 Initia setting, communications setting and advanced function setĆ
ting eve 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 ran e 0 to 2".
For example, when the number of elements is 0002", specify data for two
items from the address.
J
PDU structure
J
Area definitions
J
Type code
(variable type)
J
Addresses
J
Number of
elements

CHAPTER 2 CompoWay/F COMMUNICATIONS PROCEDURES
H8GN
2-6
J
List of services
MRC SRC Name of service Process
01 01 Read from variable
area This servi e reads from variable areas.
01 02 Write to variable area This servi e writes to variable areas.
05 03 Read ontroller
attributes This servi e reads the model No. and omĆ
muni ations buffer size.
06 01 Read ontroller
status This servi e reads the run status of the
ontroller.
08 01 E hoba k test This servi e arries out the e hoba k test.
30 05 Operation
instru tions This servi e arries out reset, ommuni aĆ
tions writing, multiĆSP, move to prote t
level, move to setup area 1 and software
reset.
*
In a memo y e o (RAM e o ) o initial state (until the cont ol sta ts no maly afte the
powe is tu ned ON), all commands will not be accepted, and no esponse will be etu ned.
The following table summa izes setup a eas 0 and 1.
Area Description
Setup area 0 This area groups together the prote t, operation and adjustment
levels.
Setup area 1 This area groups together the initial setting, ommuni ations setĆ
ting and advan ed fun tion setting levels.
Other manuals for H8GN
1
Table of contents
Other Omron Timer manuals