slc add instruction and N7 files.

Bobthees

Member
Join Date
Oct 2002
Posts
2
I am working on a program that uses (SQO) instructions. past of the sequence ia a timer preset data table, it's 101 words long. I need to be able to add the data in several word or all of the words. Does anyone have any segustions?
 
Since the SLC does not support the FAL instruction you will either have to indivdually program all of the operations, or use indirect addressing and a FOR/NEXT loop.
 
I have had this same problem on many occasions and haven't found a better way than just using a bunch of ADD instructions. I've tried looping but it really has a negative effect on the scan time. If anyone has any other methods I'd also be interested in hearing them.
 
With a little extra effort, you can write the summing loop such that only a certain number of the values are added per scan, for instance, add 10 number this scan, 10 more the next until you are done.

You would generally tic-toc back and forth between two total sum registers. One would hold the previously finished sum and the other would be the sum you are currently working on.

Of course, this means that the active sum would only update every 10 scans or so... but each of those scans would be faster.

It all depends on what you require.
 

Similar Topics

OK Time to jump in the way back machine. Dusted off my old Dell with a serial port and dug out the PIC. Got the ICOM Logistics software up and...
Replies
2
Views
1,707
Dears I have been programming with SLC5/05. Here is an input which freq is almost 5-8c/s and connected with PLC input card 1747-IB32. For count...
Replies
6
Views
2,770
Morning everyone, I know this sounds trivial (but I haven't done it in a long time) but what is the best way to add a PLC card to a running...
Replies
5
Views
5,030
Greetings, PLC: SLC 5/04 DCS: DeltaV ver 9.3 Originally at our plant, the diffential pressure across our baghouse came from a single Rosemount...
Replies
18
Views
7,980
Hi all my professional friends I wanna add a Analog module card and the PLC is running ( got program inside and live). So do i need to off the...
Replies
3
Views
3,676
Back
Top Bottom