Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: AArithm does not support inverted digitals

AArithm does not support inverted digitals 4 years 4 months ago #10429

  • AutoMate
  • AutoMate's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 159
  • Thank you received: 5
  • Karma: 1
This is not really a bug, rather an unexpected surprise in version 5.5. In the AArithm help file, there is an example on how to count digital inputs. In the example, one digital signal is inverted with an explanation on how inverted signals are counted.



However, when building a similar test counter circuit, a compiler warning appears during a syntax check notifying digital inversion is not supported. However, the plc program will build and compile normally without any warning or error.

AArith_1.png


In real-time, inverted signals are ignored as the compiler warns.

AArith2.png


A simple work-around is to invert an input by adding a ! to the input equation, as follows:

d1 + !d2 + d3 ,where !d2 = NOT(d2).


Regards,

/Ron
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 7.466 seconds