Those four digits of the Security Code are not digits as such, but rather four hexadecimal characters (
ie, 0-9 and A-F) representing a 16-bit CRC value. The code example describes this as the high and low bytes of the Security Code.
Hopefully the serial number is correctly displayed at the pump's Self-Test Procedure (123) and (or) the Information Logs (376)?

According to the manual, Asena serial numbers are in the form:-
9999-99999
I haven't had a play with the code mentioned yet (but maybe I'll type it in when I have a bit of time), but assuming an equipment serial number of 1234-56789 it looks like it needs arguments as follows:-
func(1234-56789,10)
... where 10 is the length of the serial number.
