Search the Community

Showing results for tags 'string data type'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 141 results

  1. Hey all, I've reviewed a number of threads regarding converting one data type to another and I have something I'm working on that I'm stumped on and haven't found an answer for yet. Without getting into the details, I need to get a DINT bit value from an entered decimal value. A user will enter in a whole number in an entry box and then it needs to get converted to the number of whatever bits that the DINT number holds. For instance: # Entered Variable Bit Value -----0------------------0 -----1------------------1 -----2------------------3 -----3------------------7 -----4-----------------15 etc... I'm looking for a fairly clean way to do this, with perhaps just two or three instruction blocks to handle it, if possible. I can provide a screenshot of the HMI and the logic (4 rungs) if necessary. Any suggestions or advice from the group would be greatly appreciated!
  2. I am needing some help developing a string, and setting up communications that will be interpreted by a printer. I have thus developed my string, setup my com ports on my 1766 micrologix and setup com ports on my schmidt styliner scribing printer with win7e. Essentially this is plc to computer running software for a printer. the software has been setup to the best of my knowledge. My problem is creating a string that will be recognized as start/stop transmission at the printer. I have never done ascii so I am unfamiliar with how to get the two components talking. This is a simple application that only requires writing a string to the printer, but i have tried all that i can without any luck.
  3. Hi, I am trying to convert a sting of data ( yyyy- mm-dd hh:mm:ss format )in to INT data type so that I push it in to my FIFO Stack and later on retrieve the INT data and convert in to string again for the HMI Display. I have attached a screen shot of the problem. Thanks in Advance!!! Satheesh
  4. I'm trying to use CX-Server to pull data from my Omron CJ2H PLC directly into Excel. I'm able to pull a single element into excel, but when I try to pull more than one element, I get a huge strand of numbers. Is there a way that I can set up a single point in DDE Manager that'll hold all the elements that I need, then in excel have a formula that will pull out specific memory elements. Specifically I'm trying to pull data from D7200-D7399, and put each element into a separate cell it in a chart that ranges from B3-K22 This is what the formula looks like when I copy a point into excel =CDMDDE|'C:\Users\... ....cdm'!'\New Point 1' I didnt know if I could put something at the end of each string to call out specific elements, but I keep getting "#BadPoint" =CDMDDE|'C:\Users\... ....cdm'!'\New Point 1'!'D7200' =CDMDDE|'C:\Users\... ....cdm'!'\New Point 1'!'D7201' ... =CDMDDE|'C:\Users\... ....cdm'!'\New Point 1'!'D7399' Any help would be great
  5. Hi friends, I am a little new to WinCC. I am using a WinCC RT Advanced license within TIA portal v13.1 I need a little help in my current project as described below. I am attempting to create a faceplate of a solenoid valve,, The "Valve" is a user-defined data-type with the following 4 elements 1. Cmd - or command. - Bool 2. Cls_Fb - or Closed -Feedback -Bool. 3. Aut - or Automatic Mode -Bool 4. FTC - Fails to close -Bool. I tried the following procedure as described in TIA portal help.. Method -1 1. I created a User-defined data type called Valve comprising of the above 4 bool elements. 2. In the graphics I made a image of solenod valve with one rectangle (solenoid) and one polygon for valve body. 3. Under the Faceplate Properties (See figure attached) I inserted a property ang gave it the data-type Valve as above. However, when I drag a property from the 'Contained objects list' to the interface side, it is not getting substituted. such as the Rectangle_1 's background color I try to associate with the interface property Valve.Cmd. It does not get assigned when dragged. Since this does not work I tried another approach, Method -2 I attempted to declare a variable tag of UDT type 'valve' in the faceplate's tab Tags. I found that it is not possible to declare a local variable of User-defined types here. Please guide me how to proceed. Thanks for looking in and best wishes for your success. Regards, Raj S. Iyer
  6. Hi friends, Can anybody tell me when to use a local-Static variable and when to use a Local Temp variable whilst creating a Function-Block in S7 -1500 using TIA portal. Thanks for looking in. Best wishes.
  7. Hello I am trying to read string from MicroLogix 1100. Can it be done? I tried to read it and I got an error. I attached the error. Thanks for reading this post :)
  8. string for omron CP1H

    Hi all, how to simulation string in ladder?how to seng string from laddr to visual basic, or the reverse? please help me friends
  9. Hey All, I am trying to do some data storing on a PanelView+ and the built in data logging doesn't quite fit my needs. I was looking into the possibility of creating my own ActiveX control for doing this. Is it possible to create custom ActiveX controls for Factory Talk? If so, are there any tutorials for doing so you recommend? Also, are there any sites that have custom ActiveX controls to download? I realize this may not be the easiest thing to do, but if I could create my own I could use it for various machines and would make things a lot simpler in the long run. Thanks
  10. Hello, I am having troubles configuring my Data Station Plus to be able to read my Vacon VFD registers over a Profibus network. The network is configured from an Omron PLC. I have communication but i do not know how to map the tags on Crimson to be able to read what the drives are doing. I am most likely thinking my offset on the tags that i have set are the main problem. Any input/ suggestion would be great thanks Specs on System: -Omron PLC CJ2M w/profibus PRM21 -Omron HMI NS-12 -3 Vacon NX VFD's -Data Station Plus w/profibus module
  11. Hello all, I am trying to get around a lot of manual inputting by exporting a routine and opening it using excel, but looking at the file that excel shows I have a couple fundamental questions 1. when excel opens it and "creates a schema', can I save this in a format that will allow me to import it back into the program? 2. Since I am mapping data using add on instructions, the table excel has created becomes quote complex, with no clear point of reference to where my Input tags are going to go. We are doing this because someone thought it would be a good idea to put a SCADA based control platform over the top of an AB control system, so we have to exchange thousands of points of data back and forth with their system. I created the mapping AOI blocks to be able to manage the file structure a little better in the routines, but that still leaves me with copy and paste thousands of tags into the AOIs. Has anyone developed a good way to create logic, or modify logic using excel? While I can hold my own with utilizing the RS5000 platform, my excel experience is limited. The processor is a 1756-L75 Thanks
  12. Dear Sir, I want to read data (Digital Input say X0 (Local PLC) and after some additional logic i want write to Y0 (Remote FX3GE PLC on same network) from one Mitsubishi FX3GE and Write to another FX3GE on the same network. Master PLC IP Address 192.168.0.40 Slave PLC IP Address 192.168.0.50 Atif
  13. I am getting this error. How to resolve this?
  14. String encoder

    I need to replace existing encoder with quadrature output which is failing. We need to have minimum measuring distance of 60 inches. The encoder installed by manufacturer is Temposonics R-series RHS0650UMSO1Q1AC10 The resolution can be lower than the current encoder, probably 500 counts/inch or higher would be OK. Do you have any product that can be used? I was thinking about string encoder but I am open to suggestions.
  15. Hi dear all , i need some helping .. I used CJ2M cpu31, then i want to send data (example D100 = 2000) to PC ...essentially i want send value 2000 to my PC.. wherein the PC and PLC conect via internet IP .. What should tool/software may i used ? Thanks before ..
  16. I have the following situation; I have a distribution network connecting about 400 RTUs, using 101 protocol to connect to their PDH MUX, which data slot is transported using SDH STM-1/4, to the Primary Substations. Then the primary substations connect to the LDC building using STM-16. At the Control Centre Building where the Front End is located, there is a STM-16 node with some PDH ports, but definetly not 400, so how can I extract this 101 asyncronous data channels to connect them to the SCADA Front End? Note that conversion to 104 is not allowed by the client. Thanks in advance!