"Code grabber" for Encoders HT6P20

Hello,

anyone has some code/sketch to capture the codes from encoder HT6P20?
I need one to test my "anti-theft" alarm system.

Thanks in advance!