Sign in to follow this  
Followers 0
indepthmarine

clock format

4 posts in this topic

I am using function block Ascii_time and the output is the string ssmmhh I am trying to output a time stamp to the ascii string that gets written to a CF card; it is working but the client wants it in HHMMSS instead of SSMMHH (the seconds are not important) What instruction would you recommend? I have looked through the CJ1 reference and have not found one that I think will work. I am using CJ1 CPU13

Share this post


Link to post
Share on other sites
Copy the FB, & change the Sec_BCD & Hour_BCD source words of the ASC around. This is on the last rung before the ENO condition.

Share this post


Link to post
Share on other sites
I am not sure how to edit the FB, but you opened my eyes to the fact that the seconds, minutes, and hours are already in their own D words... I can simply select in the order I want. Thanks Edited by indepthmarine

Share this post


Link to post
Share on other sites
Use MOVD. See link below. How to use the MOVD instruction @ MrPLC.com

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0