5 User Communication
22-66
SmartAXIS Touch User's Manual
●
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.
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
for receive command data is selected.
In the following description,
With Variable
indicates that the
Variable
check box for
Device
for receive command
data is selected and
Without Variable
indicates that the
Variable
check box is not selected. Also, when there are
multiple
Device
set for receive command data, and at least 1 command has the
Variable
check box selected, this
corresponds to
With Variable
.
Start code Terminal
code
Variable
Description of the procedure for terminal of data reception
Set
Set
Set
Not set
Reception is started with the start code and terminated with the terminal code.
When the terminal code is followed by BCC, the data including the number of bytes of
BCC is received.
Set
Not set
Set
Reception is started with the start code and the data is received according to the
maximum command length.
Reception is terminated when the Receiving Character Time Out occurs.
Not set
Reception is started with the start code and the data is received according to the length of
the command.
Not set
Set
Set
Not set
Reception is started from the beginning and terminated with the terminal code.
'02' '31' '32' '33' <[LDR0100] N 2 2 U>
Receive data:
Constant (HEX)
'34' '35' '0d'
Constant (HEX)
Device
Command settings:
Start code 02h
Terminal code 0dh
'02' '31' '32' '33' <[LDR0100] N 2 2 U>
Receive data:
'34' '35' '0d'
Device
Receive
Constant (HEX)
Constant (HEX)
Command settings:
Start code 02h
Terminal code 0dh
'02' '31' '32' '33' <[LDR0100] N 2 2 U>
Receive data:
'34' '35' '0d'
BCC(1 0 XOR N 1)
BCC
Device
Receive
Constant (HEX)
Constant (HEX)
Command settings:
Start code 02h
Terminal code 0dh
'02' '31' '32' <[LDR0100] N 2V 2 U>
Receive data:
Constant (HEX)
<<1:”AB” 2:”CD” [LDR0200]>>
Registering Constant (HEX)
Device With Variable
Maximum command length
Receive
Command settings:
Start code 02h
Terminal code: None
'02' '31' '32' <[LDR0100] N 2V 2 U>
Receive data:
Constant (HEX)
'03'
<<1:”AB” 2:”CD” [LDR0200]>>
Constant (HEX)
Registering Constant (HEX)
Device With Variable
Receive
Command settings:
Start code 02h
Terminal code: None
Receiving character
time out occurs.
'02' '31' '32'
<[LDR0100] N 2 2 U>
Receive data:
Constant (HEX)
<<1:”AB” 2:”CD” [LDR0200]>>
Registering Constant (HEX)
Device Without Variable
Command length
Receive
Command settings:
Start code 02h
Terminal code: None
<[LDR0100] N 2 2 U>
Receive data:
<<1:”AB” 2:”CD” [LDR0200]>>
Registering Constant (HEX)
Device
'34' '35' '0d'
Constant (HEX)
Receive
Command settings:
Start code: None
Terminal code 0dh
Содержание SmartAXIS Touch FT1A Series
Страница 1: ...FT1A Series FT9Y B1390 4 SmartAXIS Touch User s Manual ...
Страница 22: ...Contents Preface 21 SmartAXIS Touch User s Manual ...
Страница 240: ...6 Using Library Screens 4 36 SmartAXIS Touch User s Manual ...
Страница 416: ...2 Multi State Lamps 8 26 SmartAXIS Touch User s Manual ...
Страница 558: ...9 Calendar 9 142 SmartAXIS Touch User s Manual ...
Страница 668: ...6 Timer 11 52 SmartAXIS Touch User s Manual ...
Страница 754: ...4 Using Data and Detected Alarms 13 34 SmartAXIS Touch User s Manual ...
Страница 792: ...4 Using the Data 14 38 SmartAXIS Touch User s Manual ...
Страница 810: ...4 Using the Data 15 18 SmartAXIS Touch User s Manual ...
Страница 870: ...3 Text Manager 19 16 SmartAXIS Touch User s Manual ...
Страница 924: ...6 Important Notes 20 54 SmartAXIS Touch User s Manual ...
Страница 1036: ...5 User Communication 22 74 SmartAXIS Touch User s Manual ...
Страница 1092: ...2 Monitoring on the Touch 24 26 SmartAXIS Touch User s Manual ...
Страница 1142: ...2 Word Devices 27 18 SmartAXIS Touch User s Manual ...
Страница 1186: ...2 Analog Cartridge 29 34 SmartAXIS Touch User s Manual ...
Страница 1194: ...3 Handling Problems 30 8 SmartAXIS Touch User s Manual ...