Howtorfid – Avery Dennison RFID User Manual
Page 44

HowToRFID
Revision: 13
Date: 31 August 2009
Page 44 of 53
#G-----------------------------------------------------------------------------------
#G Define variables
#G-----------------------------------------------------------------------------------
#VDT/EPCDataVerify////#G
#VDT/EPC_Header////00110001#G
#G SSCC-96 (dual/bitwise encoded)
#VDT/EPC_Filter////000#G
#G Filter value (dual/bitwise encoded), modify this to your needs!
#VDT/EPC_Partition////5#G
#G (dual/bitwise encoded)
#VDT/EPC_Company////4011661#G
#G Company code (decimal number) modify this to your needs!
#VDT/EPC_Unallocated////0#G
#G-----------------------------------------------------------------------------------
#G starting value for serial number, modify this to your needs!
#G value is given as a decimal number
#G-----------------------------------------------------------------------------------
#VDT/EPC_Serial//+1/1/3000000001#G
#G --- compose EPC SSCC96
#G ATTENTION: due to a change of the syntax of the PadLeft / PadRigth functions the right
#G expression/formula for the EPCDataWrite variable depending from the FW-version must
#G be selected
#G <<< syntax for FW-versions < Vx.33 >>>
#VDE/EPCDataWrite/DualToBin(
PadLeft(EPC_Header,8,0)
+PadLeft(EPC_Filter,3,0)
+PadLeft(BinToDual(DecToBin(EPC_Partition)),3,0)
+PadLeft(BinToDual(DecToBin(EPC_Company)),24,0)
+PadLeft(BinToDual(DecToBin(EPC_Serial)),34,0)
+PadLeft(BinToDual(DecToBin(EPC_Unallocated)),24,0)
)
#G <<< syntax for FW-versions >= Vx.33 >>>
#VDE/EPCDataWrite/DualToBin(
PadLeft(EPC_Header, "0", 8)
+PadLeft(EPC_Filter, "0", 3)
+PadLeft(BinToDual(DecToBin(EPC_Partition)), "0", 3)
+PadLeft(BinToDual(DecToBin(EPC_Company)), "0", 24)
+PadLeft(BinToDual(DecToBin(EPC_Serial)), "0", 34)
+PadLeft(BinToDual(DecToBin(EPC_Unallocated)), "0", 24)
)
#G <<< end of version depending expressions >>>