Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - trung.bui

Pages: [1]
1
Support Questions / Re: EthernetIPforCLX driver: Communication Fault code
« on: February 26, 2019, 12:21:17 AM »
No sir, i changed PollRateOverride to 2000 ms already to test with L73 controller. PollRateOverride = 0 is for pressure test with SoftLogix controller only.
Could you please help give the idea to find the problem with those error code?
Thank you so much

2
Support Questions / Re: EthernetIPforCLX driver: Communication Fault code
« on: February 25, 2019, 11:12:41 PM »
hi, poll rate is 2 secs.
Think that is still ok to read? how can i detect it s because of network or because PLC refuse?
Thanks

3
Support Questions / EthernetIPforCLX driver: Communication Fault code
« on: February 25, 2019, 10:53:55 PM »
Hi,
When i read data from PLC, some time it cannot read and throw the exception (cannot communicate w PLC) but it's not frequent, only 1 or 2% the number of command (all are same command)
the error code is -22, 106, 34, 0.
How can i diagnose  the problem. Is this really because of the network?
Thank you so much!

Code: [Select]
2019-02-25 21:10:04;Id:-22;Desc:No Response from PLC(22)
2019-02-25 21:10:04;Id:0;Desc:EIPTransport.SendData-No Response
2019-02-25 21:11:56;Id:-22;Desc:No Response from PLC(22)
2019-02-25 21:12:06;Id:-22;Desc:No Response from PLC(22)
2019-02-25 21:31:18;Id:-22;Desc:No Response from PLC(22)
2019-02-25 21:36:08;Id:-22;Desc:No Response from PLC(22)
2019-02-25 21:36:29;Id:-22;Desc:No Response from PLC(22)
2019-02-25 21:36:33;Id:-22;Desc:No Response from PLC(22)
2019-02-25 21:37:57;Id:-22;Desc:No Response from PLC(22)
2019-02-25 21:38:13;Id:0;Desc:EIPTransport.SendData-No Response
2019-02-25 21:40:38;Id:-22;Desc:No Response from PLC(22)
2019-02-25 21:41:04;Id:-22;Desc:No Response from PLC(22)
2019-02-25 21:44:28;Id:0;Desc:EIPTransport.SendData-No Response
2019-02-25 21:44:28;Id:-22;Desc:No Response from PLC(22)
2019-02-25 21:48:33;Id:0;Desc:EIPTransport.SendData-No Response
2019-02-25 21:48:35;Id:-22;Desc:No Response from PLC(22)
2019-02-25 21:53:11;Id:0;Desc:EIPTransport.SendData-No Response
2019-02-25 21:53:13;Id:-22;Desc:No Response from PLC(22)
2019-02-25 21:53:22;Id:0;Desc:EIPTransport.SendData-No Response
2019-02-25 21:53:22;Id:-22;Desc:No Response from PLC(22)
2019-02-25 21:56:48;Id:-22;Desc:No Response from PLC(22)
2019-02-25 21:56:48;Id:0;Desc:EIPTransport.SendData-No Response
2019-02-25 21:56:52;Id:-22;Desc:No Response from PLC(22)
2019-02-25 21:58:35;Id:-22;Desc:No Response from PLC(22)
2019-02-25 22:00:08;Id:106;Desc:
2019-02-25 22:00:09;Id:-22;Desc:No Response from PLC(22)
2019-02-25 22:00:13;Id:-22;Desc:No response from Forward Open
2019-02-25 22:00:42;Id:106;Desc:
2019-02-25 22:00:44;Id:-22;Desc:No Response from PLC(22)
2019-02-25 22:00:48;Id:-22;Desc:No response from Forward Open
2019-02-25 22:04:52;Id:-22;Desc:No Response from PLC(22)
2019-02-25 22:05:06;Id:0;Desc:EIPTransport.SendData-No Response
2019-02-25 22:05:09;Id:-22;Desc:No Response from PLC(22)
2019-02-25 22:07:37;Id:-22;Desc:No Response from PLC(22)
2019-02-25 22:07:57;Id:-22;Desc:No Response from PLC(22)
2019-02-25 22:08:06;Id:-22;Desc:No response from Forward Open
2019-02-25 22:10:19;Id:-22;Desc:No Response from PLC(22)
2019-02-25 22:14:49;Id:-22;Desc:No Response from PLC(22)
2019-02-25 22:15:12;Id:-22;Desc:No Response from PLC(22)
2019-02-25 22:15:58;Id:-22;Desc:No Response from PLC(22)
2019-02-25 22:15:58;Id:0;Desc:EIPTransport.SendData-No Response
2019-02-25 22:16:00;Id:-34;Desc:Could not connect to 172.30.5.32, port 44818. Timed out
2019-02-25 22:16:02;Id:-22;Desc:No response from Forward Open
2019-02-25 22:18:43;Id:0;Desc:EIPTransport.SendData-No Response
2019-02-25 22:18:43;Id:-22;Desc:No Response from PLC(22)
2019-02-25 22:19:09;Id:0;Desc:EIPTransport.SendData-No Response
2019-02-25 22:19:09;Id:-22;Desc:No Response from PLC(22)
2019-02-25 22:19:32;Id:-22;Desc:No Response from PLC(22)
2019-02-25 22:21:27;Id:-22;Desc:No Response from PLC(22)
2019-02-25 22:24:08;Id:0;Desc:EIPTransport.SendData-No Response
2019-02-25 22:29:50;Id:106;Desc:
2019-02-25 22:29:52;Id:-22;Desc:No Response from PLC(22)
2019-02-25 22:29:56;Id:-22;Desc:No response from Forward Open
2019-02-25 23:01:24;Id:-22;Desc:No Response from PLC(22)
2019-02-25 23:05:57;Id:-22;Desc:No Response from PLC(22)
2019-02-25 23:07:20;Id:-22;Desc:No Response from PLC(22)
2019-02-25 23:14:44;Id:-22;Desc:No Response from PLC(22)
2019-02-25 23:19:48;Id:-22;Desc:No Response from PLC(22)
2019-02-25 23:20:02;Id:0;Desc:EIPTransport.SendData-No Response
2019-02-25 23:20:02;Id:-22;Desc:No Response from PLC(22)
2019-02-25 23:21:31;Id:0;Desc:EIPTransport.SendData-No Response
2019-02-25 23:23:55;Id:-22;Desc:No Response from PLC(22)
2019-02-25 23:23:55;Id:0;Desc:EIPTransport.SendData-No Response
2019-02-25 23:26:26;Id:0;Desc:EIPTransport.SendData-No Response
2019-02-25 23:27:41;Id:0;Desc:EIPTransport.SendData-No Response
2019-02-25 23:30:06;Id:106;Desc:
2019-02-25 23:30:08;Id:-22;Desc:No Response from PLC(22)
2019-02-25 23:30:12;Id:-22;Desc:No response from Forward Open
2019-02-25 23:32:56;Id:-22;Desc:No Response from PLC(22)
2019-02-25 23:34:45;Id:-22;Desc:No Response from PLC(22)
2019-02-25 23:34:53;Id:0;Desc:EIPTransport.SendData-No Response
2019-02-25 23:34:53;Id:-22;Desc:No Response from PLC(22)
2019-02-25 23:35:58;Id:-22;Desc:No Response from PLC(22)
2019-02-25 23:38:12;Id:-22;Desc:No Response from PLC(22)
2019-02-25 23:38:24;Id:-22;Desc:No Response from PLC(22)
2019-02-25 23:38:28;Id:-22;Desc:No response from Forward Open
2019-02-25 23:39:41;Id:106;Desc:
2019-02-25 23:42:03;Id:0;Desc:EIPTransport.SendData-No Response
2019-02-25 23:42:03;Id:-22;Desc:No Response from PLC(22)
2019-02-25 23:42:10;Id:0;Desc:EIPTransport.SendData-No Response
2019-02-25 23:42:13;Id:-22;Desc:No Response from PLC(22)
2019-02-25 23:46:17;Id:0;Desc:EIPTransport.SendData-No Response

