Chapter 13. Dedicated Cnet communication for GM6
13 - 11
Table 13.5 Number of data according to variables
Available direct variable
Number of data
BOOL(X)
%MX,%QX,%IX,%(P,M,L,K,F,T,C,D,S)X
1(Only lowest bit of these is available)
Byte(B)
%MB,%QB,%IB,%(P,M,L,K,F,T,C,D,S)W
1
WORD(W)
%MW,%QW,%IW,%(P,M,L,K,F,T,C,D,S)W
2
DOUBLE WORD(D)
%MD,%QD,%ID,%(P,M,L,K,F,T,C,D,S)W
4
•
In data area, there are the values of hex data converted to ASCII code.
(4) Response format(for NAK response)
Format
name
Header
Station
No.
Command
Command type
Error code
(Hex 2 Byte)
Tail
Frame check
Frame(Ex.)
NAK
H20
R(r)
SS
H1132
ETX
BCC
ASCII value
H15
H3230
H52(72)
H5353
H31313332
H03
•
Station number, commands, and type of command are the same as computer request format.
•
BCC : When command is one of lower case(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, added to BCC, and sent.
•
Error code is hex and 2 Bytes(ASCII code, 4 Bytes), which indicates type of error. For the details, see Appendix
'B. Error Code Table'.
If data type is BOOL, data read is indicated by one Byte of hex. Namely, if Bit value is 0, it indicated by H00, and if 1, by
H01.
Remark
Ex.1
The fact that number of data is H04(ASCII code value:H3034) means that there is hex data of 4 Bytes in data(DOUBLE
WORD). Hex data of 4 Bytes is converted into ASCII code in data.
Ex.2
If number of data is H04 and the data is H12345678, ASCII code converted value of this is "31 32 33 34 35 36 37 38",
and this contents is entered in data area. Namely, highest value is first, lowest value is last.