Author Topic: Help, I am new, but I think this should work  (Read 1215 times)

cscortes

  • Newbie
  • *
  • Posts: 3
    • View Profile
Help, I am new, but I think this should work
« on: January 23, 2015, 05:51:39 PM »
Hi:  I am new to PLC Programming, but I have a background in developing software.  VB isn't my strength, but this doesn't look hard.  I have created a video on my steps, can anyone see what I am doing wrong ??


Video is here:
https://drive.google.com/file/d/0Bz5yG_gwTEDnU1NxUE5JdWVxZ0U/view?usp=sharing

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Help, I am new, but I think this should work
« Reply #1 on: January 23, 2015, 06:10:29 PM »
Is GreenLight1 a Controller Scope Tag?

If it is a program scope, you need to address it like this:

PROGRAM:MainProgram.GreenLight1
« Last Edit: January 23, 2015, 06:14:15 PM by Archie »

cscortes

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Help, I am new, but I think this should work
« Reply #2 on: January 25, 2015, 02:00:19 PM »
Thanks, I have corrected my program and in rslink I see  that your suggestion is the correct format.  But I tried it an it still gives the DLL exception. 

At this point, I believe it may be some missing external DLL.  Unfortunately, I don't remember how to set VB Express 2010 to break on the line of code to see which function is actually causing the exception to verify it.

Does anyone have a tip or 2 for tracking down this issue, if it is an issue?  Is this a Windows 7 issue? vb 2010 issue?

Thanks.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Help, I am new, but I think this should work
« Reply #3 on: January 25, 2015, 03:06:33 PM »
I think the immediate window may be misleading you. That is only showing exceptions that have been handled properly by the driver.

This is how I recommend starting out:

- Create a ControlLogix program with a Controller scope tag named DINTTag, then download to the controller
- In AdvancedHMI, add an EthernetIPforCLXCom driver to your form and set the IPAddress property to the IP of the controller
- Add a BasicLabel to the form
- In the Properties Windows set PLCAddressValue and PLCAddressKeypad both to DINTTag
- Run the application
- Once started, click on the BasicLabel, a keypad will popup, then enter a value of 99 and click enter

If the connection to the PLC was good, you should see the BasicLabel change to a 99

cscortes

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Help, I am new, but I think this should work
« Reply #4 on: January 25, 2015, 03:08:31 PM »
 I hit my first newbie error, slot # was incorrect.  Worked perfectly after I changed it to the correct slot #.