Fortune Telling Collection - Fortune-telling birth date - How to convert decimal into hexadecimal in Omron PLC?

How to convert decimal into hexadecimal in Omron PLC?

If you want to convert 50 BCD into 16, first use MOV command MOV #50 D 1 so that the value of D 1 is 50 in hexadecimal, and then use D2 BIN command BIN D 1 BIN command to convert d 1 into & 50, and the hexadecimal number is 30.

BCD is to convert 16 into 10.

Note the difference between @MOV and MOV. When the MOV is connected, it is switched once every cycle. @MOV is only converted once when @MOV is connected.