I'm in the process of doing my first project with a G306A and a Mitsubishi Fx-3. I was going to set up my HMI buttons as momentary and map them to single M bits in the plc.
Having read this thread I have had a change of heart and have decided on the following strategy:
For each button, set up 2 flag tags in the Red Lion, e.g. Start_pb_on & Start_pb_off; map these to 2 plc bits, e.g. M1 & M2 respectively.
Draw the button (or object to use as the button) on the relevant page and in the object properties, on the Action tab, set the Action Mode: Operation to "User Defined". In the Action Details, On Pressed: enter "Set(Start_pb_on,1) "
In the data tags set up, for the flag tag Start_pb_off, on the Trigger tab: set Trigger One, Trigger Mode to "Active On" and in the Action: box enter "Set(Start_pb_on,0)
In the plc program, at the top of the program,have a normally open contact of M1 energise a coil of M2. Use M2 in the rest of the program as the pushbutton contact.
I haven't tried this yet but can't see any reason why it should not work. Can anyone see any flaws in this method or do you have any better, tried and tested methods?