How will the time converted to ASCII code?

How to Siemens S7-300 at 8:08:08 on August 8, 2013 by STL how to convert ASCII, preferably with FC in the form of call, multi-thank you!
Here is my answer:
The STEP7 time with BCD code, BCD code can be regarded as a special decimal number, you can use TI_S7 library FC95 HTA to convert.
The following program will MB0 beginning 7 byte hexadecimal number is converted to MB10 beginning 14 byte ASCII code.
      CALL “HTA”
       IN: = P # M 0.0
       N: = W # 16 # 7
       OUT: = P # M 10.0

Related Post

One thought on “How will the time converted to ASCII code?”

Leave a Reply

Your email address will not be published. Required fields are marked *