Block Format; Communications Errors - Omron E5ZD Operation Manual

Multipoint temperature controller
Table of Contents

Advertisement

Communications

3-2-2 Block Format

Unit
8 bits
@
0
X
Always 0.
Header code
Start character

3-2-3 Communications Errors

E5ZD Checks
FCS Calculations
The character string transmitted by the host computer is called an command
block. The character string returned by the E5ZD is call a response block. Each
character in the string is sent as 8-bit ASCII (see Appendix D). In this manual,
characters are numerically referred to as the hexidecimal equivalent of the
ASCII code. One generalized block is shown below.
Bank
X
X
X
X
Address
(2 letters)
Range for FCS calculation
Each block begins with a start character, @ (40
E5ZD which is to receive or send the block, and ends with an FCS and a termina-
tor. The data code identifies the type of text being transmitted. The unit number
must be between 0
riage return (0D
hex
All communication errors and recovery from them must be processed at the host
computer. A program must therefore be loaded into the host computer to detect
errors and execute the necessary steps to recover from them.
Transmissions should be set up to be repeated about ten times in order to deal
with communications errors resulting from noise. If noise-originating errors oc-
cur too frequently, either try a lower baud rate or use an optical interface.
Error checks at the E5ZD are performed both by character and by block.
Characters are checked via vertical parity, a framing check, and an overrun
check. Even parity is used with an exclusive OR performed by character. If the
stop bit is found to be a 0, it will result in error generation. Finally, if the next char-
acter is received before the current character has been processed, an error is
generated.
Block checks include checking the command format, numeric values, point
number designations, and FCS (see the next section).
An FCS (frame check sequence) must be sent with every command block and is
returned with every response block. The FCS in each response block should be
checked at the host computer to confirm correct transmission.
The FCS is calculated as the exclusive OR of all characters from the start char-
acter through the final data character, as shown below. The resulting 8-bit value
Point
X
X
Data code
Text
and F
. The terminator consists of * (2A
hex
hex
).
Section 3-2
*
X
X
CR
FCS
Terminator
), and the unit number of the
hex
) and a car-
hex
53

Advertisement

Table of Contents
loading

Table of Contents