How to use Digital groups signals?

I did a direct connection between the PLC outputs and abb robot inputs, and I want to use that signal to active trap routines, but the number of signals isn’t sufficient for the number of routines I need to do. Because of that I was wondering about using group inputs to do multiplexing of signals. Is it possible? How can I use the group inputs? How can I define a value to set this type of digital signals in robotStudio?

afaik with group inputs you read the values of each signal and interpret them as an unsigned integer.
So for example, if you have 8 digital inputs as a group input you have an allowed value from 0 to 255.
I’d check GInput, GInputDnum and ISignalGI on the RAPID manual