Search the Community
Showing results for tags 'conversion'.
-
Hi, Is it possible to convert a number (a REAL or DINT in my case) to an ASCII string equivalent in CX-Programmer (I'm using a CP1H) ? For example : REAL = -12.3456 -> String (starting from W0 for instance) = [2D 31][32 2E][33 34][35 36] [- 1] [2 .] [3 4] [5 6] [W0] [W1] [W2] [W3] For a DINT, the process would be the same but there would never be any decimal point (but there could be a minus sign AKA 0x2D in ASCII). This operation is trivial in Sysmac Studio, but seems quite tedious in CX-Programmer.
-
Hi: There are 2 Word, Let say Word_0 = 5c29, and Word_1=3e8f, I combined that 2 word into DWord=3e8f5c29; The result converted online (https://www.scadacore.com/tools/programming-calculators/online-hex-converter/) to Float will be 0.280 (expected result). But with DWORD_To_Real , i get this result : 1.0354898e+09 REAL May I know how to convert the 2 words into Real (Float ?) Omron PLC: NX1
-
Hello! I have a float number (HEX: 3CA01D0F) in Big Endian. It's 0.0195451062. I get it from the sensor and store it in a double word variable. Could you help me? How can I convert DWord to Float? If i use DFLT instruction, It treats DWord as an integer (1017126159) and just gives me 1.017126 e+009 Thanks in advance.
- 1 reply
-
- conversion
- float
-
(and 1 more)
Tagged with:
-
Hi All, I've some problems after converting a cqm1-cpu41 program to a cj2m unit. I am still trying to identify all problems but the most annoing at this moment is the following. This cpu is connected to a proface HMI, and commands the screens that are shown, through D1. I am keep getting screen #9 ("press reset"). if i press and hold ALARM_RESET (0.07) and the timer hits, I get the main screen that i want.But after releasing ALARM_RESET (0.07) screen #9 is back again (so that value is wriiten in D1) This is a snippit of the converted program (exactly the same as the old program) There isn't any other code writing #9 in D1. The strange thing is that line 210 is doing exactly that ( IF NOT ALARM_RESET (0.07) -> MOv #9 to D1 ) what is see, but how in earth did this work in the old CQM1 unit ? I suspect something with cycle time ? Maybe in the old unit line 217 was executed later and #A was written in D1 'over' the #9. Anyone has some thoughts on this ? Thanks in advance Jeroen
-
I am working on calculating a checksum value for a command that is to be sent from an Allen-Bradley CompactLogix PLC to a Mass flow controller. An example of a command is the following: "@@@022SX!20.00;CHECKSUM". 1. The checksum is the sum of every characters' ASCII code value (starting from character 3). 2.Then this sum (which would be in decimal format) has to be converted to HexaDecimal 3. Finally, the last two characters of the result have to be extracted and that would be the value of the checksum. (For Ex: the value of every individual characters' ASCII code (starting from point 3) of the above command is 715. in HexaDecimal, 715 = 2CB. So , the value of the checksum for this command would be 2CB) I got to the point where i found the sum of ASCII code. Any idea on how to convert that to a HexaDecimal and then convert that HexaDecimal to a string so that I could concatenate it to the command string??
-
- hexadecimal
- string
-
(and 3 more)
Tagged with:
-
Original FX3U project written with GX Developer FX Version 8.45X. I now want to program an FX5U with the same program (well, slightly modified). I have MELSOFT GX Works3. How do I import / convert the original project? I have done a web search but can't find the answer. The installed help files don't seem to cover the topic either. Many thanks.
- 12 replies
-
I have to replace a PLC5 with a new 1756-L73. There are (3) panels involved in system. The main panel controls (2) other panels remotely via each their own 1771-ASB module. Time is of the essence on this project so I am trying to find ways to reduce the required downtime needed to make the switch over. I am going with AB's new conversion method of using the existing swing arms assemblies into a mounting adapter then the c-logix rack on top of that. Question - Can I convert the (2) remote panels first or can they only be done once the main panel with the PLC has been converted over? The remotes only have input & output cards in them.
- 2 replies
-
- plc5
- controllogix
-
(and 1 more)
Tagged with:
-
I am having problem converting a DWORD variable to a floating point decimal. I've tried using the DWORD_TO_REAL function. Having the hex value "41E9B814" as an input I was expecting to get "29.2148819" as an output. However, I'm getting "1.110194.." as the output. Any ideas?
- 2 replies
-
- conversion
- dword
-
(and 1 more)
Tagged with:
-
Hi Everyone, Learning the ropes of SoMachine V4.2 (coming from Arduino and Ucontrollers), I am using a Sequiental step style program and I am receiving 4 error messages. I'm trying to understand why it won't compile. POU for implicit check is missing. It is recommend to add the POU. C0032: Cannot convert type "IeSFc.SFCStepType(iesfc,3.4.2.0 (systen))'to type BOOL "Same error for a different ladder (the output of ladder rung hits the transition step, the transition is a bool which kicks off the beginning of another ladder rung). C0032: Cannot convert type BOOL to "IeSFc.SFCStepType(iesfc,3.4.2.0 (systen)) Are these two different "data" types? Thanks in advance!
-
- conversion
- bool
-
(and 1 more)
Tagged with:
-
Hi Everyone, Learning the ropes of SoMachine V4.2 (coming from Arduino and Ucontrollers), I am using a Sequiental step style program and I am receiving 4 error messages. I'm trying to understand why it won't compile. POU for implicit check is missing. It is recommend to add the POU. C0032: Cannot convert type "IeSFc.SFCStepType(iesfc,3.4.2.0 (systen))'to type BOOL "Same error for a different ladder (the output of ladder rung hits the transition step, the transition is a bool which kicks off the beginning of another ladder rung). C0032: Cannot convert type BOOL to "IeSFc.SFCStepType(iesfc,3.4.2.0 (systen)) Are these two different "data" types? Thanks in advance!
-
- conversion
- bool
-
(and 1 more)
Tagged with:
-
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
- 1 reply
-
- rslogix 5000
- l72
-
(and 4 more)
Tagged with:
-
Hello All, I am using Wonderware InTouch 10.0 on Windows 7. It's slightly outdated, but its what we have. I am currently writing a script using the StartApp command to open a particular PDF file with the touch of a button. My script looks like StartApp("C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32 C:\1.pdf"); The first part of the command runs adobe and the second part of the command opens the particular file "1". What I need to figure out is, how do I insert a variable into a string. For example I have 55 files I may potentially need to open up, all named 1-55. So I need the file I am calling to be a variable inside of the string so I can call it inside of a loop. I do not want to copy and paste this code 55 times, I want to make the file name a variable (tagname that is a memory real between 1 and 55) so I can run it in a loop. I have only been using Wonderware for a month or so now, so If anything is confusing feel free to ask. Thanks!
- 9 replies
-
- intouch
- wonderware
-
(and 6 more)
Tagged with:
-
Hello. I have a D word number 0-990. I would like to convert it to 990-0. So i need a function which shows me 0, when the D100 is 990, and shows me 0 when the D100=990. And of course for the between values also. Calculating continiusly. Help is much appreciated :)
-
I'm in the process of converting an old Siemens S5 project (with no comments!) to ControlLogix. My first question is in the S5 there is the odd instruction with a '#' in it: - -] [ - - - - (#) - - - - ] [ - - - - -(F00.1) In old logix the # means a file, what does it mean in Siemens speak? My next question, I have the rockwell document for structured text and also for converting S5 to logx, is there any other resource that would help me understand Siemens structured text? As I chip away at the project I'll be posting more questions. Thanks in advance for your help.
- 11 replies
-
- structured text
- conversion
-
(and 2 more)
Tagged with:
-
Hi all, Looking to convert older .rss ladder file into newer RSLogix 5000 compatible format. My problem is - I don't have 500 series software (or a computer to run it on) to start the conversion. Any help/suggestions appreciated
- 2 replies
-
- rslogix 500
- rslogix 5000
-
(and 1 more)
Tagged with: