
Chapter 7 Communication function
7-52
B) For command type of array
Format
Name
Header
Station
No.
Com
mand
Command
type(##)
Number
of blocks
Number of
data(**)
Data
Tail
Frame
check
Frame
Ex.)
ACK H10 R(r) H17 H01 H14
H23A0112233445566778899
AABBCCDDEEFF001122
ETX BCC
ASCII
value
H06
H313
0
H52
(72)
H3137 H3031
H3134
H32334130313132323333343
435353636373738383939414
142424343444445454646303
031313232
03
Remark
[Note 1] If response format
from PLC when data type of array variable is WORD and variable’s name and element
number is ‘OUTPUT_ARR[0]~[9]’ is as above, the number of data is the element number data*2 =
20
( H14 ) Bytes.
9
Station number, commands, type of command, and number of blocks are the same as in computer request
format.
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
according to command type, ## of computer request format.
[Table7.19] Number of data according to variable data type
Data type
Command
type(##)
Data number(**)
Data type
Command type
(##)
Number of
data(**)
BIT H00 1 UDINT
H0B 4
BYTE H01 1 ULINT H0C 8
WORD H02 2 REAL H0D 4
DWORD H03
4 LREAL H0E
8
LWORD H04
8 TIME H0F
8
SINT
H05 1 DATE
H10 8
INT
H06 2 TOD
H11 8
DINT
H07 4 DT H12 8
LINT
H08
8
STRING
H13
10
USINT
H09
1
BLOCK
H14
Max. 60 Bytes
UINT
H0A
2
ARRAY
H15-H27
Max. 60 Bytes