Author Topic: Issue with the "Simple Menu V1_12.PC7" in the installed samples folder  (Read 18772 times)

garysdickinson

  • Hero Member
  • Posts: 502
  • Old PLC Coder
    • View Profile
A long time back I worked with the pre-production Wx100 product using any of a number of versions i-TRiLOGI that were test builds.

I got an email from a Wx100 user and he was having problems with compiling a Wx100 program that I wrote.

The affected file is named "Wx100 Simple Menu V1_12.PC7.

The problem is that this demo code was written with an early version of i-TRiLOGI when the "Comment" field was added to the #define mechanism.  The current tool set V7.5 Build 14 uses a different field separator in the .PC7 file than was used by the early version that I wrote the code with...

The early version used commas as field separators in the PC7 file. Sort of like this:  #,Defined Name,Value,Comment
The current tool set uses commas and an ASCII <RS> (record separator). Looks like this: #,Defined Name,Value<RS>Comment

The problem is that my "old" code when compiled with current tools doesn't recognize the "," before the Comment field so the Value field ends up with the correct "Value" a comma and then the Comment text.  The Comment field is always empty.

I was able to fix the problem for the user, by exporting the #Define Table to a text file and replacing the first "," character by an ASCII TAB character and then importing the edited #Define table back into the PC7 program.  The edited #define table now works perfectly and if I peek into the PC7 file I see the <RS> character in the correct spot.

I have attached the corrected .PC7 file.  It is now named "Wx100 Simple Menu V1_13.PC7.  The only changes from the V1_12 file is the corrected #define and I added a comment for the V1.13 version to give a hint as to why it was changed.

I think that the V1.12 version may appear in in the Wx_Specifics directory and in a Zipped file named "Wx100 Simple Menu.  Is this something that you can fix in a future release?

Best regards,

Gary Dickinson

« Last Edit: December 13, 2022, 07:04:23 PM by garysdickinson »

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3176
    • View Profile
    • Internet Programmable PLCs
Re: Issue with the "Simple Menu V1_12.PC7" in the installed samples folder
« Reply #1 on: December 14, 2022, 09:27:11 AM »
Hi Gary,

Thank you so much for the report and for posting the new V1.13 update of your Simple Menu software that you so kindly shared with other users.

Yes there were some changes to the file format when TL75 was evolving in order to keep compatibility with older .PC6 and .PC7 files. We received a report from a user who had included comma into the "value" field and when it was opened by the older TL74 or TL75, the text after the comma was erroneously parsed out into the "Comment" column and therefore the program couldn't compile properly. We have already fixed that issue and the current TL75 will be able to correctly import the older .PC6 and .PC7 files that may have used comma in the "Value" column. but in the process we had to change the file format to also properly support the new "Comment" column.

We will definitely include your updated V1.13 into the next release of i-TRiLOGI 7.52 that are closed to being released.  The new i-TRiLOGI 7.52 version is going to support HTTP and HTTPS client commands in addition to MQTT client functions that can be fully executed directly on the simulator.  The existing Wx100 user can obtain the full functionality with a simple firmware upgrade. We will keep you informed via email and also display on the info pane at the bottom half of the Custom Function Editor when it is fully released.

 
Email: support@triplc.com
Tel: 1-877-TRI-PLCS