Thales Hsm Command Reference Manual
Also, you say you're using the 'HSM command request to encrypt / re-encrypt a PIN Block under ZPK to under LMK'. You mean the 'JE' command then, right? My manuals say that a 24 Error Code in this setting means "PIN is fewer than 4 or more than 12 digits."
Thales hsm command reference manual