Search the Community

Showing results for tags 'int[32] dint'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 8 results

  1. Hi Everyone,   I'm having an issue with getting an OMRON CP1H with an EIP21 module using explicit messaging back and forth with an AB PLC.  I'm using a CompactLogix L16ER to test the setup in place of the future Micro850 that will be used.  I've used the Network configurator to set up tag sets with instance IDs for the consume/produced tags.  The data being transmitted is 240bytes in the form of an array of DINTs.  On the AB side I've setup a get and set attribute message with the setup as follows; Get Attribute (Read):  Service Code: 10 Class ID: 4 Instance ID: 111 (Matches Network Config) Attribute ID: 3  Set Attribute (Write) Service Code: E Class ID: 4 Instance ID: 101 (Matches Network Config) Attribute ID: 3 The MSG command executes as expected on the AB without error.  The get attribute works beautifully, but the set attribute completes with no response on the OMRON (no write).   Am I missing something here?  Thanks!
  2. I am new at PLC programming, I have tried some ways to convert a text into DINT and I haven't found the right way yet, maybe somebody can help me. I want to convert "Hello" to DINT, for example. I tried converting it on here  https://www.branah.com/ascii-converter  to decimal and then using it as an input for a ROUND, FLOOR, TRUNC blocks to get a DINT, but when I get the result and use as an input in a DI_R i block the output doesn't match with the first conversion of "Hello". Any tips on how do I get it to work, please? Thanks in advance. 
  3. 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
  4. 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?
  5. 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
  6. 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. 
  7. 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!
  8. 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?