Author Topic: Omron HostLink Serial Read/Write W0.0 bits problem  (Read 3611 times)

aquilmustafa

  • Full Member
  • ***
  • Posts: 121
    • View Profile
Omron HostLink Serial Read/Write W0.0 bits problem
« on: January 15, 2017, 10:44:20 PM »
Hey Guys,

Archie Thanks for all help with Omron HostLink Serial Protocol.

I've just run into another problem. I'm unable to read/write W bits from AHMI3.99t Version. Any help or work around that would help me read and write would be appreciated.

aquilmustafa

  • Full Member
  • ***
  • Posts: 121
    • View Profile
Re: Omron HostLink Serial Read/Write W0.0 bits problem
« Reply #1 on: January 16, 2017, 05:25:57 AM »
Hi Guys,

Anyone with solution/ideas/Work around on how to read/write W registers in Omron cp1e with host-link serial protocol.
I'm unable to use start and stop in my application due to this problem..

Any help will be appreciated.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Omron HostLink Serial Read/Write W0.0 bits problem
« Reply #2 on: January 16, 2017, 08:05:24 AM »
I haven't had a chance to test this yet, but the W register space is supported by the driver.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Omron HostLink Serial Read/Write W0.0 bits problem
« Reply #3 on: January 16, 2017, 09:45:31 PM »
I do not see where the W area is supported by the Host Link protocol. If you look at the table in Section 1-2 starting on page 2 (PDF page 24) of the following document:

https://www.myomron.com/downloads/1.Manuals/PLCs/CPUs/W342-E1-14%20CS_CJ_CP+HostLink%20FINS%20ReferenceManual.pdf

You will see all of the header codes for C-Mode (Host Link). The W area is not even listed.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Omron HostLink Serial Read/Write W0.0 bits problem
« Reply #4 on: January 16, 2017, 09:52:36 PM »
Also see the 2nd post by Michael Walsh where he says the W area is not supports by Host Link:

http://forums.mrplc.com/index.php?/topic/22594-nt-link-vs-hostlink/

To access the W area, you would need to use the FINS protocol if your PLC supports it.

aquilmustafa

  • Full Member
  • ***
  • Posts: 121
    • View Profile
Re: Omron HostLink Serial Read/Write W0.0 bits problem
« Reply #5 on: January 17, 2017, 10:58:49 PM »
Hi,
Thanks for the reply.

But question is in PLC I can use input registers as bits to start/stop outputs.
Can the same be replicated in AHMI to write to i/o
« Last Edit: January 18, 2017, 01:42:44 AM by aquilmustafa »

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Omron HostLink Serial Read/Write W0.0 bits problem
« Reply #6 on: January 18, 2017, 02:13:51 AM »
Maybe I don't understand the question. Why don't you use the CIO space instead of the W space?

aquilmustafa

  • Full Member
  • ***
  • Posts: 121
    • View Profile
Re: Omron HostLink Serial Read/Write W0.0 bits problem
« Reply #7 on: January 21, 2017, 11:04:36 PM »
Hey Archie,

I tried using CIO by providing PLC Address for color change and Click events. But only color change event works, PLC Address Click event does not perform any write function.

By the the address format that i'm using for CIO is 9.01, 6.05 and etc..

Would like to see CV-Hostlink driver included in AHMI sometime in future..

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: Omron HostLink Serial Read/Write W0.0 bits problem
« Reply #8 on: January 22, 2017, 09:08:15 AM »
Try an address that you know for sure is out of the physical IO range, such as 100.0