
Chapter 7 Communication function
7-47
Remark
[Note 1] Refer to technical spec. of GLOFA PLC for details to specify the area of device in GLOFA GM.
[Note 2] Data type of LONG WORD isn’t supported in GM3,GM4,GM6 and GM7.
[Note 3] Continuous reading function of direct variables has not [Number of blocks] item in protocol.
2)
Response format(for PLC of ACK response)
Format
Name
Header
Station
No.
Command
Command
type
Number
of blocks
Number
of data
Data
Tail
Frame
check
Frame(Ex) ACK H10
R(r)
SB
01
H14
H112233445566778899AA
BBCCDDEEFF1122334455
ETX
BCC
ASCII
value
H06 H3130
H52
(72)
H5342 H3031 H3134
H31313232333334343535363637
373838393941414242434344444
545464631313232333334343535
H03
9
Station number, main commands and type of command are the same as in computer request format.
9
For continuous reading response, insert H01to [Number of blocks] to transmit.
9
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 ACK to ETX is converted into ASCII, added to BCC, and sent.
9
Number of data means Byte number of HEX type and is converted into ASCII. This number is determined
by multiplying the data number of computer request format by the data size (in below table) according to
memory type(X,B,W,D,L) included in direct variable name of computer request format. Namely, the result
from multiplying the data type and the request length together is to be the data length of response frame as
in a unit of byte differently from the data length of reading request frame.
Data length of request frame : H05 (Double Word)
Data length of response frame : 05 X 4 = 20 (H14 in HEX.)
[Table7.18] Direct variable available
Data type
Direct variable available
Data size(Byte)
Byte(B) %MB,%QB,%IB
1
WORD(W) %MW,%QW,%IW,%(P,M,L,K,F,T,C,D,S)W
2
DOUBLE WORD(D)
%MD,%QD,%ID
4
LONG WORD(L)
%ML,%QL,%IL
8