IDEC MICRO/I HG4G-CJT22 F-B Series User Manual page 184

Micro/i operator interfaces for windo/i-nv4
Table of Contents

Advertisement

5 User Communication
Start Code and Terminal Code
A start code starts data reception and a terminal code judges the terminal of data reception. A start code and a
terminal code can be configured for either Constant (Character) or Constant (Hexadecimal) settings for receive
command. The first 1 byte of the constant is recognized as the start code and the last 1 byte as the terminal code.
Constant
(Hexadecimal)
Command settings:
'02' '31' '32' '33' <[LDR0100] N 2 2 U>
Receive data:
Start code 02h
Code 00h to 7Fh can be set when Data Length under Interface Settings is 7 bits, and 00h to FFh when the data length
is 8 bits. Data Length is configured under the Communication Interface tab on the Project Settings dialog box.
The procedure for terminal of data reception varies whether or not the receive data contains a start code and a
terminal code, and whether the Variable check box for Device Address for receive command data is selected.
In the following description, With Variable indicates that the Variable check box for Device Address for receive
command data is selected and Without Variable indicates that the Variable check box is not selected. Also, when
there are multiple Device Address set for receive command data, and at least 1 command has the Variable check
box selected, this corresponds to With Variable.
Terminal
Start code
code
Set
Set
Set
Not set
3-78
Device Address
Variable
Description of the procedure for terminal of data reception
Reception is started with the start code and terminated with the terminal code.
(Hexadecimal)
Command settings:
'02' '31' '32' '33' <[LDR0100] N 2 2 U>
Receive data:
Start code 02h
Set
When the terminal code is followed by BCC, the data including the number of bytes of
Not set
BCC is received.
(Hexadecimal)
Command settings:
'02' '31' '32' '33' <[LDR0100] N 2 2 U>
Receive data:
Start code 02h
Reception is started with the start code and the data is received according to the
maximum command length.
Command settings:
(Hexadecimal)
'02' '31' '32'
Receive data:
Start code 02h
Set
Reception is terminated when the Receiving Character Time Out occurs.
Constant
Command settings:
(Hexadecimal)
'02' '31' '32'
Receive data:
Start code 02h
Reception is started with the start code and the data is received according to the length of
the command.
Command settings:
(Hexadecimal)
Not set
'02' '31' '32'
Receive data:
Start code 02h
WindO/I-NV4 User's Manual
Constant
(Hexadecimal)
'34' '35' '0d'
Terminal code 0dh
Constant
Device Address
Receive
Constant
Device Address
Constant
Device Address With Variable
<[LDR0100] N 2V 2 U>
Maximum command length
Receive
Device Address
With Variable
(Hexadecimal)
<[LDR0100] N 2V 2 U>
Receiving character
time out occurs.
Receive
Constant
Device Address Without Variable
<[LDR0100] N 2 2 U>
Command length
Receive
Constant
(Hexadecimal)
'34' '35' '0d'
Terminal code 0dh
Constant
(Hexadecimal)
'34' '35' '0d'
BCC(1 0 XOR N 1)
Terminal code 0dh
Receive
Registering Constant (Hexadecimal)
<<1:"AB" 2:"CD" [LDR0200]>>
Terminal code: None
Constant
Registering Constant
(Hexadecimal)
'03'
<<1:"AB" 2:"CD" [LDR0200]>>
Terminal code: None
Registering
Constant (Hexadecimal)
<<1:"AB" 2:"CD" [LDR0200]>>
Terminal code: None
BCC

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents