I could use Siemens LOGO as example. The hardware device support 20 physical output that use Q1-20.
The base unit (The main PLC) have 4 physical output. This are mapped to Q1-4. To use Q5-20 I need to have expansion modules
to extend the physical output. It means I could in reality use Q5-Q20 and using this block as input.
If that is my approach and later decide to extend with 4 output modules and if Q5 is a input it will also be physical output.
My understand and I have read it in random places include IEC-61131-3 a PLC have input, output and internal memory.
And many PLC vendors us %M for memory flag instead of using %Q as memory flag to write a state from HMI.
The way Siemens have design the LOGO hardware Q1-20 is always physical output. That doesn't mean I couldn't use Q(n)
as inputs, but why should I do that when I have 64 memory register to control a bit by using memory flag.
I have always thought is good to separate physical output from internal memory and %Q for me is output and %M is memory location
When plc program logic have been tested we could assign %Q to physical output. In general I do not need any physical output
to simulate a plc program to know it behave the same if add physical output.
It have always find it little confusing why internal memory is accepted for integer but not bool. And if we define %Q as output
it couldn't be internal memory and that's why you see something else in other PLC IDE.
I have looked twice and IEC-61131-3 specification say that %Q is a output image and not memory location.
I have accepted that OpenPLC only use %Q but I do not agree it a good design.