Author Topic: Omron for dummies ..  (Read 8721 times)

gjervig

  • Newbie
  • *
  • Posts: 16
  • Chaos, Panic and Disorder, My work here is done...
    • View Profile
Re: Omron for dummies ..
« Reply #15 on: January 21, 2015, 03:32:07 PM »
Hi .,

Im sure i havnt got anything im my program that could change the value beeing sent to W100 .. and the numbers just dont match up with BCD hex or anything..

Reading values from PLC ., Network and Node is set to 0 and the only thing ive changed in PLCs ethernetsetup is IPaddress ..

Ill try with another CJ1 one of the next days ..

Best Regards
Frank .,

gjervig

  • Newbie
  • *
  • Posts: 16
  • Chaos, Panic and Disorder, My work here is done...
    • View Profile
Re: Omron for dummies ..
« Reply #16 on: January 22, 2015, 11:38:11 AM »
Hi .,
I found another Omron CJ1 PLC with ethernet... and in hope to get a little further ive tried connecting with the serial driver but VB starts debugging with this screen:

Best Regards
Frank

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: Omron for dummies ..
« Reply #17 on: January 22, 2015, 12:01:36 PM »
When you get that exception, hover over ex1 and see what ex1.message shows

gjervig

  • Newbie
  • *
  • Posts: 16
  • Chaos, Panic and Disorder, My work here is done...
    • View Profile
Re: Omron for dummies ..
« Reply #18 on: January 22, 2015, 01:04:58 PM »
Input string was not in a correct format..

In the Driver, ive changed speed to 9600 and COM1 to COM3 nothing else..

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: Omron for dummies ..
« Reply #19 on: January 22, 2015, 01:49:05 PM »
If you are using bit address, try D0.

Bit addressing will be fixed in Version 3.97d

gjervig

  • Newbie
  • *
  • Posts: 16
  • Chaos, Panic and Disorder, My work here is done...
    • View Profile
Re: Omron for dummies ..
« Reply #20 on: January 22, 2015, 02:02:29 PM »
Im only using BasicLabel and D0..

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: Omron for dummies ..
« Reply #21 on: January 22, 2015, 02:57:07 PM »
I'm not seeing this occur with version 3.97d. This version will be available for download tonight. Try it to see if you still have the problem.

gjervig

  • Newbie
  • *
  • Posts: 16
  • Chaos, Panic and Disorder, My work here is done...
    • View Profile
Re: Omron for dummies ..
« Reply #22 on: January 22, 2015, 03:33:16 PM »
. ,im looking forward to this ., :-)

gjervig

  • Newbie
  • *
  • Posts: 16
  • Chaos, Panic and Disorder, My work here is done...
    • View Profile
Re: Omron for dummies ..
« Reply #23 on: January 23, 2015, 03:16:26 PM »
Hi .,

Ive download the new 397d release and glad to say something works :-)

For the time beeing im online using Hostlink setting in PLC  and Serial FINS driver in AHMI and able to read and write values. (whats the difference between youre hostlinkdriver and serialFINS?)

I might have found the reason why i wasnt able to read values on W100 the other day and i has to do with connection speed. it seams that when connection at 9600 Baud its not fast enough to read all memorys.. right now connecting at 115200 it reads 5 DM and 5 WM with no problems, but if i reduce speed to 9600 it will only read 5DM and no WM, using BasicLabel

Maybe it has to do with the order you read PLC memory ..

~~Frank . ,

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: Omron for dummies ..
« Reply #24 on: January 23, 2015, 03:47:53 PM »
That's good news that it is working fr you now. It was a problem that crept in during some changes to make AdvancedHMI able to run on Linux and Mac.

The HostLink driver is for the older controllers such as the C200 series. The FINS is for the newer models.

Thanks for the feedback and patience in getting this worked out

gjervig

  • Newbie
  • *
  • Posts: 16
  • Chaos, Panic and Disorder, My work here is done...
    • View Profile
Re: Omron for dummies ..
« Reply #25 on: January 24, 2015, 03:56:54 PM »
im not out of the woods just yet..

Ive continued adding components to my test project.. and im still having strange behavior.

The scenario is im having

4 BasicLabel reading and writing D0, D1, D100 And D101
5 BasicLabel reading and writing W0, W1, W99, W100 and W101
Theese are working ..
Then i add One BasicButton1, Toggle 0.00 Highlight 1.00
And now BasicButton1 work too...

Then i add BasicButton2 Click 0.01 Highlight 1.01, and one more BasicButton3 Click 0.02 and Highlight 1.01
BasicButton1 highlight on 1.00 dosnt work, instead Button1+2+3 ALL highlight on 1.01..

Adding more Basic Buttons all highligting on 1.01 ..

Im Sorry to say .. it still needs a little work :-)

~~Frank .,

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: Omron for dummies ..
« Reply #26 on: January 25, 2015, 05:50:15 PM »
Then i add One BasicButton1, Toggle 0.00 Highlight 1.00
And now BasicButton1 work too...

Then i add BasicButton2 Click 0.01 Highlight 1.01, and one more BasicButton3 Click 0.02 and Highlight 1.01
BasicButton1 highlight on 1.00 dosnt work, instead Button1+2+3 ALL highlight on 1.01..

Adding more Basic Buttons all highligting on 1.01 ..
This one is related to the communication optimizer. The driver attempts to group multiple subscriptions into a single read, then parses the response out and sends to the appropriate subscriptions. Apparently this is not working for bits.

Unfortunately I won't have access to an Omron controller until after Friday. I really need one to see how the response to a multiple bit read looks.

gjervig

  • Newbie
  • *
  • Posts: 16
  • Chaos, Panic and Disorder, My work here is done...
    • View Profile
Re: Omron for dummies ..
« Reply #27 on: January 26, 2015, 04:10:32 PM »
., Ive waited 6 years for this ., i think i can do a couple more days :-)

~~Frank .,

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: Omron for dummies ..
« Reply #28 on: February 03, 2015, 08:26:16 PM »
Download and extract this attachment, then replace the one in AdvancedHMIDriver\Omron\FINS

sunny

  • Newbie
  • *
  • Posts: 22
    • View Profile
Re: Omron for dummies ..
« Reply #29 on: February 08, 2015, 03:11:47 PM »
Hello

It looks like I have the same problem with de hostlink driver. I can read D words and wright D words and bits. But I can not read bits. Can  you help me?