Rslogix add-on passing array problem

aradhonline

Member
Join Date
Nov 2009
Location
Dubai
Posts
62
Though i was working with add-ons for a lot of times recently i am stuck in a simple proble.

I have a TAG READ_DATA[502]-INT ARRAY R/W

I am using add-ons to process these tags 25 at a time(25 tags in series). Hoping i will pass the array index + this Full data and process stuffs inside.

Problem is that its not happening. I passed the array tag as InOut parameter still there is no use.Inside the Add-one when i use the variable as Parameter[index] it is showing ?? marks..and Argument not specified.

Any workarounds or any other ways of doing this ???

Please help.
 
I have the same problem. I have a communication card that is configured as 1756-MODULE, so it has arrays of 250 INTs in and 250 INTs out that I would like to be able to directly access segments off within an AOI. But the AOI will only allow matching data types to be passed, so I'd have to send the entire in and out arrays for the module, then pass the index for each specific AOI as a separate input. This seems like a bit of a kludge to me.

For another application we created UDT's for each remote device on the 1756-MODULE which was very nice because the logic became self-documenting. It would be very slick if there was a way to do type-casting in CLx so that we wouldn't need to programmatically copy the values from the module to the UDT with a COP instruction and could instead alias the UDT directly to the segment of integers on the module. That would also solve my dilema above.

Anybody know if there is a way to accomplish type-casting (or equivalent) in CLx?
 
Last edited:

Similar Topics

I am trying to add a device to my RSLogix 5000 program. The device is a Eaton PowerXL DG1 I downloaded the eds file from the website (it...
Replies
5
Views
1,769
Im trying to sum a running "Shift Total" production value and move it into a Month Total value that will continuously update for viewing...
Replies
1
Views
1,542
Please, oh wiser folks than me, explain this and how it works.
Replies
6
Views
2,041
I am trying to add a generic Ethernet module to RSLogix and keep getting an invalid size error. There are no inputs, only outputs. I am using...
Replies
6
Views
5,640
I would like some guidance or a way to add SCL or SCP instructions to my Add-On I am using RS-Logix 5000
Replies
3
Views
2,276
Back
Top Bottom