I have a tag called AlarmPLC (DINT word) configured in the tags folder (Ignition). This tag is linked by OPC Server to my PLC. I would like to know how to configure alarms checking the bits of this tag created in the Ignition. for instance:
Alarm 1 -> AlarmPLC.0
Alarm 2 -> AlarmPLC.1
NOTE: I don't want to check the word AlarmPLC via OPC bit by bit because is inefficient way.
To answer the question you asked, you can make multiple alarms on AlarmPLC and use Mode=Bit State on each alarm.
That said,
I'm not sure this is true. Ignition optimizes pretty well and the convenience of having a tag per alarm may be worth the (probably very small) performance hit.
Correct. Ignition's driver will notice that you are asking for bits of an integer (with or without also getting the integer) and will make a single read to satisfy all of the OPC items that want that value.