EasyManua.ls Logo

LSIS Master-K K1000S - Page 170

LSIS Master-K K1000S
238 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
Loading...
Chapter 13 RS-232C function of K200S MASTER-K
13-24
4) Response format (PLC à External device : NAK response)
Format
name
Header
Station
number
Main
instruction
Registration
number
Error code Tail
Fra me
check
Frame
example
ENQ h01 Y (y) h01 h1132 EOT BCC
ASCII
value
h05 h3031 h59 (79) h3031 h31313332 h04
Station number, main instruction, and registration number are same as the request
format.
When the main instruction is small character (y), the lower byte of summation from
NAK to ETX is converted into ASCII format and added to frame as BCC check.
The error code is expressed as 2 byte of hexadecimal format ( 4bytes of ASCII
codes) and indicates the type of error. Please refer the error code table for details.
5) Example
Execute the registration number 1 of station number 1. Assume that reading single device
(D000, word) is already registered as number 1 and the contents of D000 is h3202. (No
BCC check)
Request format (External device à PLC)
Format
name
Header
Station
number
Main
instruction
Registration
number
Tail
Frame
example
ENQ h01 Y h01 EOT
ASCII
value
h05 h3031 h59 h3031 h04
Response format (PLC à External device : ACK response)
Format
name
Header
Station
number
Main
instruction
Registration
number
Number
of blocks
Length of
data
Data Tail
Frame
example
ACK h01 Y h01 h01 h02 h3202 ETX
ASCII
value
h06 h3031 h59 h3031 h3031 h3032 h33323032 h03
Response format (PLC à External device : NAK response)
Format
name
Header
Station
number
Main
instruction
Registration
number
Error code Tail
Frame
example
ENQ h01 Y h01 h1132 EOT
ASCII
value
h05 h3031 h59 h3031 h31313332 h04

Table of Contents

Related product manuals