View Single Post
Old 10-14-2023, 04:55 PM   #85
SwL_Wildcat
 
SwL_Wildcat's Avatar
 
Drives: 2024 ZL1
Join Date: Apr 2023
Location: Campbell River, BC, Canada Eh!
Posts: 411
Quote:
Originally Posted by raidator View Post
Multiplier 8 7 6 5 4 3 2 10 0 9 8 7 6 5 4 3 2

pretty simple actually...

the check digit is always *0 because you are trying to solve for that


(letters have to be converted to digits using the last char of their position, so R is 19, so 9)

I used a static # of 174 (covers 1G1F... +R for year), but you could do the same as above

then I broke the SN down by character and then multiply in reverse by the digit... so 17=X*2, 16=X*3 15=X*4... engine code converts to 60 (6*10) on ZL1

you then sum up all the products to get a number then do mod 11 on that to get a remainder, if the remainder is 10, it translates to X as mentioned before.

so in bash syntax on linux:
prodsum=375 #just picked a random #
chk=$((${prodsum}%11))
echo ${chk} should return 1

then you loop that thru the 4 configs (a10/m6 + coup/conv) and you should get 4 different VIN #s based on the last 6 of the VIN

Can you output that to an Excel sheet and have the 4 different VIN combinations in lines 1-4 with each sequential VIN in every row and prefix each one with https://cws.gm.com/vs-cws/vehshop/v2...owsticker?vin= ? When I took my computer courses we were using Apple 2e's and 386's were just coming out, everything was saved on 5 1/4" disks. In my engineering courses we used chart plotters that tool felt pens. I'm a wee bit past figuring out how to get it working correctly.
SwL_Wildcat is offline   Reply With Quote