shanu

MrPLC Member
  • Content count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

1 Follower

About shanu

  • Rank
    Hi, I am New!

Profile Information

  • Country India
  1. Dear shanu, i'm trying to use your C# program for PF3000/4000 , but i tested it for PF6000,  it does not working properly, kindly, what's wrong with this ? thank you

  2. Atlas Copco OpenProtocol

    Need Support and sample for reading Torque data from power focus 3000/4000. Iam using C#.Net here is my sample program this works fine i want to know the format to get torque data . i have 4 batch count and i need to read 4 Torque data and ok signal and final n*ok signal. this is my sample program this works fine i send 0001("00200001000000000000#") and i receive "00570002 010000020003" .this works fine . I want to know the format for. 1) reading Tourque data . 2) Current Batch no. 3) Ok,NOK and n*Ok signal from powerfocus 3000/4000. my sample program here. Socket server = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); IPEndPoint ip = new IPEndPoint(IPAddress.Parse("10.126.225.44"), 4545); String szData ="00200001000000000000#"; byte[] byData = Encoding.Default.GetBytes(szData);//System.Text.Encoding.ASCII.GetBytes(szData); int sent = server.Send(byData, SocketFlags.None); byte[] bytesFrom = new byte[1025]; int iRx = server.Receive(bytesFrom); string dataFromClient = System.Text.Encoding.ASCII.GetString(bytesFrom); MessageBox.Show(dataFromClient.ToString());