Communications Data; End Code Example - Omron E5CN-HT Communications Manual

Digital
Hide thumbs Also See for E5CN-HT:
Table of Contents

Advertisement

SECTION 2 CompoWay/F Communications Procedures

■ Communications Data

Communications
Set (monitor)
format
values
CompoWay/F
8-digit hexa-
decimal

■ End Code Example

2-4
Negative values
2's complement
Decimal point is removed and the result is converted
to hexadecimal.
Example conversion: 105.0 → 1050 → H'0000041A
However, when reading or writing time data in
hh.mm, mm.ss, or dd.hh, BCD data is used (the
same format as the display).
Example: The data is H'00009959 for a display of
99.59.
The following examples show the end code when a command did not
end normally.
Example 1) Illegal Sub-address, No SID, and No Command Text
Command
Node number Sub-address
STX
0
Response
Node number Sub-address End code
STX
0
End code is "16" (sub-address error).
The sub-address error code is used because the sub-address error has
a higher error detection priority than the format error.
Example 2) No Command Text
Command
Node number Sub-address
STX
0
Response
Node number Sub-address End code
STX
0
The end code is "14" (format error).
Example 3) No Node Number Provided
Command
BCC
STX
EXT
The node number is lacking one character.
Decimal point
BCC
A
EXT
BCC
A
1
6
EXT
SID
BCC
0
0
EXT
BCC
0
1
4
EXT

Advertisement

Table of Contents
loading

This manual is also suitable for:

E5en-htE5an-ht

Table of Contents