Simon27

MrPLC Member
  • Content count

    14
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Simon27

  • Rank
    Sparky
  • Birthday 02/10/79

Contact Methods

  • Website URL http://

Profile Information

  • Location Evreux
  • Country France
  1. electronic scale ith RS232

    Here it is. Thanks for your help Simon M0901_Poste_de_pr_paration_colle.zip
  2. electronic scale ith RS232

    Hi, Sorry for my silence, i was quite busy these days... I still haven't succeeded in making those #$µ& devices communicate... Here's where I am : - When plugging PLC and scale together, the LED flickers, bit A392.13 is on... but I cannot get any value from the scale when sending request ("s") - When plugging PC and scale, everythin works perfectly (when I send an "s" (Hex73), i get the value from the scale). Note : it works the same with "S" (Hex53) - I have also tried to connect PC and PLC in order to watch what is emitted by the PLC. But the LED is not lit, bit A392.13 stays off and of course I don't see anything in Windmill Parameters : - 9600, 8, 1, N - CR+LF - Control word #100 - In RXD Val_balance is Adress D100 (there's no value in the following addresses) Questions : - Do you know if there's a way to watch the serial output of the PLC ? - What is the exact signification of bit A392.13 (Ready to send port#1) ? Why is it off when I plug the PC ? - Any other ideas ? Thanks in advance. Simon
  3. electronic scale ith RS232

    Hi there, Sorry for my absence, I was away for a while and I'm just starting to work again on this application. I have set the scale to "Send request - Read Response" mode. It needs an "s" (+ CR and LF) as send request. I've done the same programme as Pawel's, but it still doesn't work. I've attached the com port settings, and a view of the program screen. As it didn't work when I set "CR+LF" as end characters, I've stored value #00730D0A (s + CR + LF) in variable D150 that I send. Do you think I'm on the right way ? I've already programmed OMRON PLCs, but I'm not skilled with serial data transmission, so maybe I'm totally misunderstanding... Or is this application very complicated ? Thanks for your help Simon
  4. electronic scale ith RS232

    Hi guys, Just a few questions : - are A392.14 and A394 standard variables ? I have found them in the CP1 programming manual but they were not specified as standard variables in my program. - I have modified my program exactly the way ParaffinPower showed, but nothing happens. It seems that A392.14 never turns On Did I miss something ? I guess I'll have to remove lots of characters (including the "-" ) to convert the value, but I'll look at it afterwards. Edit : In fact, having a look at A392.15 (Overflow), I've realised that, when I restar port#1 (bit A526.01), A392.14 turns on and A392.15 also turns on imediately. From the programming manual : Overflow bit : ON when a data overflow occurred during reception through a serial port in no-protocol mode. When the number of bytes was specified: ON when more data is received after the reception was completed but before RXD(235) was executed. When the end code was specified: ON when more data is received after the end code was received but before RXD(235) was executed. ON when 257 bytes are received before the end code. I think it can be because the scale sends data constantly (data transmitted after the end code), do you agree ? In this case I could use the same principle as Pawel's application (send command - read response). I wish I could avoid this, but for the moment I can't see any other solution.
  5. electronic scale ith RS232

    Thanks Pawel, By reading the CP1L documentation, I've realised that only port #1 can use the non-protocol mode which is necessary in this case. I've swapped port #1 and 2 and now I get value ' 0.' It doesn't change when I change the weight on the scale. I guess it's not far from working, maybe the key is in the parameters of the RXD instruction. So I just have a question about the control word. I've seen that you use the value #0, but It seemed to me that you have to specify the number of the serial port you are using (#0100 in my case). Am I wrong ? By the way, what is the data type of your receive word (D140) ? Thanks, Simon
  6. electronic scale ith RS232

    See the screenshot attached. Bytes 1 to 3 (non visible) are blank. Thanks Simon
  7. electronic scale ith RS232

    Okay, so, I also swapped 2 & 3 on my cable between PLC and scale, and I get the LED lighting. BUT... I still can't read any value in the variable I specified in the RXD instruction. Only " is indicated. - Do you think it could be a parameter error ? - What size should I specify for this incoming string ? Do I have to include CR and LF in this string size ? Thanks for your help Simon
  8. electronic scale ith RS232

    I swapped 2 & 3 and it works. I'm going to check the cable between scale and PLC. Thanks for your help Simon
  9. electronic scale ith RS232

    Hi, I've tried with Hyperterminal and Windmill, I can't get any characters. Here's the pinout of the cable I used : Scale PC 2 : TXD --- 3 : RXD 3 : RXD --- 2 : TXD 5 : GND --- 5 : GND Should I connect other pins ? This thing is quite annoying Before doing anything else I would like to check that the scale is OK (It's brand new so it should be) and that the settings are OK too...
  10. electronic scale ith RS232

    OK I'll try this. By the way, what do you mean by "CIF" ?
  11. electronic scale ith RS232

    Hi, The pinout I use was indicated in the scale's manual. Here it is : Pin 2 : TXD Pin 3 : RXD Pin5 : Signal ground I'll try with hyperterminal or windmill if I can get the appropriate cable. Which light is supposed to be lit ? Is it the one on the extension serial board ? Thanks for your help !
  12. electronic scale ith RS232

    Hi there, I'm developping a similar application, with a Omron CP1L (with 2 serial extensions) linked to a KERN 440 scale via RS232. I'm using serial 1 for a NS5 screen and serial 2 for the scale. Here are the specifications of the scale : RS232 parameters : 9600bauds, 8 bits, 1 stop, parity none The weighing values are sent automatically and continuously, no matter if the value is stable or unstable. Format for stable values for weight 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 B* B B B B B B B B 0 . 0 B g B B CR LF Format in case of fault 1 2 3 4 5 6 7 8 9 10 11 12 13 14 B B B B B B B E r r o r CR LF Format for unstable values for weight 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 B* B B B B B B B B 0 . 0 B CR LF SYMBOLS: B* = blank or M B / 0 /. = blank / weight values / decimal dot, depending on the measuring Value g = weight unit / unit / % E, o, r = ASCII code or “E, o, r” CR = carriage return symbol LF = line feed symbol I guess I'll have to extract the significant characters in order to convert this string to a numeral value (without the "g" and "."). My problem is that, with the PLC set to the right parameters, I can't get any string from the scale. Communication with the NS5 is OK. I have used RXD instruction, with "#0200" set as control data. I don't have to use TXD since the scale is set for continuous data transmission. I have already used OMRON PLCs communicating with NS, but never used TXD / RXD instructions. Could you tell me if I have forgotten anything, or explain me how I could check that the scale is transmitting ? Thanks in advance.
  13. Problem Using data block on NS5

    Thanks a lot for your help. Il have used Andy's solution and it works perfectly. Simon
  14. Hi there, I wish to use data block features with NS5 and CJ1M on an application. Everything works fine. However, i still have a problem : I have two screens : - a technician screen where you can add new entries, delete, modify, etc. (with password) - a production screen with read only capabilities, which is used to select a product and transfer its parameters to a PLC My problem is that on this second screen, I can still edit the label of the entry, which I want to avoid. If I disable the input on the control flag page, I cannot select nor transfer from the table anymore... Is there another way to obtain this functionality ? Thanks for your help.