Article - CS426622

How to invert Boolean bit in PTC Kepware Products

Modified: 30-Oct-2024   


Applies To

  • Kepware Server (formerly KEPServerEX) 6.0.2107.0 to 6.16
  • ThingWorx Kepware Server (legacy) 8.0 to 6.16

Description

  • I have some boolean data coming in via ControlLogix (Allen-Bradley)
  • I am looking to invert it for the OPC server
    Incoming 0 > Convert to 1
    Income 1 > Convert to 0
  • I am looking to invert the OPC data that my downstream client connects to (either by scaling, an extra calculation, etc)... but I'm having trouble getting it to work
  • I am assuming that inverting a boolean value is relatively common, so hoping to get some assistance / guidance on how best to get this done
This is a printer-friendly version of Article 426622 and may be out of date. For the latest version click CS426622