GSV in 5000

Join Date
Oct 2013
Location
Iowa
Posts
17
Can someone help me with a GSV command please? I am trying to use it for a clock. My class name is WallClockTime. I have no instance name. Attribute Name is DateTime, My Dest is DINT7, a DINT with a length of 7. I am getting an error that says my DEST is missing reference to array element. I am also wanting to know if I can use an EQU with Source A being DateTime[1] and will that reference the month? I would then set Source B equal to 11 for November. I am just trying to grasp this GSV/SSV command. Please help!
 
I am getting an error that says my DEST is missing reference to array element.

Reference the destination as DateTime[0] - the first element.

I am also wanting to know if I can use an EQU with Source A being DateTime[1] and will that reference the month? I would then set Source B equal to 11 for November.

Yes
 
I just found what the class names are. I am not sure how you know the length needed for each one. How long is the DINT for MajorFaultBits for example?
 
The 'DINT of length 7' is an array of 7 DINTS in a row with indexes 0 - 6. You were referencing the second one - DateTime[1] - when you wanted to look at the month.

The DINT for MajorFaultBits is a single DINT. The individual bit positions - MajorFaultBits.0 through MajorFaultBits.31 - can be referenced. Only those shown in the help file have particular meaning.
 
Last edited:
The literature does say it is a single DINT for that. I will look through it some more. I have Studio 5000 and am unable to get the Emulator to work. Do you have any suggestions for that?
 

Similar Topics

Good Morning Everyone, I'm looking to use the GSV instruction to get I/O fault codes for my project so I know if there's a comms issue in my E/IP...
Replies
5
Views
866
Is there any way to use a tag value in the Instance Name field? I would like to have an array of strings with my module names that I can loop...
Replies
2
Views
954
Hey everyone. I am having an issue and can't narrow down the cause. I am losing communications with various Yaskawa drives on a logix5000 network...
Replies
7
Views
1,457
Hi folks! I'd like to add to my PLC logic a way to detect what failure is my I/O module (PowerFlex 525 VFD)having. My goal is been able to array...
Replies
10
Views
4,412
Hi all, i'm picking up logix 5000 quickly when it comes to the usual commands. i was asked if we could bypass (for lack of a better word) a...
Replies
11
Views
2,756
Back
Top Bottom