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 - scott.clark

Pages: [1] 2 3 ... 7
1
Thanks for the explanation!

2
Support Questions / ModbusTCPCom1.write returns a value, what is it?
« on: April 14, 2021, 05:36:55 PM »
When executing:

Code: [Select]
dim strReturn as string
 strReturn = ModbusTCPCom1.write(PLCTagAddress,Value)

What does the value returned represent?  its typically a varying number between 250 and 300.

I was looking for a way to detect when the target PLC is not communicating. 

With a ModbusTCPCom1.read, if there is no communications, there is and exception the can be handled with at Try/Catch.

I haven't been able to figure out how to validate that a ModbusTCPCom1.write is successful.

3
Support Questions / Re: ModbusTCPCom1 Unknown error code -34
« on: April 14, 2021, 05:26:47 PM »
The cause of the -34 was an unreliable USB - Ethernet adapter.  It would drop in and out of connection.  When I switched over to the built in ethernet port on the PC, I never saw the issue again.   Confirmed the adapter issue by using the command prompt and issuing ping command with -t option.

Thanks


4
Support Questions / Re: ModbusTCPCom1 Unknown error code -34
« on: April 08, 2021, 05:34:14 PM »
That is interesting.  I will test more on some different machines and see if the same connection issues exist.  Maybe it is my development PC.

Thank You!


5
Support Questions / ModbusTCPCom1 Unknown error code -34
« on: April 08, 2021, 12:14:15 PM »
I am receiving this

6
Support Questions / Re: ModbusTCP Component valid addressing
« on: December 16, 2020, 02:39:46 PM »
Sorry for the slow response.  I didn't want to respond until I had time to go through all the suggestions that were provided.

The torque controller was an Estic Handy 2000 touch unit. 

The Modbus Master utility Godra provided was an awesome tool to use in resolving the communications. 

What I found was that Estic has a requirement to send a watchdog packet within every 5 seconds.

"Write the value 0xFFFF to Holding Register 0x1000(Watch Dog) in every constant seconds (within 5 sec).
Handy2000 controller is watching values that are stored in this address, and if there is no writing data within
5 sec, the controller will judge the communication with the touch panel is Not-Connected. The controller will
remove input data from the touch panel, and input data will be invalid after the judgement."

So, essentially, it was throwing away my requests and not giving me back any error.

Another issue was that I had to subtract "1" from all the addresses that were published in the programming guide. I have seen this issue before, not sure why this is common.

Thanks for the support.




7
Support Questions / ModbusTCP Component valid addressing
« on: December 04, 2020, 01:05:58 PM »
I have a torque controller I would like to read and write to by ModbusTCP.

The registers I should be able to read from are in the range of:

308455 thru 308502 (unsigned integer data type)

I setup a BasicLabel component with ModbusTCPCom1 component and PLCAddressValue = 308455.  But all that is returned on this or any of the other registers is 0.

Is this  308455 thru 308502 a valid address range for the ModbusTCP Com component?

I know I have communications.   if I disconnect the ethernet cable, it repsonds with "No values returned from Driver"  and a "Could not connect ...." message.




8
Thanks for the link, it was helpful, but with version 3.99xR1, couple steps different at the end.

- In the AdvancedHMI project is a directory named SampleINIFiles, expand down that directory to see the files
- Right Click CLX.ini and select Copy
- Now Right click the AdvancedHMI project and select Paste
- Click on the newly pasted files so you see the properties in the Properties Window
- In the Properties Window change Copy To Output Directory to Copy if newer
- Double click the newly pasted INI file to view its contents
- Change the IPAddress to that of your PLC   ( In my case, the section name is [EthernetIPforCLXCom1])
- Open the MainForm
- Add an EthernetIPforCLXCom to the form ( In my case the driver was named "EthernetIPforCLXCom1")

+ In the Properties Window, the IPAddress can be left blank
+ In the Properties Window, set the IniFileName property to "CLX.ini"
+ In the Properties Window, set the IniFileSection to the section in the CLX.ini for the driver(in my case "EthernetIPforCLXCom1")


Works great, Thanks!

9
Support Questions / Re: Updating 3.97d application to 3.99xR1
« on: March 28, 2020, 12:21:50 PM »
Thanks, that was helpful.

10
Version 3.99xR1

I have mulitiple EthernetIPforSLCMicroCom connections in my application.  How can I use an INI file to provide the IPaddresses on startup?

Thanks

11
Support Questions / Updating 3.97d application to 3.99xR1
« on: March 27, 2020, 02:17:22 PM »
I want to start out by saying thank you for AdvancedHMI and all the great things you can do with it.  It has been fun learning VB.Net and working with AdvancedHMI. 

I have a 3.97d application that I recently updated to communicate with several micrologix plcs.  Occasionally some of them will get disconnected from the network for a long period of time and the communications doesn't restart.  Reading through the support posts, I am thinking you made improvements to the EtherinetIPforPLCSLCMicroCom for re-establishing lost communications.

What is the best course to update my application?  Do you think it will help?  Thanks!


12
I created a data subscriber monitoring a tag in a plc.  When the tag changes states, within the datachanged event code, I  would like to make decisions based on other plc tags that are being used elsewhere in the application. 

Do I have to execute a plc read within the datachanged event?  Seems redundant if the plc tag is already being used in for instance a BasicIndicator, I should be able to get its latest value.

thanks

13
Support Questions / Running AvancedHMI as service on Virtual Machine
« on: November 27, 2019, 01:06:03 PM »
I have an AdvancedHMI application I would like create that will write and read data to several micrologix1100 plcs on an ethernet network.  It will run and function with out operator intervention.  Once I have developed the application on my laptop, I would like to move it to a virtual machine on the network.  Can I set it up to run like a service on the virtual machine where it will automatically startup up, and restart if the application stops for some reason?

Thanks for all the great work!

14
Support Questions / Re: Close application from other than main form
« on: August 11, 2017, 05:21:47 PM »
Very nice,  Thank you.

15
Support Questions / Close application from other than main form
« on: August 11, 2017, 12:31:19 PM »
using 3.99w

How can I close the application for a form other than MainForm?  I tried using ExitApplication() but get an exception.  I don't want the Exit button on the main screen.

Thanks

Pages: [1] 2 3 ... 7