MSD-501/502/701/702 User
’s Guide
81
■
Mask data
The received data without mask data and “AND” of each bit is compared with the reply command data.
Set “MASK” to “FF”. Since “FF” is set by factory default, you do not need to change the mask data
normally. Only to determine the status using bits of the received data, change the setting.
[If ASCII codes (text) are replied from an external device]
Since the received data and “Reply command data” are compared without any changes, set “MASK” to
“FF”. (If you set “COMMAND INPUT MODE” of reply command to “ASCII”, it is automatically set to “FF”.)
For example, if ”0” of ASCII codes (“30” in hex) is replied:
Binary
Binary
Hexadecimal
(Received data)
00110000
& (MASK)
11111111
=30
(Reply command data)
00110000
=30 matched
DATA1:
3
0 00 00 00 00
MASK1:FF FF FF FF FF
[If status is determined using bits of the received data]
Set only bits that determine the Mask data to “1” and set other bits to “0”.
For example, if determining status using the second bit from the left:
Binary
Binary
Hexadecimal
(Received data)
11111111
& (MASK)
01000000
=40
(Reply command data)
01000000
=40 matched
Binary
Binary
Hexadecimal
(Received data)
10111111
& (MASK)
01000000
=00
(Reply command data)
01000000
=40 not matched
DATA1:
4
0 00 00 00 00
MASK1:40 FF FF FF FF