Search the Community

Showing results for tags 'dint'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 6 results

  1. To Infinity

    Hello.  This is my first post and I hope someone has a solution. I have a program calculating Gal/sec adding to a running total and have up to the end.  Using REAL I can accumulate up to 16,777,216 (2^24) and using DINT up to 2,147,483,648 (2^31), but I need to have my registers continue past these limits.  I've read through many topics here and have tried the Rockwell Knowledge Base but can't seem to find a solution that truly works.  I have gone so far as to transfer the DINT to a string, cut the string into pieces and reassemble them in an Odometer type concatenation. If anyone has a suggestion, I would appreciate it.  I know I'm not the only one with this problem. PS & BTW - I'm using Studio 5000 v24 with a 1769 L33ER
  2. Would someone please help me how to convert an integer to ascii?   For example if the output tag is an ascii string, of 3 characters and my numeric input is integer.   When user input a value of 5, I would like the input value to be convert and assign to output ascii string tag of "005".  How do I set the conversion format in either tag assignment or tag expression?
  3. Hello All! I am having difficulties mapping register values. In the TURCK register there are 24 unique register bytes corresponding to different value registers (8bit x 24). These 24(8bit) bytes were mapped into RSLOGIX 5000 as 12(16bit) INT words ....INT[12] .. This means there are 2 bytes (2 unique register values) inside each INT word. WHAT I NEED TO ACHIEVE: 1. (BLUE outline in drawing) Write/Map a value of "32" into byte 7 of the TURCK register so effectively starting at  INT[5].8 in RSLOGIX           Drawing1-Model.pdf This will enable the value of CNT1 (encoder count) to be registered in bytes 8-11... 2.  (PINK outline in drawing) READ/MAP the values registered in bytes8,9,10 and 11(4x8bits) into a SINGLE 32bit INT value which will tell me the CNT1 value of my encoder. I am having problems when ever I try to COP a value of 32 (no matter what kind of array it's sourced from) into INT[5].8 & I haven't tried to map/read the values of bytes 8-11 CAN SOMEONE PLEASE HELP EXPLAIN HOW TO ACHIEVE THIS?! Thanks for your input EVERYONE! :D Drawing1-Model.pdf
  4. Array Step Length/DINT Length

    I'm working on a project that is made easiest by using a sequencer. The process I have has 51 outputs. I've created the array as the steps that I need but how can each step have more than the standard 32 bits (DINT)? Is it possible to change the length of the DINT so every output is available at everything step?  Thanks.    Sorry if my description is vague I'm still learning some of the terminology. 
  5. I am currently trying to get my program to take distance traveled per pulse, which is based off of the diameter, and convert it into IPM. I am using RS Logic 5000 software. If anyone could help me get over this hump I would really appreciate it!
  6. Hello all, I have been given a 'unique' project that I'm hoping someone can help me shed some light on. I am using an AB CompactLogix L18ER PLC I have a Generic ENet module that I am receiving data from in the form of INT (kinda). It is actually sending DINT, but the generic module has to be set up as INT in order to properly communicate. Here's my issue... Let's say I have rec'd result data. It is placed in registers GenericModule:I.Data.[0] and GenericModule:I.Data.[1] In .0 the data reads -28532 In .1 the data reads 6 The result needs to end up as 430.2202 If I get out my handy-dandy windows calc, put it in Programmer mode and perform the following steps, I get the proper result. I'm just not certain how to achieve in L5K. 1. Convert INT result of GenericModule:I.Data.[0] to HEX = 908C 2. Convert INT result of GenericModule:I.Data.[1] to HEX = 6 3. Put the calc on Dword + HEX and enter Second result then first result (Like MSD, LSD) = 6908C 4. Convert to Dec = 430220 5. Divide by result of step 4 by 1000 = 430.220 Thoughts?