If that's what you want to understand, no problem. Although K5Y000 shows 336, you find that the hexadecimal number of 336 is H 150, so you see the value of 336 in BCD code, but it shows 150 through BCD code! So the running rule of the program is to directly convert your integer into binary data of 16, and then store it as an integer.
For example, K250-transformation H250- transformation K592!
The BCD code of K592 is actually an integer of 250!