Retrieve a counter value from a S7 PLC. This function is available via the taskpane as well as directly via the cell “=GETS7COUNTER(…)”
The function returns the requested counter value.
cpuType – Specifies the cpu type of the PLC you want to connect with, must be a string with the CPU type in following format: ‘S7-1200’, ‘S71200’, ‘1200’.
ip – Specifies the ip address of the PLC.
rackNo – Specifies the rack number of the PLC, must be an integer between 0 and 99.
slotNo – Specifies the slot number of the PLC, must be an integer between 0 and 99.
Address – Specifies the counter address of the requested counter, must be an integer between 0 and 9999.