Howtorfid – Avery Dennison RFID User Manual
Page 47

HowToRFID
Revision: 13
Date: 31 August 2009
Page 47 of 53
#G --- Write EPC
#RFW2/B/1///24/0102030405060708090A0B0C#G
#G --- Lock EPC (see notes to lock access password above)
#RFL1/2/B/F1D2C300#G
#Q1#G
6.2.6
Writing a SSCC-96 to tag
The following example it’s assumed there is SSCC given with a partition value of 5 (7 digits company prefix and 9
digits serial reference). The extension digit and check digit are required and shall not be cut off before encoding.
#!A1
#IMSR105/130//15/52
#ER//
#G --- variable definition (static data)
#VDT/EPC_BS_Header////00110001#G EPC-96 binary header value for SSCC-96
#VDT/EPC_BS_Filter////010#G depends on your application, may be changed
#VDT/EPC_DV_Partition////5#G depends on your company prefix length
#VDT/EPC_BS_Free////000000000000000000000000#G 3-Byte, not used, constant 0
#G --- variable definition (Application data)
#VDT/SSCC////387137910010062064#G <<< INSERT YOUR COMPLET SSCC HERE (including extension digit and
check digit)
#VDE/EPC_DV_CompanyPrefix/SubStr(SSCC,1,7)
#VDE/EPC_DV_SerialRef/SubStr(SSCC,0,1)+SubStr(SSCC,8,9)
#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 EPC96_BD variable depending from the FW-version must
#G be selected
#G <<< syntax for FW-versions < Vx.33 >>>
#VDE/EPC96_BD/DualToBin(
PadLeft(EPC_BS_Header,8,0)
+PadLeft(EPC_BS_Filter,3,0)
+PadLeft(BinToDual(DecToBin(EPC_DV_Partition)),3,0)
+PadLeft(BinToDual(DecToBin(EPC_DV_CompanyPrefix)),24,0)
+PadLeft(BinToDual(DecToBin(EPC_DV_SerialRef)),34,0)
+PadLeft(EPC_BS_Free,24,0)
)#G