DaveHarbon

MrPLC Member
  • Content count

    13
  • Joined

  • Last visited

Community Reputation

0 Neutral

About DaveHarbon

  • Rank
    Sparky

Profile Information

  • Country United Kingdom
  1. Socket Services

    Thanks EasyButton, i'll give this a whirl, Cheers Dave
  2. Socket Services

    Have have an ETN module for my CJ PLC that is talking to some displays (numeric) via socket services over ethernet. There are three displays with different addresses and one of them keeps locking out. The socket services error I get back is 0053 "Error in communications with remote node (ETIMEOUT) or remote node does not exist". Now I might have a display problem here, i'm going to swap them round and see if the fault moves. I'm on with that. Is there anyway of resetting the ETN unit in PLC ladder? I could trap the error if it occurs and simply reset the unit. Or is there any less basic way of resetting the socket other than closing and reopening? Many thanks, Dave
  3. Ethernet Comms

    PMCR I've had a go with your sample code (very good) and I have the same problem. I see your code is "keep the socket open orientated" which I altered slightly to switch on and off with my program flow. When you close the socket and then try to open it again, I get a problem. It's as if the socket not shutting down entirely. I think I have issues here with the ethernet unit that I have for the demo display I have a the moment. I take delivery of the actual panels tomorrow. I'll talk to them about the problem. Many thanks for the help with the code. It was nice to see how it's done properly. I'll let you know how I get on, Cheers Dave
  4. Ethernet Comms

    Temperature_Display.bmp Hello PMCR, I figured that this might be the case. The application i'm developing reads temperature from a pyrometer via RS485 and then displays the infromation of a LED screen. The process is for forging metal and largely the system will be left idle. There three sets of pyrometers and LED displays on the one PLC. I envisaged switching the system on and starting to read via a HMI, opening the TCP port (Active) sending the data every second and then closing the port down after the process is complete. So the duty is very small. I've setup my HMI to effectively system run and open the TCP port, send the data and close. The close and send data appear OK, bu I can't consistently open the TCP port. I get an error that the port has been open before. My display equipment has an LED indicator on it that allows me to see when the port is open or closed. So i'm pretty sure that it's closing properly. Any idea's what I might be doing wrong here? Many thanks, Dave
  5. Ethernet Comms

    I've been toying around with socket services and I'm trying to get away from the omron function blocks as they are a little cumbersome. I have an issue at the moment with a response coming back from an Active open. I either get 0049 (The same port number has been specified more than once) or 2210 (The specified socket has not been connected). I'm developing my aplication to only open the socket when I need to, and send the data every second to update some LED displays (there will be upto three connections/displays). Do I really have to select a different local port number every time? Many thanks Dave
  6. Serial Comms

    Thanks PMCR That's got it, it looks like i've been trying to use a sledge hammer to crack a nut. I've not done serial comms before and thought it might be better using a FB to ease the code, but like you say, it's even more simple and easier to use the basic commands! Many thanks for this and everybody else's help, Great forum, great help - Cheers Dave
  7. Serial Comms

  8. Serial Comms

    Thanks PMCR, Will this work with the Omron _CPU015_TXD function block as this uses TXD in the function not RXDU as in the in the case of the CS/CJ unit? I'm a little unclear about this. Cheers Dave
  9. Serial Comms

    Hi PDL, Yes, i've got the manual and realised that this is where the indicator is for local unit ready to receive. Thanks Interestingly it's 1500 + (25x1) + 17 bit 8 as i'm using port 2. I can see the RD2 light flicker (At about the SD2) but i'm still having trouble receiving the data. Is it possible my data coming back is corrupt? Dave
  10. Serial Comms

    I'm doing some serial comms to a non Omron temperature analyser at the moment using a SCU41-V1 (set up as unit 1) using port 2 seial using a ciff11 adaptor to RS 485. I'm having trouble finding in any of the manuals the ready to receive bit following a Send from Serial Port (Omron _CPU015_TXD function block). There is a completion flag on this function block but this is obviously not the same time period of the received data. My understanding is that the data string is received at an input buffer and then you can receive the data with the _CPU014_RXD function block. I need to check that the data has been received before I call the receive function. Sorry, My config is CJ1M+CPU13+ETN21(Unit0)+SCU41-V1(Unit1) Many thanks Dave
  11. Ethernet Comms

    Hi PMCR, Yes, I've used DM and now got it working, I was confusing my translation of ascii to hex i.e. 02 ascii is 30 32 hex and not 32 hex as I was using, Many thanks for your help Dave
  12. Ethernet Comms

    You are correct, the screens are not Omron products and I do need to use socket services, i've changed my hardware today to CJ1M CPU13 + ETN21 module that supports socket services. Im having a little more progress at the moment, i'm a little unsure though how to send ascii data. I assume that this needs to be in hex in the D memory? Many thanks for your reply
  13. Ethernet Comms

    I have a project at the moment to measure temperature of products (3) and display the information on some bespoke LED screens (3). The screens I have ordered are sat on the ethernet network and are controlled by sending ASCII data to them. The ASCII data contains the serial control, address and charachter data (the displays are controlled serially after the ethernet interface). Can I use the network SEND(090) command to send the data to a device on the ethernet network (same local network 1) of will I have to go down the route of using function blocks and open a socket/send data using the Omron function block library for the ETN module? Many thanks in advance Cheers Dave