Clear 150 80 character strings SLC500

OkiePC

Lifetime Supporting Member
Join Date
Mar 2005
Location
ENE of Nowhere Oklahoma
Posts
11,791
In a SLC 5/05, I need to clear 150 string elements (all in the same file) of 80 characters each. The FLL instruction will only operate on 3 at a time. Does anyone have a better method?

Thanks in advance,
Paul
 
The FLL execution time is (21.9+2.50/word) microseconds.
With it's maximum of 128 words, one FLL will take 342 microseconds.
You need to manipulate 6000 words, assuming 2 symbols per word.
Calculate yourself how long a single-pass fill will take (and how many FLLs).
IMO, any other method will take comparable time.
The task must be done by portions, scan-by-scan.
 
Agree with Sergei, FLL is not ideal for clearing data in ST file, especially when you have a heap of them.

I may go for individual MOV instruction [ MOV 0 ST:20.LEN], may be in a separate sub routine called just to reset those in one scan or within a loop to perform a reset. Still it takes about 200 micro sec.

Regards
_______
 
Do you actually have to clear the memory occupied by the strings?
Setting the string .LEN to 0 will effectively erase the string so far as RSLogix or RSView is concerned.
 

Similar Topics

I have 3 faulted processors and 3 1745-ppc (comm boxes). I cant communicate to clear the fault. I am running Windows 2000...I am changing baud...
Replies
6
Views
2,507
Hi, Experts: We have 20 + years old GE PLC series 90-30 stop running (the run led not on and battery led not on) and HMI showing that "PLC has...
Replies
7
Views
195
Hi everyone, recently i worked with a cmore panel and have the question that how can clear alarm list whit remote form,right now only can with...
Replies
0
Views
107
Hi guys, I have a data table as REAL type VALUES_TABLE[32,100]. I want to clear this table. For that i created a REAL type CLEAR_DATA tag with...
Replies
8
Views
562
Hi, I have bought a used 1756-L73S and SP, it is running firmware 30.013 and safety locked, im running Logix Designer 30.01.00. The controller...
Replies
10
Views
1,658
Back
Top Bottom