EasyManuals Logo

LSIS XBL-C21A User Manual

LSIS XBL-C21A
194 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #86 background imageLoading...
Page #86 background image
Chapter 7 XGT Dedicated Protocol
7-10
Item Description
Number of data
It means byte number of hex type, and is converted into ASCII
Data type Available device Data size (Byte)
BYTE(B) %(P,M,L,K,F,T,C,D,R,I,Q,W)B 1
WORD(W) %(P,M,L,K,F,T,C,D,R,I,Q,W)W 2
DWord(D) %(P,M,L,K,F,T,C,D,R,I,Q,W)D 4
LWord(L) %(P,M,L,K,F,T,C,D,I,Q,W)L 8
R area is supported at XBC-DXXXH
Example 1
When memory type included in variable name of computer request Format is W (Word), and
data number of computer request Format is 03, data number of PLC ACK response after
execution of command is indicated by H06 (2*03 = 06 bytes)Byte and ASCII code value 3036 is
entered in data area.
Example 2
In just above example, when data contents of 3 words are 1234, 5678, and 9ABC in order,
actual ASCII code converted values are 31323334 35363738 39414243, and the contents are
entered in data area.
(d) XGB response format (NAK response)
`
Format name
Heade
r
Station
No.
Command Command type
Error code
(Hex 2 Byte)
Tail Frame check
Ex. of frame
NAK H10 R(r) SB H1132 ETX BCC
ASCII value
H15 H3130 H52(72) H5342 H31313332 H03
Item Description
BCC
When command is lowercase(r), only one lower byte of the value resulted by
adding 1 Byte each to ASCII values from NAK to ETX is converted into ASCII and
added to BCC, and sent.
Error code
Hex and 2 bytes (ASCII code, 4 bytes) indicate error type. For the details, Refer to
9.1.4 XGT dedicated communication error codes and countermeasures.
(e) Example
This example supposes that 2 WORDs from M000 of station No. 10 is read
(It supposes that M000 = H1234, M001 = H5678.)
1) PC request format (PC XGB)
Format name
Header
Station No.
Command
Command type
Device length
Device name
Number of data
Tail
Frame check
Frame (Example)
ENQ H0A R(r) SB H06 %MW000 H02 EOT BCC
ASCII value
H05 H3041 H52(72) H5342 H3036
H254D3030
30
H3032 H04
2) For ACK response after execution of command (PC XGB)
Format name
Header
Station No.
Command
Command
type
Number of
block
Number of
data
Data Tail
Frame
check
Frame (Example)
ACK H0A R(r) SB H01 H04 12345678 ETX BCC
ASCII value
H06 H3041 H52(72) H5342 H3031 H3034 H3132333435363738 03

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the LSIS XBL-C21A and is the answer not in the manual?

LSIS XBL-C21A Specifications

General IconGeneral
BrandLSIS
ModelXBL-C21A
CategoryController
LanguageEnglish

Related product manuals