TechTip: Using GETBIT in a Macro on Weintek HMI
Occasionally, you may need to read a bit or bits from a PLC or controller register if they are not directly accessible via the driver being used – an example of this could be a PLC status word where each bit represents the status of various PLC conditions, for example, “Battery Status” or “CPU Error” etc. Or it may be that you want to replicate some PLC logic that is otherwise inaccessible. The GETBIT macro instruction is very useful in these circumstances, enabling you to retrieve an individual bit and use that in conjunction with further logic such as an Continue reading TechTip: Using GETBIT in a Macro on Weintek HMI