Search the Community

Showing results for tags 'integer'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 4 results

  1. real to integer number

    Hello, Could somebody give for me advice how need seperate real number to integer? for example I have in D10 real number 10,9 for me need to do integer number 10 and 9. The real number seperate to integer I am using this LADDER line, attached picture. In D90 I got 10, But how to isolate the number of decimal places,I can not think of. Please help for me
  2. Hey everyone first post on here, does anyone know if it is possible to convert a string into a double integer. i am working with a dimensioner and it is sending me its box dimensions in a 12 char string (see attached picture). however i need this data as a double integer (it seems to just take the string length not the string value i have tried both dim_lengh and dim_length.data[0]). i have gotten it down to the point where i have the string split up into the dimensions i need but i dont know how to do the conversion. (box dims for reference are 21 X 15 X 14.8) Thanks in advance, Dr. Brule  
  3. I have a problem with converting a server word. I'm trying to put the seconds in my program trough %SW50. But this is counting like this: 0000 0111 = 7 0000 1000 = 8 0000 1001 = 9 0001 0000 = 10 0001 0001 = 11 But i forgot how this is called. How do i convert this to: 0000 0111 = 7 0000 1000 = 8 0000 1001 = 9 0000 1010 = 10 0000 1011 = 11 And is this second style integer?
  4. I have 14 alarms all addressed to word 200 i.e. 200.** and i want to monitor the state of bits in word 200 such that if one of them is on the coil 204.00 should turn on (Currently i am using the OR operator to turn on bit 204.00 but the task is to use a single instruction to monitor the sate of the 16 bits of a word by comparing it to an integer say #0). I was thinking of using compare to achieve this but i do not know how to compare a word say 200 to a an integer value #0 such that if DW200>#0 then 204.00=on. How can i achieve this and what instruction can i use, am new to omron plc's and am using syswin 3.4 and plc CPM2A. Any help or sample program to achieve the above is deeply appreciated.