AB Studio 5000 Arrays

Bbarnett

Member
Join Date
Jul 2013
Location
United States
Posts
77
I have a situation...

I have a Fanuc robot talking to an AB CompactLogix through Ethernet/IP. 100 Fanuc registers (or 100 DINTs) are designated to a certain part. When part #1 is selected, R1 = 1 and all other registers = 0. If I select part #2, R2 = 1 and all other registers = 0.

I was thinking...If I want to select part #2, all registers = 0, and then write R2 = 1 Unfortunately, I don't know how to do the 'all registers = 0' part since I can't CLEAR or write a 0 to an array.

What is the easiest/quickest way to write the logic for this? What commands should I use? I'm trying to not have rungs with 100 outputs or 100 contacts..

*I am not allowed to change the Fanuc program unless it's a last resort thing.

Thanks guys.
 
Use the FLL instruction to clear the array, then put the value you want into whichever location you want.

FLL, 0, Array[0], 100
 

Similar Topics

Hello, first time poster here! A belated "thank you" for the direction I've already received from this forum! So, can I do this? Move value 1...
Replies
6
Views
762
Hello everyone, I'm new here, I hope someone can help me. I've been trying to install EDS files to my Studio 5000 with the EDS tool installer but...
Replies
3
Views
121
Hi Everyone, I am facing an issue while installing the STUDIO 5000 in my windows 10 PC. During installation I am getting an error that " Error...
Replies
4
Views
187
I am connecting to a remote device. When attempting to upload I receive an error that states: Error: Auto_Functions: The Import was aborted due...
Replies
3
Views
190
Back
Top Bottom