Search the Community

Showing results for tags 'input string'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 82 results

  1. I am playing with sending ASCII string commands back and forth between my CP1H and another device. I learned first how to do it using ladder and now that I'm getting into more advanced stuff (parsing, searching for certain chars, converting to INT, ect) I want to do it in Structured Text because the ladder for this gets hard to follow. My very first experiment (count string length) throws an error at me: It apparent takes exception that I've use the "STRING" data type   But it this works just fine in ladder:   So am I really not allowed to use STRING data type in ST on CP1H or am I doing something wrong?
  2. QJ71C24N-R4 G.Input command

    I need some help with G.input and g.output commands. I have a Q04UDEHCPU and my slots are as follow: slot 0 - QJ61BT11N cclink slot 1 - QJ61BT11N cclink slot 2 - QJ71C24N-R4  2-channel RS4222/RS485   I need to have 2 separate RS485 stings going to different devices. I cannot find the way of setting up the g.output command. G.Output "Un" (s1) (s2) (d) "Un" says it is the start I/O signal of the module, but I am not sure what that means. What there be a different "Un" number for each channel?   
  3. Hi,   I am using Omron CP1E NA 20DTD with built-in ANALOG inputs and output. I know how to deal with digital inputs. But I have no idea about analogue input wiring and programming. I tried connecting gefran LVDT PY2 directly to an analogue input of plc. But the indicator light did not turn on. Do I need to use any signal conditioner or converter? The output of lvdt is 0 to 25volts. I HAVE ATTACHED THE DATASHEET OF LVDT. DTS_PY2_06-2016_ENG.pdf
  4. 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!
  5. Hi, I am trying to enter a new line in a string. For example " Line 1                           Line 2"   Can this be done in rslogix 500 ?   Thanks
  6. CP1E RS232 Setup

    Hi everyone, I am fairly new here, I have a CP1E-N40DR-A And i need to send a string of data to a printer over rs232 from the built in port on the PLC, I have had a look online and canot find any information on what I need to do. all the tutorials are for CJ2 cpus ect and the instructions that I would normally use on a CJ2 dont work on CP1E PLC's. Any help or light shed would be great,  Thanks in advance
  7.    Have 10 POE Analog Input Modules available on clearance  10/20-channel Voltage Input, Current Input, & Analog Input Module with High Voltage Protection PoE Module, communicable over Modbus TCP and Modbus UDP    Model Number PET-7017-10     Regular price $459.00/EA    Clearance price $344.25/EA   only good on clearance quantity only.   http://www.icpdas-usa.com/pet_7017_10.html      
  8. Hi I am searching for plc having negative analog input and output. i.e. 0 to -10v analog i/p and Analog o/p.  Can any one help me in finding plc which has this feature .  Thank You  
  9. Hi, Iam new to schneider electric PLC drive programming and also to canOpen communication. I have an LMC058 PLC and there are three Lexium 32A drives connected via canOpen which inturn controls three servomotors. My question is how to find/ read hardware limit status of the axis in which limit is connected to a digital input pin of the drive. Even though the axis is properly working by configuring the digital input pins we are unable to get the digital input status of the drive. In the drive manual its given that the digital input status can be read from canOpen address 3008:F(hex) we dont know how to read the status during run time in the program . Can any one advise me how to read that address. I tried SDO_read function but its giving me error(canOpen network id Unknown). Thanks in advance.
  10. G.INPUT

    I'm working on a project that reads an RF - TAG via RS232. It uses the G.INPUT command. I need some help to see if I understand clearly how it works. Now it reads a maximum of 16 digits but in the future i want to pass it to 32 bits. The command line is |G.INPUT    U5    D6500    D6800    M7922| If I understood correctly I load in D6500 either 1 or 2 to tell it which channel to read from. It stores the 16 digits in words starting from D6800 and goes on till D6815 if I am correct. My questions are: - did I understand correctly how to use the command and is there anything else i need to take care of while using it? - do I need to do additional settings to it in order to read 32 digits or does it automatically read (if the RF reader is compatible with 32 digits)? Thank you, Andrei
  11. ASCII Code 8 Byte In Twido

    Hey Guys!!!! I'm trying to use ASCII 8 bites in TWIDO PLC and on MOD BUS TCPIP it connected to WinCC , where I'm trying to read the ASCII in as a STRING char that to in 8bits. The problem I'm facing is that it is getting swapped like if I'm writing VA in PLC then on SCADA it is showing AV. In WinCC there is no setting for word swapping. Therefore Kindly help me for this in plc end
  12. Hey Guys!!!! I'm trying to use ASCII 8 bites in TWIDO PLC and on MOD BUS TCPIP it connected to WinCC , where I'm trying to read the ASCII in as a STRING char that to in 8bits. The problem I'm facing is that it is getting swapped like if I'm writing VA in PLC then on SCADA it is showing AV. In WinCC there is no setting for word swapping. Therefore Kindly help me for this in plc end
  13. Hi, I have variable (named var1) with data type 'Word[Unsigned]/Bit String [16-bit]' with Array [0..7]. I want to put 16 variables with data type 'bit' in var1. Is there function for that? Also is it possible to put 16 variables (bit) like this: var1[0].0:=bit1; var1[0].1:=bit2 etc. I'm using GX Works 2 with CPU L02 Best Regards
  14. Hi, I have variable (named var1) with data type 'Word[Unsigned]/Bit String [16-bit]' with Array [0..7]. I want to put 16 variables with data type 'bit' in var1. Is there function for that? Also is it possible to put 16 variables (bit) like this: var1[0].0:=bit1; var1[0].1:=bit2 etc. I'm using GX Works 2 with CPU L02 Best Regards
  15. Hi! I have my 1756 IF8 wired in high speed differential mode but i can't configure the RTS smaller than 11 ms. What I understand it should be possible to set as low as 5 ms if module filter setting is 1000 Hz. Is there anything else that i have to do?
  16. I am running a very large step based program on an NJ plc.  I have several status and alarm messages that I need to display on the screen during the auto cycle.  Right now I have set up unions in the PLC for the faults... but this is a very large program with a lot of possible faults.  I'm up to 9 16-bit array unions already.  It is just getting really cumbersome.   I would like to just write an INT to a data area for each fault and status message.  That way I can assign each step a 5 values to be used for faults and messages (ie: step one can use numbers 1-5, step 2 can use 6-10, etc) .  Then I want to have the NS display a message from the string table based on the value in the data area.  Is this possible?
  17. Hi, I'm trying to use a parameter pass a literal string (eg. "Tank Temperature") in a global object, but when it displays in the pop-up I'm passing it to, it shows up as all caps (eg. "TANK TEMPERATURE"). How do I fix this?  Thanks in advance PS. It's not showing up with quotation marks, I used the alt0160 to replace the spaces.  Is there something similar to fix the capitalization?
  18. CPU 948R

    We have Redundant S5- CPU948R we have the requirement of knowing input address for FUM signals(Open & close signals).. Also how can we identify which cpu is acting as main CPU and which one is Standby. We look forward to a solution. Kindly advice us.
  19. Greetings, I've been having some issues with a vacuum pump breaker tripping... I think I've figured out the problem and resolved it but I noticed that several of the other motors have current monitoring on the HMI but the person who set this up is no longer with us.  I'm wondering what I need besides an analog input for my control logix processor (which I have) to setup this project.  I'm not sure if the other motors are just monitoring one leg of the 3 phases or if they are somehow showing total current?  any ideas and recommendations would be greatly appreciated.   thanks,
  20. How to take single bit form input WORD by Structured Text? Can i write somethink like: inVar[i]  
  21. 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.
  22. 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
  23. Hello! I am programming with FT view studio version 8. In the program, when I make numeric display, I can not input values for this tag I am using in the display. Then I decided to make 'invisible button' for enabling the input for this tag which is shown in the numeric display. This is okey for me, only if there is other ways to do this please tell me. Now when I have created this numeric display with input enabling -'group', I have a problem, how can I use security levels for this group, so that only logging in values can be set? I have found that there is security code selection for this in the screen displays, but not for the buttons.
  24. Rotary input device

    I am looking for some sort of rotary input device which could be used for fine adjustment. Ideally it would have to two output pins, if turned clockwise it would send pulses on one of the pins and when turned counterclockwise it would sent pulses on the other pin. These could be connected to two inputs on PLC and a value in a given variable could be incremented and decremented depending on the direction of rotation. Almost like using potentiometer with analog signal. I guess if I can not find anything I could use incremental encoder and look at the phase of the output to decide which way it is being turned but hopefully simpler and maybe more cost effective solution is out there? Thanks.
  25. 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 :)