Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Homie

Pages: 1 [2]
16
It would be nice to configure the number of digits in the gauge, or have at least 4 digits.
I wanted to display motor rpms with it, but couldn't get more than 999 :-(.


17
Open Discussion / Re: Problem when setting IP by code
« on: April 01, 2016, 05:51:09 AM »
Works perfect now. :-)

What took me some time was the naming change from "Slotnumber" to "Processorslot" during the thread.
I was trying to get the Processorslot, but the ini file was offering the Slotnumber only.
So anyone reading this thread: Use Slotnumber OR Processorslot, but don't mix :D.

Thanks for all the help!





18
Open Discussion / Re: Problem when setting IP by code
« on: March 31, 2016, 10:59:05 AM »
I added that one line, but it is not working.
MyBase.ProcessorSlot = CInt(p.GetSetting("SLOTNUMBER"))

As soon as I change the Slotnumber in the driver to a "wrong" slot, communication won't work.
I stepped through the logic and found a line where the slotnumber is overwritten later.

Sub InitializeComponent
Line 137:  Me.EthernetIPforCLXCom1.ProcessorSlot = 0

I thought about a boolean that blocks that line if needed, but that wouldn't be "nice".





19
Open Discussion / Re: Problem when setting IP by code
« on: March 31, 2016, 04:56:05 AM »
Thanks! After some issues it is working.
I got a strange message that the variable "IPAdress" is already existing, and can't be recreated. Didn't use "IPAdress" anywhere. After trying today the fault is gone. Strange!

I tried to expand the CLX.ini to set also the processor slot. But I can't write a string into the ProcessorSlot field.
In our line setup we use a master rack, and have processors running almost the same program in every second slot.
It would be nice to adress also the slot through the ini file.
Is there a way?


20
Open Discussion / Re: Problem when setting IP by code
« on: March 29, 2016, 11:51:21 AM »
Thanks for the fast reply.
CLX.ini has to be stored in the applications root directory?
Can I add additonal setup info to that file?


21
Open Discussion / Problem when setting IP by code
« on: March 29, 2016, 11:22:20 AM »
Good Morning

I have a question/problem with changing the IP adress of the driver when starting an application. I am using 3.99d and EtehrnetIPforCLXcom.

To be able to have one application for different machines, I read a setup file and try to change the IP of the driver in the form.open routine.
I am using this code in a called subroutine.

 Private Sub Set_System(ByVal ID As String, Val As String) 'Use incoming values to set the system.
        If ID = UCase("IP1") Then                                              'Set SystemIP for Driver
            IP1 = Val                                                                     'Public String to use this IP on other pages too.
            EthernetIPforCLXCom2.IPAddress = IP1            'Reconfigure Driver.

As soon as I have the last shown line active, the driver won't connect to my CLX. Even overwriting the .IPaddress with its preconfigured value will stop the driver from working. I checked the string that is writen to the diver, and it is fine.
Is there something like a driver/communication restart I have to add, or is this the wrong way of doing things anyway?

Best Regards
Thomas




22
Tips & Tricks / Re: DataSubscriber2 Walk Through
« on: March 18, 2016, 05:55:03 AM »
Guten Morgen and Hello
I just started testing AdvancedHMI and have a question to the Datasubscriber2 setup.
Reading some other Threads about it made me even more curious.

I want to read an array of data from a CLX, and I am not sure about the adressing.
Do I have to add the startpoint in the array to the tagname or not?

Example: I want to read 15 elements from the DINT array Stoplist.
Do I have to set PLCAdress to: Stoplist[0] or is it only Stoplist?
Number of elements will be 15.

Edit: Could test it.  Stoplist[0] is working.

I have access to a PLC only from time to time, but I can send my file to a friend to test it.
He has even less clue from VB than I have. So I want to verrify as much as possible upfront.

Thanks in advance
Thomas

Pages: 1 [2]