Posted 11 Feb 2020 I am new to Omron Programming, Sysmac Studio NJ processor & NA hmi. I am used to being able to create diagnostic PLC logic using BIT addressing from a DINT variable for setting diagnostic signals for an HMI. I can also use the DINT to do a quick check to see if it is greater than 0, therefore signaling I have a Machine Fault. I cannot seem to figure out a way to get those BITS setup in the User Alarms of the NA programming. I have found where you can setup a Datatype/Union to be able to use the DINT scenario and Bit level in PLC programming....but that doesn't help on the HMI side. Any thoughts?? Share this post Link to post Share on other sites
Posted 11 Feb 2020 You can use unions for this. First, create a union like so: Then, create a variable that is of that type: If you click on the comment field, you can select a small button on the left side of the field. You can go give each of the 32 bits in the variable union a comment: Then, when you use that bit in ladder it shows up like this: You can then monitor all 32 bits, like this in your code: Now, to make an alarm in the HMI. First go to the variable mapping section: Type in the name that you want the variable to be mapped to in the HMI. I just used Currentalarms as my name: Next, go to your alarms and add an alarm as shown below: Then add an alarm viewer on a screen. See the simulation below: Share this post Link to post Share on other sites
Posted 12 Feb 2020 Totally what I was looking to do!! I knew there had to be a way. I love this Mr. PLC forum. Thank you for the help....I know I will be back with more question :) Here is one that is just a "why is it like that when mine is not...."....when you create your Alarm in the HMI, the Name translates to the Alarm ID.....in your pictoral example, you have "MyAlarm0 but it translated to "Group0_MyAlarm1", mine stayed "Group0_MyAlarm0". Just a curious question. Thanks again.... Share this post Link to post Share on other sites
Posted 12 Feb 2020 I may have added two alarms and deleted one... not sure. Share this post Link to post Share on other sites