Formatin Option in HSM

Jun 4, 2014 at 4:07 PM
Edited Jun 4, 2014 at 5:51 PM
Hi All, I am trying to format the PIN on payShield 9000 HSM, currently I want to control the stroke weight in order to print the PIN in pin tab .The only possibility to do that is to print the PIN characters in a lighter stroke weight . In the Thales manuals does exist <L> command with the following format |<L><hh hh hh ..> : Send binary data to printer for example printer control string. | character followed by the length of the string in bytes <L> 0 - F then the expanded hex string <hh hh hh ..> Does anyone have experience how this this command is formatted ? Does anyone have experience how to send to printer any PCL command for formatting the text ? Thanks and Best Regards Artan
Jun 5, 2014 at 11:32 AM

Such command are formed as follows, lets assume we need to add <ESC C> Epson code to the command:


parsed example:

1) | - start of binary data;
2) 1 - length
3) 1B - ESC
4) C - command code

About the stroke weight you can check any "ESC/P" (Epson standart code for printers) manual.

Jun 6, 2014 at 5:33 PM
Edited Jun 6, 2014 at 5:36 PM
Hi Juris,

thank you for your answer,

the exact command we send to printer is:

'PA>L>L>L>L>L>L>L>L>L>070^0>L>070^1>L>040^P>070^2>L>070^3>L>L>070^4>080^5>L>L>070^6>080^7>F' ,

we are trying to print the PIN more lighter , from the epson ESC /P manual the command to do that is: ESC (s#B

Where # is stroke weight number , the more lighter option is '-7'.

We tried many combination, like your suggestion we tried:


but with no success, the above combinations were wrong and the printer does not understand it.

Can you kindly give us any hint on above command.

Thanks and best regards
Artan Telkiu
Jun 7, 2014 at 2:39 PM
Edited Jun 7, 2014 at 2:42 PM

What model of printer are you using with HSM?

Does HSM returns the error or the print format did not change?

Also, i can not find such ESC code (ESC ( s) in my manuals. Could you please send me that manual?

Jun 11, 2014 at 4:59 PM
Edited Jun 11, 2014 at 10:01 PM
Hi Juris,

we are using "RICOH AFICIO aficio mp 3010', after some long testing we could not finalize our solution.

we are sending the following PCL comand in hex format to HSM for Stroke Weight:

50417C0C1B28732D3742 , it's equivalent value in PCL format is ESC(s-7B

the HSM is not returing error but is not changing the "Stroke Weight" during printing.

We appreciate your help
Best Regards
Artan Telkiu
Jun 14, 2014 at 3:41 PM

Sorry, one additional question to understand your task completely. Do you want to print PIN "not black" but "grey", i mean "light black"? :)

Jun 14, 2014 at 7:47 PM
Hi Juris,

yes our task is to print the PIN "light black"

Best Regards
Artan Telkiu