PLC5 Size Of Array Instruction

Snail

Member
Join Date
Aug 2022
Location
USA
Posts
3
Does RSLogix5 have an instruction that outputs the overall size (elements) of an array? I am looking for a SIZE instruction equivalent in RSLogix5000..
 
Last edited:
Welcome to the PLCTalk forum community !

In a PLC-5, an "array" is defined by a Data Table file. These have data types (the most common is a 16-bit signed integer) and Data Table File Numbers.

Because the data tables are user-defined for fixed sizes, and because of the age and sophistication of the operating system, there is no mechanism for the user program to read their size. You need to write your logic carefully in order to avoid exceeding a data table border.

The RSLogix 5 software won't let you directly address an out-of-range Data Table element, and when offline should let you expand the data table to accommodate an entered address.

The maximum numbers of elements/words per data table file are well summarized in the 1785-QR001 quick reference.
 

Similar Topics

Hello guys, I know this is a simple problem but I just can't find the answer. Yesterday we cleaned up the folder we store our .RSP files to on our...
Replies
18
Views
5,987
Hi guys, Is there anywhere to calculate a redundant PLC-5 program size when converting them into CLX (redundant)? 1) In PLC 5 lets say I have...
Replies
13
Views
5,481
I am using the following formula and I am getting error, Invalid Expression - too many closing parenthesis. when i copy the formula to notepad or...
Replies
4
Views
132
Preface: Kinda long, so I made section titles Intro: I just want to see if anyone here has seen anything similar. A PLC5-40 series C enhanced...
Replies
3
Views
339
Back
Top Bottom