Author Topic: BasicDataLogger21 write bits as one or zero instead of false or true?  (Read 550 times)

needhmi

  • Newbie
  • *
  • Posts: 27
    • View Profile
Did a short search for this, is it possible to change the way the datalogger21 writes the bit status in the data log?  I'm using the ModbusRTUCom1 driver, version 3.99w, Visual Studio 15.9.11

I would like it to write the bit status (address of 0000x) as a 1 or a 0 instead of false or true in the data log .csv file.  In the past I have copied bits to a UI8 data type in the PLC solution (address of 4000x) and this works but I'd rather not need to do that if possible.  Thanks!

Godra

  • Hero Member
  • *****
  • Posts: 1438
    • View Profile
If you continue using 3.99w then try the version of BasicDataLogger2 found here:

     https://www.advancedhmi.com/forum/index.php?topic=2519.msg15192#msg15192

If you switch to the latest 3.99y then try using the attached version of BasicDataLogger2G.

They only differ in that letter "G", otherwise they include a new property BooleanLogOption which can be set to either "TrueFalse" or "OneZero".