
109
Function codes included in the query
Each function code is 1 byte. When the PLC receives a query (Q), the
function code of the final response (R) is formed by adding $80 (hex) to
the function code sent by the query. The value added to the function
code sent by the query differs for 2-step and 4-step by $20 (hex).
The function code of the R message can be used by the peripheral
device to verify that the correct Q message has been received by the
PLC.
Communication function codes
$ notes hexadecimal notations
The bit/word address assignment uses the absolute address method
for reading memory locations. (Refer to
Please contact our technical support for more information about
reading/writing program or other function codes.
Query, which dictionary meaning is `question’, `ask’, or `question mark’,
means that a user or an application program requests any specific
information to a corresponding part when it is used as a
communication term.
Communication
function
Query (Q)
function code
Response (R)
function code
Remarks
2-step
4-step
2-step
4-step
Read bits
$21
$01
$A1
$81
Detailed description
Write bits
$22
$02
$A2
$82
“
Read words
$23
$03
$A3
$83
“
Write words
$24
$04
$A4
$84
“
Read bits and words
$25
$05
$A5
$85
“
Write bits and words
$26
$06
$A6
$86
“
Read program
$27
$07
$A7
$87
No detailed description
Write program
$28
$08
$A8
$88
“
Read instruction
$29
$09
$A9
$89
“
Change instruction
$2A
$0A
$AA
$8A
“
Change operand
$2B
$0B
$AB
$8B
“
Insert instruction
$2C
$0C
$AC
$8C
“
Delete instruction
$2D
$0D
$AD
$8D
“
Search instruction
$2E
$0E
$AE
$8E
“
Search operand
$2F
$0F
$AF
$8F
“
Delete all/parts of program
$20
$10
$A0
$90
“
No service
$00
$00
$00 (hex)
$00 (hex)
“
Summary of Contents for Samsung NX-CPU700p
Page 1: ...NX700 Series Controller NX CPU700p User Manual ...
Page 78: ...78 Power check flow chart ...
Page 79: ...79 Run check flow chart ...
Page 80: ...80 Error check flow chart ...
Page 82: ...82 External environment check flow chart ...
Page 86: ...86 ...
Page 98: ...98 ...
Page 102: ...102 Decimal Bin Hex BCD Gray Code Cross reference Table ...
Page 104: ...104 ...
Page 121: ......