Sietec Security

Wiegand Conversion - BIN, DEC

Wiegand comes in a number of formats the most common one is 26bit, others are 32  and 50bit along with some in between.

Conversion is quite simple if you have either the token number or the binary code of the number and you want to know the opposite.

For example:
With 26bit Wiegand the pattern is as follows.........

X = First Parity Bit
S = Site Code
A = Token Number
X = Parity Bit

The only thing that changes between the various bit lengths is the Token Number Length.
So the site code which is 8bits in length ranges between 0 and 255 Decimal


Value 128 64 32 16 8 4 2 1
Bit = 1 1 1 1 1 1 1 1
Total 128 64 32 16 8 4 2 1


If you add the bottom row the grand total is 255. Therefor the site code in this instance would equal 255.

The Token User Code for W26 is 16bits long ranging between 0 and 65535 Decimal. Hence the likelyhood of repeatability without the site code is very high.  However add the site code and although repeatability is still there it is decreased dramatically.

You can use your computer calculator to determine the Decimal (DEC) code from the Binary and the Binary (BIN) code from the Decimal.  Either scientific or programmer mode depending upon calculator version will give you the ability to do these conversions very simply.

The difference between various bit length Wiegand is simply the user code ie. 36 bit Wiegand consists of 8 bits for site code and 24bits for user code.  Always separate calculating the site code and the user code otherwise decimal value will be incorrect.

Use the following file when detemining the true site code and user code with Paxton before entering the custom format in the Config set up when commissioning Paxton with Wiegand tokens and Readers.

Application Note: AN1010 Wiegand set up proceedure when commissioning.


 AN1010 (585K)


Once the code has been correctly calculated and entered all Paxton ACU's will read the code in Custom Wiegand mode including the Net2 Nano.  If the ACU's in custon Wiegand mode do not accept the user token then the code has not been correctly entered.

<< Back