Mitsubishi PLC connection issue.

chandrapal

Member
Join Date
Jan 2018
Location
Hyderabad
Posts
4
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;
}
 

Similar Topics

I am trying to connect a Kinco HMI (T070) with the PLC of Mitsubishi (fx1s) but I want to know how can I add PLC tags to HMI Buttons (when I will...
Replies
4
Views
2,946
Hello everybody. My FX3u PLC doesn't turn ON, I connect to 24Vdc and nothing, not even the POWER led :( (I did connect the wires in the correct...
Replies
3
Views
3,032
Dear sir, I need to connect my encoder with mitsubishi PLC and take the encorder values to plc . My item specifications are as below. PLC is Q...
Replies
6
Views
3,751
Hi, I changing my touch Screen From F900 to GT16, for two of my PLC's, One is FX1N, & other is A1SHCPU, i know both i using RS 422 to...
Replies
0
Views
1,552
I need to network two plc's using QJ71E71-100.please help me on hardware and programming samples.,thankz guys.
Replies
13
Views
3,218
Back
Top Bottom