4
Support Questions / Re: EthernetIPforCLX driver: SubscriptionID reset
« on: February 21, 2019, 10:08:59 AM »
Understood, last question:
So can i use
myArray = Read(array[0,0],1000)?
to read 1000 elements?
Data type is int
or need to split to read
Because i heard about 508 bytes limit?

Thank you!

5
Support Questions / Re: EthernetIPforCLX driver: SubscriptionID reset
« on: February 21, 2019, 09:28:16 AM »
Thank you for reply,
"_Event_buffer_PLC_ptr" is the pointer to indicate the start index to read in the array. It will change (increase) randomly and i will base on that value to read some of continuous values in the array. When "_Event_buffer_PLC_ptr" change i will read (_Event_buffer_PLC_ptr - Previous_Event_buffer_PLC_ptr) array data (some time data will be > 508 bytes)

Wonder is there any better way to read?
What happens when SubscsribeID exceed int.MaxValue?


6
Support Questions / EthernetIPforCLX driver: SubscriptionID reset
« on: February 21, 2019, 02:11:17 AM »
Hi bro,
I'm writing a console application using Subscription to trigger another Subscription but notice that after Unsubscribe the ID still count up. Is this normal or that subscription haven't unsubscribed and released?
Thank for your help!!
Code: [Select]
private static EthernetIPforCLX EthernetIPforCLXCom1;

        private static int SubscriptionID0;
        private static int SubscriptionID1;

        static void Main(string[] args)
        {
            EthernetIPforCLXCom1 = new EthernetIPforCLX();

            EthernetIPforCLXCom1.IPAddress = "192.168.137.134";
            EthernetIPforCLXCom1.ProcessorSlot = 0;
            EthernetIPforCLXCom1.PollRateOverride = 0;

            SubscriptionID0 = EthernetIPforCLXCom1.Subscribe("_Event_buffer_PLC_ptr", 1, EthernetIPforCLXCom1_SubscriptionDataReceived);
            EthernetIPforCLXCom1.SubscriptionDataReceived += EthernetIPforCLXCom1_SubscriptionDataReceived;
            EthernetIPforCLXCom1.SubscriptionDataReceived += EthernetIPforCLXCom1_SubscriptionDataReceived1;

            while (true)
            {
                Thread.Sleep(10);
            }
        }

        private static void EthernetIPforCLXCom1_SubscriptionDataReceived(object sender, PlcComEventArgs e)
        {
            //throw new NotImplementedException();

            SubscriptionID1 = EthernetIPforCLXCom1.Subscribe("_Event_data_buffer_array[0,0]", 1, EthernetIPforCLXCom1_SubscriptionDataReceived1);
           
        }

        private static void EthernetIPforCLXCom1_SubscriptionDataReceived1(object sender, PlcComEventArgs e)
        {
            //throw new NotImplementedException();
            //do st

            EthernetIPforCLXCom1.UnSubscribe(SubscriptionID1);
            Console.WriteLine(SubscriptionID1);
        }

Pages: [1]