J-154
TZN/TZ Series
Calculation range of Block Check Character
Start
Code
Header
Code
END
Code
BCC
Code
Address
Code
Text
STX 10
1
10
0
R/W X/D ETX FSC
Communication command and block
Format of command and response
①
Start code
It indicates the first of Block STX → [02H],
in case of response, ACK will be added.
②
Address code
This code is master system can discern TZ/TZN
Series
and able to set within range of 01 to 99. (BCD ASCII)
③
Header code
It indicates command as 2 alphabets as below.
RX (Read request) → R [52H], X [58H]
RD (Read response) → R [52H], D [44H]
WX (Write request) → W [57H], R [58H]
WD (Write response) → W [57H], D [44H]
④
Text: It indicates the detail contents of command/
response. (see command)
⑤
END code: It indicates the end of Block. ETX → [03H]
⑥
BCC: It indicates XOR operating value from the first to
ETX of the protocol as abbreviation of TZ/TZN.
Communication command
● Read [RX] of measurement/setting value:
address 01, command RX
1.Command (master)
①
Command
STX 0 1 R X P 0 ETX FSC
Start Address
Command
head
P:Process value
S:Setting value
End BCC
②
Application: address (01), header code (RX),
process value (P)
STX 0 1 R X P 0 ETX FSC
02 30 31 52 58 50 30 03 BCC
●
Write [WX] of setting value: address 01, command WX
1.Command (master)
①
Command
STX 0 1 W X S 0 Symbol 10
3
10
2
10
1
10
0
ETX FSC
Start Address
Command
head
S:Setting
value
Space/- 10
3
10
2
10
1
10
0
End BCC
②
Application: In case of writing address (01), heading
coad (WX), setting value (S) +123.
STX 0 1 W X S 0 Symbol 10
3
10
2
10
1
10
0
ETX FSC
02 30 31 57 58 53 30 20 30 31 32 33 03 BCC
Response
● Read of process/Setting value
1. In case of receiving normal process value:
The data is transmitted adding ACK [60H].
(In case process value is +123.4)
A
C
K
S
T
X
0 1 R D P 0 Symbol 10
3
10
2
10
1
10
0
Decimal
point
E
T
X
F
S
C
N
U
L
L
A
C
K
S
T
X
0 1 R D P 0 Space 1 2 3 4 1
E
T
X
B
C
C
N
U
L
L
06 02 30 31 52 44 50 30 20 31 32 33 34 31 03
B
C
C
00
2. In case process value is -100
A
C
K
S
T
X
0 1 R D P 0
-
0 1 0 0 0
E
T
X
B
C
C
N
U
L
L
06 02 30 31 52 44 50 30 2D 30 31 30 30 30 03
B
C
C
00
※
It is responded with 1 byte sized NULL (00H) at the end
of response frame (next BCC 16).
● Write of setting value
In case setting value is -100
A
C
K
S
T
X
0 1 W D S 0 Symbol 10
3
10
2
10
1
10
0
E
T
X
F
S
C
A
C
K
S
T
X
0 1 W D S 0
-
0 1 0 0
E
T
X
B
C
C
06 02 30 31 57 44 53 30 2D 30 31 30 30 03
B
C
C
● Others: In case of no response of ACK
①
When the address is not the same after receiving STX.
②
When receiving buffer overflow is occurred.
③
When the baud rate or others communication setting
value are not the same.
● When there are no ACK response
①
Check the status of lines
②
Check the communication condition (setting value)
③
When assuming the problem is due to noise, try to
operate communication 3 times more until recovery.
④
When occurred communication failure frequently,
please adjust the communicating speed.