101
3
(4) Data definitions
1) Control code
2) Station number
Specify the station number of the converter which communicates with the computer.
3) Instruction code
Specify the processing request, e.g. operation or monitoring, given by the computer to the converter. Hence, the
converter can be run and monitored in various ways by specifying the instruction code appropriately.
(Refer to page
4) Data
Indicates the data such as frequency and parameters transferred to and from the converter. The definitions and
ranges of set data are determined in accordance with the instruction codes.
5) Waiting time
Specify the waiting time between the receipt of data at the converter from the computer and the transmission of reply
data. Set the waiting time in accordance with the response time of the computer in the range of 0 to 150ms in 10ms
increments. (Example; 1:10ms, 2:20ms)
6) Sum check code
The sum check code is a 2-digit ASCII (hexadecimal) representing the lower 1 byte (8 bits) of the sum (binary)
derived from the checked ASCII data.
Signal
Name
ASCII Code
Description
STX
H02
Start Of Text (Start of data)
ETX
H03
End Of Text (End of data)
ENQ
H05
Enquiry (Communication request)
ACK
H06
Acknowledge (No data error detected)
LF
H0A
Line Feed
CR
H0D
Carriage Return
NAK
H15
Negative Acknowledge (Data error detected)
REMARKS
When
Pr. 123 (waiting time setting)
9999, create the communication request data without "waiting time" in the data format. (The
number of characters decreases by 1.)
The data check time varies by the instruction code.
(Refer to page 102)
Computer
Converter
Converter
Computer
Converter data processing time
=
+
Waiting time
(setting 10ms)
data check time
(About 10 to 30ms,
which depends on the
instruction code)
(Example 1)
Computer Converter
ENQ
*W
aiting
time
1
Instruction
code
Station
number
0
1
Data
E
1
0
7
A
D
F
4
H05
H30 H31
H31
H45 H31
H30 H37 H41 H44 H46 H34
Binary code
H30+H31+H45+H31+H31+H30+H37+H41+H44
= H1F4
Sum
(Example 2)
STX
Data read
Station
number
0
1
1
7
0
3
0
H02
H30 H31
H37
H31 H37
H30 H03 H33 H30
Sum
ETX
7
* When the
Pr. 123 Waiting time setting
"9999", create the communication request
data without "waiting time" in the data format. (The number of characters decreases by 1.)
Converter
ASCII Code
ASCII Code
Binary code
H30+H31+H31+H37+H37+H30
= H130
Sum
check
code
Sum
check
code
Computer
HC2.book 101 ページ 2012年11月19日 月曜日 午前10時52分