You are not registered yet. Please click here to register!

plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!

Go Back - Interactive Q & A > - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Thread Tools Display Modes
Old February 1st, 2017, 02:40 PM   #1
Dera bsee
United States

Dera bsee is offline
Join Date: Sep 2012
Location: Los Angeles
Posts: 36
Confused by DINT tag program method. Need help.

Hi all,

I'm modifying a system and came across a dint tag used in a way I've never seen before. The tag name is cvProcess yet he has a xic named cvProcess.[VatNumber]

where did the [VatNumber] come from and how is he using it? How do you do this and what's the purpose of doing so. It looks pretty awesome but I don't understand what's going on. I attached an image of the tag xic, and one of me monitoring the tag and you can see that it's just a dint tag. Please help! Thanks all!
Attached Images
File Type: jpg DINT TAG.jpg (8.1 KB, 15 views)
File Type: jpg DINT TAG 1.jpg (6.7 KB, 12 views)
File Type: jpg DINT TAG monitor.jpg (69.5 KB, 10 views)
  Reply With Quote
Old February 1st, 2017, 02:51 PM   #2
Lifetime Supporting Member
United States

dmroeder is offline
dmroeder's Avatar
Join Date: Apr 2006
Location: Vancouver, WA
Posts: 2,148
It's called an indirect address. cvProcess is a DINT and the programmer is wanting to know if particular individual bits are off. They are indirectly changing which bit they are questioning based on the value of VatNumber.

Lets say that VatNumber = 4. then the rung in the first picture would essentially be cvProcess.4. When VatNumber = 10, then the first picture would essentially be cv.Process.10. Simply by changing the value of VatNumber, it will point to a different bit in cv.Process.
  Reply With Quote
Old February 1st, 2017, 02:53 PM   #3
United States

jkerekes is offline
jkerekes's Avatar
Join Date: Aug 2007
Location: NJ
Posts: 2,195
VatNumber is another tag that someone created. This is indirect addressing. Depending on the value of VatNumber, the bit of the DINT that the code refers to depends on the value of VatNumber. If VatNumber is 2, then code refers to DINT.2.
  Reply With Quote
Jump to Live PLC Question and Answer Forum


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Logix Designer/5000 Tag Database Cleanup mylespetro LIVE PLC Questions And Answers 12 November 16th, 2016 07:13 AM
Siemens STL Counter TrainS7 LIVE PLC Questions And Answers 8 March 28th, 2016 01:21 PM
How to switch drivers lbeh LIVE PLC Questions And Answers 7 December 11th, 2014 02:11 PM
Ladder method program BHEKI LIVE PLC Questions And Answers 12 November 29th, 2014 07:32 AM
Beijer E615 HMI. What software to program? Confused... HJTRBO LIVE PLC Questions And Answers 1 May 31st, 2012 03:22 AM

All times are GMT -5. The time now is 01:23 PM.