News:

  • October 13, 2025, 02:49:32 PM

Login with username, password and session length

Author Topic: FILELOG Header  (Read 1396 times)

RBPLC

  • Hero Member
  • *****
  • Posts: 585
FILELOG Header
« on: January 13, 2021, 07:25:06 AM »
I'm using FILELOG to log  indirectly referenced UDT's. For example: XX[IRName].YY. When logged the header displays: XX.[IRName].YY(XX[Memory Location].YY). Two questions:
1) Can the portion in the () be removed from the header?
2) Instead of having the IR variable name displayed, can this be the current IR numerical value? 

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3761
    • Host Engineering
Re: FILELOG Header
« Reply #1 on: January 13, 2021, 07:41:22 AM »
For number 2, since the value can change over time as each entry is logged, seeing its value only when the file is created is not useful.  Just add the V location as part of the log, that way you get the actual V value when that entry is logged.

For #1, we purposefully did not add a bunch of options to the instruction on purpose. It already has enough options.  For full customization you can use STRPRINTs and FILEWRITE.