On BMW R1200GS and other recent models with a CAS4 module, the CAS PIN is obtained by reading the module's EEPROM, which comes potted in protective gel from the factory. Bench job, with the module removed.
Required licences
—
Hardware / cables
programmatore EEPROM
⚠ WarningThe CAS module is covered in gel: remove it with extreme care, only as much as needed to expose the EEPROM, and reseal afterwards with a suitable insulating compound so the job is left clean and safe.
Procedure
Remove the CAS module from the bike and take it to the bench.
Look at the module: it comes covered in protective gel.
Very carefully remove only the amount of gel needed to expose the EEPROM.
Read the EEPROM with the programmer of your choice and save the dump.
Extract the CAS PIN from the data read and use it for the key operations on the vehicle.
Reseal the exposed area with a suitable insulating agent, to restore the module's original protection.
Refit the module to the bike and check it works.
Reference screenshots
Source: Manuale Abrites Diagnostics per moto, snowmobili e moto d'acqua (bikes), Appendice - BMW R1200GS and other CAS4 late model BMW CAS PINs (p.35) · ⏱ estimated time varies