Studio5000 - Multiply based on position in array.

HoldenC

Member
Join Date
Sep 2012
Location
Cumberland, KY
Posts
220
I have an array of 55 REAL values. Is there a way to multiply based on the array location ?

I have 55 transfer belts that are equally spaced apart. The first one is at 500mm, and then the 2nd will be an additional 1200mm, and the 3rd will be an additional 1200mm.
The data starts with array [1] as I wanted it to match the belt numbers.

I was looking into the FAL instruction, but I am a little unfamiliar.

Thanks.
 
Something like this might work, where array56 is a DINT[56] or UINT[56]; element array56[0] is assigned a value of -700, but I assume you will ignore it; you could also use a value of 1 of the Position parameter and only write to elements 1..55.

N.B. this instruction only executes its logic on scan cycles that detect a rising edge of its input rung (input rung was False on the last scan cycle, and is True on the current scan cycle).
 

Attachments

  • Untitled.png
    Untitled.png
    9.2 KB · Views: 10

Similar Topics

Hi Hope you all are doing well. Iam working on a project with some AOI. I also hate no online edits... lol. My problem occurs when I use a UDT...
Replies
2
Views
168
I am not sure if this is possible but if there is a way, you guys would be the ones to know. I am currently working on a project where we are...
Replies
7
Views
226
Hi all. I'm having issues adding an ethernet module to my project in Studio500 v34. The device is a Fredericks Televac EthernetIP MX gateway which...
Replies
8
Views
374
The day of week program started changing day of week 2 hours early. It changes at 10 P.M. instead of 12A.M. Just started this year.
Replies
22
Views
2,688
Hello All, need one help , looking for a example which can help me to write following code in Studio 5000 ladder logic. I have 2 String...
Replies
14
Views
10,517
Back
Top Bottom