This TechTip is about using a Weintek HMI as a large digit display with numbers bigger than the permitted "255" for a numeric object. In order to achieve this, we'll split the number into ones, tens, hundreds and thousands using modulo operations in a macro and use the resulting digits with word lamps. Leading Zeros:
No Leading Zeros:
The 7 segment numbers (0-9 plus a blank) created for this project are available from on the links below: 0123456789Blank (open in new tabs) These were…
In this TechTip, we're looking at using dynamic limits in numeric objects, alarm colours, and using a macro to calculate the limits based on a +/- tolerance.
In the demo program, the "Actual" value is in LW-0, the "Target" is in LW-2, "Tolerance" in LW-4 and LW-10 & LW-12 are Lower and Upper limits respectively.
Setting dynamic limits and alarm colour/behaviour
The macro code deals with the case of a 0 target, and also negative target and negative limits: