kevilay

MrPLC Member
  • Content count

    12
  • Joined

  • Last visited

Community Reputation

1 Neutral

About kevilay

  • Rank
    Sparky

Profile Information

  • Country Canada
  1. Issue Converting to String

    Hey Guys, I am saving some stuff to a memory card on a cj2m PLC. Barcode, P for pass f for fail, value It would should look like B12345 P 1790 However where I am having an issue is with the value. The data is a DINT and currently I am testing with a value of HEX 6FE, DEC, 1790, Binary 110 1111 1110. I am using a STR8 function to convert from the dint to a string however I end up with the HEX value (Shown Below). I tried an ASC function as well but ended up with a similar result. B12345 P 6FE Any ideas how to get the decimal value instead of the hex value.   Thanks, Kevin 
  2. So the issue was with specifying the array position. In the example it called an variable that was an array but in the block it called the variable without an array specifier. This is inncorect it needed to be variable[0]. I never tried this because their example was not done this way. For some reason on the read it will work with or without the [0] however on the write it is critical to have the [0]. Thank you everyone for your help. Consider this issue closed.
  3. Thanks for that suggestion with the CIPUCMMSend I was able to successfully read in the data. It is reading in 44 bytes (22 uints) the data lines up properly with my generator manual and the physical data read in matched in the MAG software. However when I am populating my servicedat and len to do a write (its a read write parameter) I get an error #0419. I did find an error manual online and that is an incorrect data type error. But you can see in my picture I have two identical arrays I just moved what I read in to the service dat and attempted to send it. We are so close! Any suggestions    Good catch. So I was using the wrong service code when trying to set the attribute. I have corrected that but still getting a 0419 datatype error. I did also try changing it from 22 uints to 44 bytes for the result data and the send data. Then send 44 elements. Both ways I am still getting the same error. But everything reads in correctly. So strange
  4. Thanks for that suggestion with the CIPUCMMSend I was able to successfully read in the data. It is reading in 44 bytes (22 uints) the data lines up properly with my generator manual and the physical data read in matched in the MAG software. However when I am populating my servicedat and len to do a write (its a read write parameter) I get an error #0419. I did find an error manual online and that is an incorrect data type error. But you can see in my picture I have two identical arrays I just moved what I read in to the service dat and attempted to send it. We are so close! Any suggestions     
  5. So I did find it in a different manual after doing some searching 02 is the correct choice. It is depending on what ethernet port you are using and if it the CPU port or a different card on the rack. However I am still not having luck!    I am going to try the CIPUCMMSend instruction now. I thought originally this was just for PLC to PLC comms.
  6. So I did find it in a different manual after doing some searching 02 is the correct choice. It is depending on what ethernet port you are using and if it the CPU port or a different card on the rack. However I am still not having luck! 
  7. Hello Guys, I am using a nx102-9000 CPU and trying to communicate explicitly to a Telsonic Mag Generator. I have done this on a CJ2M & an Allen Bradley Processor successfully before but am struggling with sysmac. I will attach some screen shots of the AB message instruction because it is much more simple then the CJ2M (required pretty much a full function block made). If anyone wants to see the CJ2M block let me know. I am working right from the sysmac manual using the CIP OPEN, READ, SEND, & CLOSE. Once it is working I will write as well.  I am getting stuck right on the first part "CIP OPEN" I am using a route of '02\10.203.21.40' I am unsure what the 02\ means. I am just copying it from the example. The IP Is correct. Below is the picture of my 1C05 Error. Which in the manual is confusing because they have a 1C error and an 05 error separately.  Another question (once i can open a connection) is in the CIPRead the 'srcdat' I am not really sure what this is? Everything i've used before is an instance number, class, and attribute number (used in the CIPSend Logic From Allen Bradley MSG Instruction & Current Sysmac logic shown in pictures as well. Please let me know if you have any suggestions or need any additional information. Thanks, Kevin
  8. I did notice this as well, as soon as the instruction turns on, it does turn the DN on right away. Even tho it is still jogging.
  9. I am trying to get this working however I am getting an error 23 on the MCD instruction. I am not sure how to reset it? or if it is configured wrong. Any Suggestions? For Testing I am using the exact same parameters as my MAJ, which is working correctly.    Error # 23 An instruction attempted an illegal change of dynamics. Illegal Dynamic Change   Thanks, Kevin
  10. Hey Guys,   I am trying to use a motion jog instruction with an AB kintex servo. However I want the jog speed to be dymanic. I am controlling the speed with an analog feedback from a tensioner. I have my speed set as a tag and it is working correctly. However I am having to blink the jog command to get the speed to update. Is there a better way to constantly monitor speed in a jog instruction? or a better instruction to use?
  11. Hello,   I am working with a et200s im151-8 PLC and for some reason anytime any of my devices plugged into the ethernet switch are removed the PLC goes into stop mode. I have fault logic for any lack of communication so I want to not have my PLC go into stop mode. How can I change this.    Thanks for your help, Kevin