Hi.
is it possible to access to hardware inputs indirect? I want to use a function like
val := read_digital(module_nr, bit_nr);
I have found this page: https://solisplc.com/plc-input-output-mapping-buffering-io-addressing-basics-in-rslogix-studio-5000-allen-bradley/
which says i need to map all digital inputs by using the controller tag name to put it into an bool array.
On S7, there is this function: PEEK_BOOL(area := 16#81, dbNumber := 0, byteOffset := module_nr, bitOffset := bit_nr);
Edit: I am using CompactLogix, Studio 5000.