Sign in to follow this  
Followers 0
strantor_

Custom Data type question

2 posts in this topic

I am getting ready to migrate a bunch of TIMX to TIMLX. For this I want to create a custom data type for the new timers' parameters. I want to give a name to a BOOL within a WORD that is also named. Because for some reason TIML/TIMLX makes you specify an entire word for the completion flag, when all you need is one bit of the word. Maybe it will be more clear if I demonstrate:

timl.png.616df96b7af00ba330410299a4d36a8 

 

timl3.png.9e8206b8c6431e49659a950af52b0a

 

 

timl2.png.4dbb699f9e0f6508e80914ccee9b9d

Is there a way that  I can name the bits within my CompletionWord? 

 

Thank you

 

Share this post


Link to post
Share on other sites

I found A solution. Not sure if it's the best solution. Open to new ideas.

I just changed the WORD in my datatype to a BOOL and new the BOOL is named. When I type the WORD address into the TIMLX instruction it inherits the symbol name from the datatype but shows no ".xxx" - good enough for me.

timl4.png.b874e522b6a7a84a2006f57dbedba7

timl5.png.512ba77c81a10437d9edb2e6986332

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