Author Topic: Omron CJ2 FINS, what address?  (Read 2801 times)

montanarin

  • Newbie
  • *
  • Posts: 4
    • View Profile
Omron CJ2 FINS, what address?
« on: September 17, 2015, 08:29:47 AM »
Hi all,
i have some problem while using advanced hdmi developer environment. I should comunicate with Omron CJ2M using FINS protocol, so i have added the OmronEthernetFINSCom1 control (protocol Type TCP), DNA and Node at '0'.
Then i added a digitalpanelMeter, but i can't read the memory, e.g. DM400. Which properties i have to fill in the digitalpanelMeter Control? And which format to read DM400 (Data Memory in Omron protocol)?

Thanks for help.
Matteo M.

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: Omron CJ2 FINS, what address?
« Reply #1 on: September 17, 2015, 08:35:53 AM »
Try D400 in PLCAddressValue

montanarin

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Omron CJ2 FINS, what address?
« Reply #2 on: September 17, 2015, 08:51:07 AM »
Archie...
i have tried: D400, DM400, D400.0 .. none effects. The DigitalPanelMeter labelling also '0'.
any other suggestion?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: Omron CJ2 FINS, what address?
« Reply #3 on: September 17, 2015, 08:56:18 AM »
Try a BasicLabel and PLCAddressValue set to D400 to see if it shows any error. If that doesn't wprk, can you use Wireshark to capture the Ethernet traffic?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: Omron CJ2 FINS, what address?
« Reply #4 on: September 17, 2015, 09:05:22 AM »
Also try the UDP protocol. Not many controllers support the TCP

montanarin

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Omron CJ2 FINS, what address?
« Reply #5 on: September 17, 2015, 09:23:08 AM »
Archie...
setting the protocol at TCP, in wireshark protocol column there is "UDP" label.
then If i changed the protocol to UDP, in wireshark the column labelling "OMRON" and the control read correctly.

So the question is, i am using TCP setting UDP or not?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: Omron CJ2 FINS, what address?
« Reply #6 on: September 17, 2015, 10:00:21 AM »
The UDP/TCP setting does switch between the 2 different protocols. The original driver was developed and tested on a CP1H controller with only TCP. It was soon discovered that other controllers would not respond to TCP even though it had settings for it in CX-Programmer. Every controller tested so far works with the UDP protocol, so I'm not sure when TCP would ever be needed.

I'm not sure why you see UDP in WireShark when set to TCP unless it is coming from other software like CX-Programmer. Apparently WireShark recognizes the protocol when it is UDP, therefore showing the label OMRON.

montanarin

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Omron CJ2 FINS, what address?
« Reply #7 on: September 17, 2015, 10:45:14 AM »
Archie..
thanks for help, CJ2 is working.
I would like to communicate with an NJ (Omron) PLC; i should use an EtherNet/IP driver.
Is the EIP Driver in AB folder useful also for Omron (i have read this in a past post). Anyway have you written an Omron EIP driver?

Thanks for help

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5269
    • View Profile
    • AdvancedHMI
Re: Omron CJ2 FINS, what address?
« Reply #8 on: September 17, 2015, 10:54:04 AM »
The Ethernet/IP drivers are based on commands to read tags from AB PLCs. Unless the Omron mimics those same commands, the driver will not work.

Does the NJ not support FINS?