Logix5000 indirect issue

johnfarrugi

Member
Join Date
Mar 2008
Location
London
Posts
99
I'm trying to copy the controllers datetime to a DINT[7] element of a UDT. Nothing happens. If I change the tag to the following it works "Products[0].Date_Modified_Created[0]" If I try it like this "Products[Product_Parameter_Edit_Selection].Date_Modified_Created[0]" it doesn't work

What am I doing wrong? The "Products" tag is 1 dimension 100 long. I know the tag "Product_Parameter_Edit_Selection" has a value of 4.

Also, in logix500 you could either display the indiect tag name or the indiect tag value. Can this be done with logix5000 too?
 
Last edited:
yes, I'm useing the GSV to read the wallclock, local time. I have the udt as my destination.
The way around my problem was to create a time tag configed as DINT[7] and then use a copy command from my time tag to my UDT. I'm just not sure why I can't go direcly from the local time tag to my UDT using the GSV command.
 
johnfarrugi said:
I'm just not sure why I can't go direcly from the local time tag to my UDT using the GSV command.

In the attached file, first GSV is used to write down when my process started, the second gsv is used to get clock time ,both TQ_DT01 and Tq01_DT2 use a UDT call DT, and DT contains year, month,day, hour, minute, second and microsecond.

Later on my program I substract TQ01_DT1 from TD01_DT2 and i known elapsed time.
 

Similar Topics

Hi all I need to read the values of many variables from a stl cycle. For example, suppose I have 3 variables: tag1,tag2,tag3. Is it possible to...
Replies
1
Views
1,320
I know you can do indirect addressing using 5000, but is it possible to do partial indirect addressing? Meaning... I pass any number, say, 1000...
Replies
11
Views
4,101
Does anybody know of a manual or website that breaks down Indirect addressing. I have seen it used and find it hard to follow without any...
Replies
14
Views
20,234
Good day all. I think I've got it but please put me right if not. (More than likely). If I set up an integer (call it "array") with a non-zero...
Replies
15
Views
6,516
Hello, We are now working on a software to collet the configuration of different PLC brands ,using a third software to backup all the simens...
Replies
1
Views
67
Back
Top Bottom