Search the Community

Showing results for tags 'java'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 3 results

  1. GX Works2 Q Series TCP issues

    Hey guys, been looking around for a solution and I was brought here.  I'm a programmer at a place that just put in a bunch of these Mitsubishi Q series QJ71e71-100 ethernet controllers.  I wrote a TCP server in Java to try and talk to them.  I'm trying to get data sent over from a little GOT1000 test terminal.  The zp.open command is working fine and i'm seeing a good syn-ack handshake, and if i push some text to the plc from the program I get a response (even if it is always the same nonsense).  but when i try to use the zp.send it fails, I get error C1A6 on the ladder program and the q series lights up the comm error light.  I know I'm being super vague here, I was just hoping to gain some insight.  I don't much know what to expect from this forum if you guys are active or if my question even has an answer but i've been banging my head against the wall for days now.  I'm just using a tutorial program from the q series manual and a super basic tcp handler in java.  If there's any other information I can provide let me know.
  2. Hi Everybody, I would like to get the Connections from an AB CompactLogix L32 with CIP. I can see these connections on the web interface. According to the CIP Vol1 v3.3 documentation I have created a reqest in java which requests the first instace of the  Connection Manager Object with Get_Connection_Data service. I captured the sent and the received packets with wireshark. I would like to ask the following: 1.) Is this the correct way to request the connections from the PLC with CIP? 2.) The response says that "Service not supported", is it possible that the PLC does not support this service or there is problem with the request? 3.) Is there any other way to get the connections (I/O and Message) from the PLC with a CIP reqest? Thanks for the answers in advance.
  3. I am trying to communicate with Omron PLC CP1E-N40DR-A over USB-to-RS232 cable, using a Java program. Following is my basic code— public void startComm() { PrintStream os; 
try {
 CommPortIdentifier portId = CommPortIdentifier.getPortIdentifier("COM4"); SerialPort serialPort = (SerialPort) portId.open("MyApp", 2000); serialPort.setSerialPortParams(9600, SerialPort.DATABITS_7, SerialPort.STOPBITS_2, SerialPort.PARITY_EVEN);
 os = new PrintStream(serialPort.getOutputStream(), true);

 os.print("@00WD0620007050*");
 os.print("\r");
 } catch (IOException e) {
 e.printStackTrace();
 } catch (PortInUseException e) { e.printStackTrace(); } finally {
 if (os != null) os.close(); } } This code produces no effect on the DM area. In this code I am trying write “0070” at location “0620”. The connector and its driver are alright because CX-Programmer is working fine using the same cable. Any pointers for this would certainly help me. Thanks