Search the Community

Showing results for tags 'converting int to sint[2]'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 5 results

  1. 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?
  2. 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
  3. I am having problems expressing an ANALOG OUTPUT 16bit INT word (0-10V Proportional Valve Voltage) as a REAL decimal number. From my understanding the word is divided into 2 (8bit) representing the whole number value and the second the decimal value. We're using BL20 I/O Module (german therefore LSB first I believe). I need to MOV/COP (read) the value, CONVERT it into a REAL number, Manipulate the REAL VALUE, then CONVERT the MANIPULATED REAL Value back into a 16bit INTEGER & WRITE the NEW Integer Value into Proportional Valve Voltage Location.   I also have a similar situation regarding our Incremental Encoder. In this scenario the  pulse count is obviously a whole number (no decimals) where 4 (16bit) bytes represent the REAL Count Value.. I have read other posts on similar conversion topics and understand the general premise, but I'm having problems specifying write parameters.. -  i.e. writing bits 0-7 from an INT into SINT[0] (HIGH BYTE representing the whole # value? ) and writing bits 8-15 into SINT[1] (LOW BYTE representing the decimal value) THEN CONVERTING into REAL # (Voltage fed to Proportional Valve)     ...manual section... page 282&283 - i.e. writing bits 0-15 from INT[0] , INT[1] , INT[2] and INT[3] into a LINT (not sure if correct) THEN CONVERTING into REAL # (Encoder Count) ...manual section... page 17 (current count value) ANY SUGGESTIONS WOULD BE GREATLY APPRECIATED... project file if interested..
  4. Mitsubishi A850 GOT

    Hallo i have an Mitsubishi A850 GOT Display and on this i lost the programm. The company who was building the machine was sending me the program for the display but i´m not able to load it on the A850 GOT The programm was written with GT Designer2, but this software is wrong for my panel . How can i convert this software from to I have the program got2000 data transfer and Greetings Jörg This is the program for our machine.   Edt4-g4-1 Hodde.rar
  5. Help about converting program

    Hello, First of all, Hello to all members. Im From Portugal. I trying to help my dad. I Have a Omron CJ1M-CPU11 with a program running that works fine... Now i need to transfer this program to a CJ1M-CPU13. I started to download from CJ1M-CPU11 to a file... them im running the Cx-programer on the CJ1M-CPU13, connection its ok, but when i try to transfer i get this error : The connect PLC type : CJ1M-CPU11 The Project PLC type : CJ1M-CPU13 Its possible to convert ? Please Help. Please view in attached file. Thanks