Chapter8 Communication Function
8-11
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. Name directly, highest value is entered first, lowest value last.
Remark
1)
If data type is Bit, data read is indicated by bytes of hex. Namely, if Bit value is 0, it indicated by H00, and if
1, by H01.
(4)
Response format (NAK response)
Format name
Header
Station No.
Command
Command type
Error code
(Hex 2 Byte)
Tail
Frame check
Ex. of frame
NAK
H20
R(r)
SS
H1132
ETX
BCC
ASCII value
H15
H3230
H52(72) H5353 H31313332
H03
Item
Explanation
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.
Error code
Hex and 2 bytes(ASCII code, 4 bytes) indicate error type. For the details, see 8.1.8 Error
codes.
(5)
Example
This example supposes when 1 WORD from M20 and 1 WORD from P001 address of station No.1 are read and BCC
value is checked. Also it is supposed that H1234 is entered in M20, and data of H5678 is entered in P001.
K80S base unit
Содержание MASTER-K80S
Страница 27: ...Chapter 4 Names of Parts 4 4 1 3 30 points base unit 4 1 4 40 points base unit 4 1 5 60 points base unit...
Страница 66: ...Chapter 6 Input and Output Modules 6 3 30 point base unit 4 40 point base unit DC24V DC24V DC24V...
Страница 67: ...Chapter 6 Input and Output Modules 6 5 60 point base unit DC24V DC24V...
Страница 206: ...Chapter 8 Communication Function 8 63 You can see the frame list which is designated Click OK button...