Quantcast
Channel: Allen Bradley / Rockwell Automation Latest Topics
Viewing all articles
Browse latest Browse all 3721

indirect access to hardware inputs

$
0
0

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.


Viewing all articles
Browse latest Browse all 3721

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>