Author Topic: Omron & serial FINS  (Read 2483 times)

mirkoelettronics

  • Newbie
  • *
  • Posts: 15
    • View Profile
Omron & serial FINS
« on: May 12, 2017, 12:42:29 PM »
Hello to all

I'm trying to connect to the Omron CJ1M PLC by serial with FINS commands.
From the PLC sending 10 channels D0100 to D0109 all with "FFFF"

On HMI I set OmronSerialFINSCom1 driver on com1 115200,7, E, 2 (same on plc) or tried also 9600,7,E, 2.

In digitalPanelMetr objects I set to PLCAddressValue D100 or 100 or 1
But I do not receive anything.
What value should I set in this field?

The com1 serial is active and verified with port sniffer

Thank you

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Omron & serial FINS
« Reply #1 on: May 13, 2017, 10:35:34 AM »
Here is the method I use

- Using CX-Programmer, use Auto-Online to find the correct settings.
- Completely exit CX-Programmer to allow AdvancedHMI to gain access to the serial port
- In the driver properties, enter the parameters that were discovered by CX-Programmer

mirkoelettronics

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Omron & serial FINS
« Reply #2 on: May 14, 2017, 02:35:45 AM »
Thanks for the reply, I read this    http://advancedhmi.com/forum/index.php?topic=959.msg5000#msg5000

Do I have to make the same fix or have the driver been fixed?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Omron & serial FINS
« Reply #3 on: May 14, 2017, 08:50:27 AM »
Are you using version 3.99w ? If so, those fixes are already done.

mirkoelettronics

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Omron & serial FINS
« Reply #4 on: May 15, 2017, 12:31:10 PM »
Like the 3.99
How do i set TreadDataAsHEX ?
end the Target Network Address  , node address , unit address on comunication setting Omron Serial FINS Are the addresses that AHMI uses to answer or read?

With the PLC I transmit to Network destination 1 Node 2 and Unit 0

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Omron & serial FINS
« Reply #5 on: May 15, 2017, 01:34:22 PM »
With the PLC I transmit to Network destination 1 Node 2 and Unit 0
What do you mean when you say you transmit with the PLC?

mirkoelettronics

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Omron & serial FINS
« Reply #6 on: May 15, 2017, 01:44:53 PM »
I send words from plc to visualize them on AHMI as the voltmeter.
This to start checking out communication, after being sure of this I will start developing my project

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Omron & serial FINS
« Reply #7 on: May 15, 2017, 02:11:17 PM »
The driver reads from the PLC, it is not necessary to have the PLC transmit. It will actually cause problems.

mirkoelettronics

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Omron & serial FINS
« Reply #8 on: May 15, 2017, 02:25:18 PM »
Are you sure ? You have experience of non omron serial FINS, from what I read in the manual you need to have send and receive commands

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Omron & serial FINS
« Reply #9 on: May 15, 2017, 02:50:29 PM »
I've done quite a few projects using different Omron PLCs an I never had to program anything in the PLC. Just 2 weeks ago I did an application talking to a CS1 using FINS over Ethernet.

mirkoelettronics

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Omron & serial FINS
« Reply #10 on: May 15, 2017, 03:05:47 PM »
Ok thanks, i start to try but i am with serial connection.
I think it should not change much.

Regarding the network and node to set up?

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Omron & serial FINS
« Reply #11 on: May 15, 2017, 03:13:12 PM »
Are you bridging across multiple networks? If not, those settings should remain at default

mirkoelettronics

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Omron & serial FINS
« Reply #12 on: May 15, 2017, 06:47:42 PM »
I'm connected directli with a serial cable between plc and pc, with this configuration:

PC side              PLC side
2----------------------2

3----------------------3

7---                    ---4
     I                   I
8---                    ---5

5----------------------9

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5262
    • View Profile
    • AdvancedHMI
Re: Omron & serial FINS
« Reply #13 on: May 15, 2017, 06:48:44 PM »
AdvancedHMI will use the same cable that works with CX Programmer. Does your cable work with it?

mirkoelettronics

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Omron & serial FINS
« Reply #14 on: May 15, 2017, 07:10:46 PM »
I still have no connection.

But as soon as I turn on the PC without starting any program I see the communication led, 1 flash per second, on the plc flash.
Connected osilloscope, I saw a signal coming from PC from com1