AdvancedHMI Software

General Category => Support Questions => Topic started by: Neeh on February 08, 2019, 06:56:59 PM

Title: Omron C200
Post by: Neeh on February 08, 2019, 06:56:59 PM
I am connecting to Omron C200 PLC using serialhostlink at 19200,7,E,2 and I have a basic label with PLCAddressValue = 100.01.  It just toggles every second. 
There is no error indication but the label does not show the value.  What am I missing?
Title: Re: Omron C200
Post by: Archie on February 08, 2019, 09:09:11 PM
Try using D0 in both PLCAddressValue and PLCAddressClick. See if it shows the value and lets you change it.
Title: Re: Omron C200
Post by: Neeh on February 08, 2019, 10:32:01 PM
0.00 or 0.01 works but not 100.01 etc.
Title: Re: Omron C200
Post by: Archie on February 09, 2019, 05:03:07 AM
If you are using 3.99y Beta, set EnableLogging to True.
Put only 1 BasicLabel on the form with PLCAddressValue set to 100.01
Run the application for about 30 seconds.
Look in AdvancedHMI\bin\Debug for the log file
Post that file here

Title: Re: Omron C200
Post by: Neeh on February 11, 2019, 11:53:43 AM
Attached is the log file.
Title: Re: Omron C200
Post by: Archie on February 11, 2019, 01:05:00 PM
- Download the attached patch
- Open your solution in VS
- In Solution Explorer, expand down the AdvancedHMIDrivers project
- Right click the support folder and select Add->Existing Item
- Browse to the file downloaded from here
- Rebuild the solution

Let me know if that resolves the issue

<<Attachment removed. Will be part of 3.99y Beta 19>>
Title: Re: Omron C200
Post by: Neeh on February 11, 2019, 01:56:54 PM
That resolved the issue.

What is the proper notation to addressing: DM, HR, TC, etc. ?
Title: Re: Omron C200
Post by: Archie on February 11, 2019, 02:00:16 PM
Typically just a single letter prefix such as D100

You can also use address modifiers to get long integers, float, and BCD. For example:

D100@F
D000@L