Array question

briana banks

Member
Join Date
Jul 2005
Posts
242
Hi All


How do i pass the WALLCLOCKTIME GSV object DateTime array
To HMI Tag?

I want to display the PLC time.

using RSView SE and RSLogix 5000

Thanks.
 
hello!
You must move each element of WALLCLOCKTIME GSV object DateTime array to dint.
I think that there are 7 elements to move (year, month, day, hour, minute, second, milisecond).
regards
 
You create an array in your controller scoped tags to write the date/time to. I believe it should be a DINT[7]. This is covered in detail in the manuals. The size and type of the array must be correct for most GSV's to work. I usually use a UDT that way I can label the elements like day, month year etc.

You execute a GSV at an interval of your choosing to write the system value to your DINT array. Then simply reference the array in RSView SE.

It is really a pretty simple matter to get the data from the controller. The RSView SE part I am not familiar with myself.

RSL
 
SE doesn't support the concept of either arrays or user-defined data types (yet). You'll have to set up an HMI tag (a direct refference would work too) for each of the elements of the DateTime array that you want to display, you shouldn't have to transfer them to individual DINT. (I'm guessing that you won't want milliseconds :) )
 

Similar Topics

Hello, When you want compare values of an array to a range of numbers is it a right way to do that? FUNCTION ADD VAR_IN_OUT A:ARRAY[1..50]...
Replies
5
Views
2,071
Hi all, I'm trying to access a variable address in a shift register. I have used BSL with an array DINT[20]. Now I wan't to access...
Replies
4
Views
1,522
Hi all, I am using RSLogix5000 version 7 to modify a program on a 1756-L1 controller. We have installed 5 more drives on a conveyor system. The...
Replies
2
Views
2,684
** EDIT - UPDATE ** ** After a bit of searching on here I've found an excellent example from LD... so I think I can utilise that to get...
Replies
3
Views
1,726
Hello, I need some ideas on how to sort an array. I have 3 1d arrays in a udt with a length of 101. Lets call them XAxis[0-100],YAxis[0-100],and...
Replies
3
Views
5,223
Back
Top Bottom