
MSD-501/502 Command Guide
77
@GRC / @SRC
Reply command
Function
Getting
Setting
Format
@GRC, no
@SRC, no, process, length, command,
mask, memo
Return value
@GRC, no, process, length, command,
mask, memo
@SRC, no, process, length, command,
mask, memo
Parameter
no: Control command number
1 to 32
process:
0 = Stop, 1 = Continue, 2 = Resending commands
length: Reply command data size (bytes)
0 to 30
command: Reply command data
length × 2 digits with 0 to 9, A to F, a to f = 4 bit per digit (in hexadecimal)
mask: Mask data
length × 2 digits with 0 to 9, A to F, a to f = 4 bit per digit (in hexadecimal)
memo:
Up to 14 characters of 20 to 7D except 2C (,) from ASCII codes.
Example
@GRC,2
@GRC,2,0,1,40,40,NG
Getting settings of reply command 2:
・
Processing: Stop
・
Data size: 1 byte
・
Command data: 40 (in hex)
・
Mask data: 40 (checking the second bit from
the top)
・
Memo: NG (no good)
@SRC,1,1,9,
52454356204F4B0D0A,
FFFFFFFFFFFFFFFFFF,OK
@SRC,1,1,9,
52454356204F4B0D0A,
FFFFFFFFFFFFFFFFFF,OK
Setting reply command 1 as follows:
・
Processing: Continue
・
Data size: 9 bytes
・
Command data: RECV OK CR LF (ASCII)
・
Mask data: ALL: FF (checking all bits)
・
Memo: OK
Remarks
-