You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Reply
 
Thread Tools Display Modes
Old January 27th, 2018, 09:55 AM   #1
chandrapal
Member
India

chandrapal is offline
 
Join Date: Jan 2018
Location: Hyderabad
Posts: 4
Mitsubishi PLC connection issue.

Hi all,

I new to here and new to PLC. Basically i am an software engineer.In my project i am using Mitsubishi PLC(CPUModel Q03UDV) is to exchange the data. I am connect with mxComponents software.Below is my code to connect.I am able to connect and exchanging the data successfully,But after 30 mins its automatically disconnecting.
Communication type is Ethernet.

Can anyone please help on this,I am badly stuck here.

private void PLCconnect()
{
int iReturnCode;
int iLogicalStationNumber;
if (PGetIntValue(1, out iLogicalStationNumber) != true)
{
return;
}
axActUtlType1.ActLogicalStationNumber = iLogicalStationNumber;
// axActUtlType1.ActPassword = txt_Password.Text
iReturnCode = axActUtlType1.Open();
if (iReturnCode == 0)
{
//Connected
lblStatus.Text = "Connected";
lblStatus.ForeColor = Color.Green;
// tmrPLC.Start();
}
else
{
//Not Connected
lblStatus.Text = "Not Connected";
lblStatus.ForeColor = Color.Red;
}
}

private bool PGetIntValue(int lptxt_SourceOfIntValue, out int iGottenIntValue)
{
iGottenIntValue = 0;
//Get the value as 32bit integer from a TextBox
try
{
iGottenIntValue = Convert.ToInt32(lptxt_SourceOfIntValue);
}

//When the value is nothing or out of the range, the exception is processed.
catch (Exception exExcepion)
{
MessageBox.Show(exExcepion.Message,
Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
return false;
}

//Normal End
return true;
}
  Reply With Quote
Old January 27th, 2018, 11:00 AM   #2
chandrapal
Member
India

chandrapal is offline
 
Join Date: Jan 2018
Location: Hyderabad
Posts: 4
Waiting for reply....
  Reply With Quote
Old January 27th, 2018, 11:43 AM   #3
lfe
Member
France

lfe is offline
 
Join Date: Jun 2007
Location: France
Posts: 61
Force a reconnection before the 30 min timeout expires.
  Reply With Quote
Old January 27th, 2018, 11:59 AM   #4
Ronnie Sullivan
Member
United Kingdom

Ronnie Sullivan is offline
 
Join Date: May 2010
Location: London
Posts: 414
Demo mode.
  Reply With Quote
Old January 27th, 2018, 12:21 PM   #5
chandrapal
Member
India

chandrapal is offline
 
Join Date: Jan 2018
Location: Hyderabad
Posts: 4
Please tell how i can overcome this...!
  Reply With Quote
Old January 28th, 2018, 03:00 AM   #6
chandrapal
Member
India

chandrapal is offline
 
Join Date: Jan 2018
Location: Hyderabad
Posts: 4
if its in Demo mode, what i can do..and how i can proceed.Please help on this.
  Reply With Quote
Old January 28th, 2018, 06:19 AM   #7
the_msp
Lifetime Supporting Member
United Kingdom

the_msp is offline
 
the_msp's Avatar
 
Join Date: May 2008
Location: Northern Ireland
Posts: 568
Purchase the full version?
__________________
Regards,

Patrick

https://www.youtube.com/user/MrMatrixEngineering
  Reply With Quote
Old January 29th, 2018, 05:37 AM   #8
Ronnie Sullivan
Member
United Kingdom

Ronnie Sullivan is offline
 
Join Date: May 2010
Location: London
Posts: 414
I think the penny has dropped.
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
WinCC 7.4 loses connection with PLC if alarms are used toont LIVE PLC Questions And Answers 2 October 5th, 2017 09:51 AM
Interface between Beckhoff PLC and Mitsubishi Robot controller SaJan LIVE PLC Questions And Answers 0 April 3rd, 2013 07:48 AM
Network connection in Step 7 - S7400 PLC to WinCC OS cfbosch LIVE PLC Questions And Answers 1 November 7th, 2011 12:57 AM
ethernet connection between siemens PLC and hitachi PLC arocon LIVE PLC Questions And Answers 7 June 11th, 2011 06:41 AM
PLC to PLC Communication (Mitsubishi FX2N) c0met LIVE PLC Questions And Answers 6 May 31st, 2004 07:31 PM


All times are GMT -5. The time now is 12:20 AM.


.