Author Topic: #Define Parsing Issue with "SeqN"  (Read 5826 times)

garysdickinson

  • Hero Member
  • Posts: 502
  • Old PLC Coder
    • View Profile
#Define Parsing Issue with "SeqN"
« on: February 28, 2016, 04:29:08 PM »
Gentlemen,

I have run into a small issue with parsing.  I attempted to enter the following text into the "Label Name" field of the "Define Variable Names" window, "Seq8ImgEEP16".

I got a Duplicate Label Error window with the following message:

    Label Name "Seq8ImgEEP16" is already defined as #8"

I actually know that #8 is the value for COUNTER #8.  I know that "Seq8" is a special name that can only be used with COUNTER #8. I, also, know that when you guys thought up the idea of using a COUNTER as a sequencer that dinosaurs roamed the earth.

I am a little concerned that your token parser when working with the string, "Seq8ImgEEP16" would "think" that "ImgEEP16" was a terminator for a TBASIC reserved word, "Seq8".  It is not white space, it is not a TBASIC operator, not a special character such as , : ( ) " and  it is not the end of the entry string.  It seemed like an odd place for the parser to decide that it had read enough characters.

It's not end of life, I just picked another text string, "ImgSeq8EEP16".  I am surprised that the token parser didn't find the "Seq8" buried in the middle of the string...

Best regards,

Gary D*ickinson

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3170
    • View Profile
    • Internet Programmable PLCs
Re:#Define Parsing Issue with "SeqN"
« Reply #1 on: March 01, 2016, 09:19:23 AM »
Thank you for your feedback.

We tested as you have suggested and found that this only affects "Seq1" to "Seq8" being at the start of the #Define label. It does not occur to other labels defined as I/O labels. The problem with SEQ was because it is a special keyword (and not a regular I/O label) due to legacy reason as you have noticed, so the token parser must to treat it differently from other regular I/O labels.

We have identified the cause of this error and will fix it for the next software release. Thanks.
Email: support@triplc.com
Tel: 1-877-TRI-PLCS