Intermec IV7 Basic Reader Interface Programmer's Reference Manual (BRI version - Page 52

BLOCKPERMALOCK READ, BRIVER, Purpose, Syntax, Examples

Page 52 highlights

Chapter 4 - BRI Commands BLOCKPERMALOCK READ Purpose: Syntax: Examples: This command allows you to read the lock status. BLOCKPERMALOCK [flex_query_selector] READ [data_field]*[TAGTYPE=] [WHERE ] [PASSWORD=] data_field = Specifies a bank, offset, and length in this form: HEX(:,). = The bank should always be three. = The offset is the "BlockRange" parameter of the specification. It specifies the range of blocks for the which the status should be returned. The range starts at and ends (16*)-1 blocks later. The result of a "BLOCKPERMALOCK READ" command is a hexadecimal value that represents a bit map of locked and unlocked blocks. A one bit indicates that the corresponding block is locked. A zero bit indicates that the block is unlocked. The most significant bit of the resulting hexadecimal value corresponds to the lowest address block. Example 1: BLOCKPERMALOCK READ HEX(3:0,1) HH0123456789ABCDEF01234567 H0800 Read the permalock status of the first 16 blocks of user memory. Example 2: BLOCKPERMALOCK READ HEX(3:3,1) HH0123456789ABCDEF01234567 H0001 Read the permalock status of the third 16 blocks of user memory. Example 3: BLOCKPERMALOCK READ HEX(3:2,2) HH0123456789ABCDEF01234567 H00000001 Read the permalock status of the second and third 16 blocks of user memory. Example 4: BLOCKPERMALOCK READ HEX(3:2,1) HEX(3:3,1) HH0123456789ABCDEF01234567 H0000 H0001 Read the permalock status of the second and third 16 blocks of user memory. BRIVER Purpose: Syntax: Examples: This command returns the BRI specification version or feature level supported by the reader or module. BRIVER BRIVER 3.16 OK> 40 Basic Reader Interface Programmer Reference Manual

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146

Chapter 4 — BRI Commands
40
Basic Reader Interface Programmer Reference Manual
BLOCKPERMALOCK READ
Purpose:
This command allows you to read the lock status.
Syntax:
BLOCKPERMALOCK [flex_query_selector] READ
[data_field]*[TAGTYPE=<tagtype list>] [WHERE <data condition>]
[PASSWORD=<“access_password”>]
data_field = Specifies a bank, offset, and length in this form:
HEX(<bank>:<offset>,<length>).
<bank> = The bank should always be three.
<offset> = The offset is the “BlockRange” parameter of the specification. It specifies
the range of blocks for the which the status should be returned. The range starts at
<offset> and ends (16*<length>)-1 blocks later.
The result of a "BLOCKPERMALOCK READ" command is a hexadecimal value
that represents a bit map of locked and unlocked blocks. A one bit indicates that the
corresponding block is locked. A zero bit indicates that the block is unlocked. The
most significant bit of the resulting hexadecimal value corresponds to the lowest
address block.
Examples:
Example 1:
BLOCKPERMALOCK READ HEX(3:0,1)
HH0123456789ABCDEF01234567 H0800
Read the permalock status of the first 16 blocks of user memory.
Example 2:
BLOCKPERMALOCK READ HEX(3:3,1)
HH0123456789ABCDEF01234567 H0001
Read the permalock status of the third 16 blocks of user memory.
Example 3:
BLOCKPERMALOCK READ HEX(3:2,2)
HH0123456789ABCDEF01234567 H00000001
Read the permalock status of the second and third 16 blocks of user memory.
Example 4:
BLOCKPERMALOCK READ HEX(3:2,1) HEX(3:3,1)
HH0123456789ABCDEF01234567 H0000 H0001
Read the permalock status of the second and third 16 blocks of user memory.
BRIVER
Purpose:
This command returns the BRI specification version or feature level supported by
the reader or module.
Syntax:
BRIVER
Examples:
BRIVER<CRLF>
3.16<CRLF>
OK>