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 - John_R

Pages: [1] 2
1
Support Questions / Re: read string in Unitronics ModbusTCP
« on: March 24, 2020, 07:36:16 AM »
And that sounds like a reasonable fix, but that did not help

The string should come back as;

TUNNEL4

But every combination of SwapWords and/or SwapBytes returns the same result;

UTNNLE

So I have my TUNNEL in a jumble and no 4

JohnR

2
Support Questions / Re: read string in Unitronics ModbusTCP
« on: March 21, 2020, 08:12:34 AM »
Thanks Godra,

I'm a little closer, I figured out that the string function does not work with the Forced Call I was doing (3:0170).

And I figured out that the reason the modicon style call (40001) was not working for me, Unitronics uses "0" based addressing, which is why I could use 0170 to read MI170, but the modicon style is "1" based, and I had to add the offset into my address (40171) to read MI170.

So, I can use 40171@S5 to read a string that starts at MI170, But the string is jumbled in the BasicLabel as though the bytes of the string were not assembled in the correct order.

JohnR

3
Support Questions / read string in Unitronics ModbusTCP
« on: March 19, 2020, 10:32:49 AM »
Hey All,

Thought someone else might benefit from what I've figured out so far...

I am working on a project using 3.99y, talking to a Unitronics PLC using MODBUSTCP

I am able to read MB's (bits) and MI's (integers), but have found that the addressing is different than other brands of PLC's.

In Unitronics the MB addressing starts at 0000h, so if I want to read MB143, then I have to convert the hex to decemal, the add the offset. 0000h = 0000 dec + 143, so in the PLCAddressValue I enter 1:0143 (the 1: being modbus call #01 read coils).

Outputs start at 4000h, so if I want to read O69, 4000h = 16384 + 69 = 16453, PLCAddressValue = 1:16453

MI's start at 0000h, so MI170 would have a PLCAddressValue of 3:0170 (the 3: being modbus call #03 Read Holding Registers)


But, now I have come to an issue that I have not yet figured out, hoping someone can help....

I want to read a string from the PLC, I have seen in a couple different posts where Archie has stated that starting in 3.99y, we have the ability to read a string using something like 40001@S10 in the PLCAddressValue of a BasicLabel (where the 10 is the number of bytes in the string).

When I try this using the above addressing scheme "3:0170@S5", I get a message saying "Input string was not in a correct format".

Anyone have any thoughts?

JohnR

4
Support Questions / Unitronics
« on: March 11, 2020, 02:09:24 PM »
Hey All,

Has anyone come up with a TCP/IP driver for Unitronics?

JohnR

5
Open Discussion / Re: BasicDataLogger2 - How do I....
« on: February 04, 2020, 01:50:56 PM »
Thanks again, I guess its easy when you know what the code is supposed to look like :-\


6
Open Discussion / Re: BasicDataLogger2 - How do I....
« on: February 04, 2020, 10:36:43 AM »
Thanks Godra, that looks like what I want it to do but....

I replaced the original BasicDataLogger2 with the one you modified and when I try to run it I get this build error.

Severity   Code   Description   Project   File   Line   Suppression State
Error   BC30456   'PLCAddressEnableeLogging' is not a member of 'BasicDataLogger2'.   AdvancedHMI   C:\AdvancedHMI\820 Test AHMI\AdvancedHMI\MainForm.Designer.vb   301   Active

Regards John_R

7
Open Discussion / BasicDataLogger2 - How do I....
« on: January 31, 2020, 02:00:03 PM »
I have two projects up and running where I use BasicDataLogger2, it logs to a csv file every minute, and creates a new file daily, on each of two machines.

Now, what I am trying to do is emulate the logging format that I already have in place on four other machines utilizing Unitronics DataXport. The two I have set up using AHMI use to have Unitronics PLC's and also logged data via DataXport, but the OEM recently "upgraded" them to Micro820's, leaving me to figure out how to log data.

What I mean by emulating the logging format is that I want all the columns in the AHMI files to have the same sequence as my DataXport files.

My problem is that I want the Time and Date in the last two columns, Where-as BasicDataLogger2 puts a timestamp in the first column.
Now I assume that if I delete the value from the TimestampFormat box I will eliminate the timestamp in the first column, but How do I add Time and Date to the "Collection", so I can place them at the end?

I see that I can add two instances of the TimeDateDisplay to my AHMI screen and set one for time and the other for date, but I don't see a way to add that to the BasicDataLogger2 collection.

I suppose what I need to do is find a way to get this from the RTC of the MIcro820 and and add those to the collection.

Anyone found a way to accomplish this?? (I know, not really a AHMI question, but anyone know how to do this in a Micro820?)

Regards,
John_R

8
Open Discussion / Re: Micro820
« on: January 23, 2020, 08:28:40 AM »
Project up and running;
Two (nearly) identical Solutions using BasisDataLogger2 to log daily run data from two (nearly) identical machines, running side by side on the same PC...

Thank you all for your help....

Great software!

Regards,
John_R

9
Open Discussion / Re: Micro820
« on: January 21, 2020, 07:11:47 AM »

Alright Guys, Thanks for that info....

So I can run two instances at once, and so my next dumb question is;
do they have to have different names, or does the fact they are running from different folders separate them?

If they need different names, what am I renaming? the AdvancedHMIv35.sln, or the MainForm.vb, or is it something else?

Regards,
John_R

10
Open Discussion / Re: Micro820
« on: January 17, 2020, 01:59:06 PM »
Oh, Okay, I was somehow under the understanding that VB had to be on there.

Now, can I have two different Complete Solutions saved to this computer and have the .exe's running concurrently?

JohnR

11
Open Discussion / Re: Micro820
« on: January 17, 2020, 12:02:57 PM »
Things seem to be shaping up on my little project, and now I've come to another How-Do-I-Do-This situation.
This is probably covered somewhere, but scrolling through all the forum topics, I did not see a topic directly related...

Once I have my project running the way I want, I am going to move it from my development PC, to a PC whose soul purpose is data collection.

I understand that I have to copy the entire project folder to the new PC and obviously have to install VB.

But is there a way to have a shortcut on the desktop that will open my project AND make the application run?

Regards
JohnR

12
Open Discussion / Re: Micro820
« on: January 17, 2020, 11:09:09 AM »
I just downloaded the latest beta, I set up BasicDataLogger2 with the "CreateNewLogFileDaily" set to true, I'll let it run through the weekend and check my results next week.

13
Open Discussion / Re: Micro820
« on: January 17, 2020, 07:38:01 AM »
Thanks Archie,

That was the issue, all works well after unchecking that option.

I would like to create a new log file daily, and I see reference to "CreateNewLogFileDaily",
apparently in the 399y beta, any idea when that will be released stable?

Regards,
 JohnR

14
Open Discussion / Re: Micro820
« on: January 16, 2020, 11:16:23 AM »
New Issue....
If I close the VB project, the next time I try to open it I get this error;

The designer cannot process the code at line 36: Me.EthernetIPforMicro800Com1 = New AdvancedHMIDrivers.EthernetIPforMicro800Com(Me.components) The code within the method 'InitializeComponent' is generated by the designer and should not be manually modified. Please remove any changes and try opening the designer again.


What is this telling me?

JohnR



15
Open Discussion / Re: Micro820
« on: January 16, 2020, 09:02:07 AM »
Alright, I had already figured out the time interval part...

Didn't figure changing the file type would be as easy as changing the extension.

And I assume there is a way to create a new log file daily?

JohnR


Pages: [1] 2