Search the Community

Showing results for tags 'rslogix5000 transfer function'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 101 results

  1. Hello, I've been wracking my brain, but I thought I remembered there was a way to store and execute a DLL file inside of a ControlLogix (not softlogix) controller? You could use exposed functions inside the DLL to fit your needs. Am I going crazy? Or is this not possible? Any insight into this is much appreciated. Thanks, neech
  2. Hello. How can I get bit addressing of defined variable in function block? For example: - I define variable type DUINT with name Double_VarI_INT. - I want to get or set one bit out of it (its double word). - If I use Double_VarI_INT.0 I got error. Best regards.
  3. Gx Works 2 ve fx2n için bir fonksiyon kütüphanesine ihtiyacım var. Servo ve step motor kontrolü için.   thank you
  4. Struct as FB input

    Hello,  I am trying to define a struct as an input variable for a Function or Function Block. For example the function AddDelimiter (This is a standard Sysmac function), has a input variable with the variable type Struct, an it is possible to couple a struct to this input (See picture below). If i try to make my own function block with a struct or Structure as an input data type, i get the following error (See picture below). When I try to define a struct from the data types (In this case struct: Test) it doesn't give a error. But when I try to couple a struct to this input, that is a layer deeper than the function block struct i get the following error (See picture below). How can i define a struct as an function/ function block input? Thanks in advance.
  5. Anyone ever used a Wait-for digital tag in a C Program? I have to use C in the Red Lion Programs.. but, I'm not at all proficient in C (or anything else for that matter ..) Here’s a nice problem for basic C programming .. I really need to solve it .. but, so far ... can't ... sigh!: I have an actuator that will be commanded to make sine wave motion.  The program that does that, in the actuator’s driver-controller, requires the actuator to first be in a zero position.  Homing has already been done, so the drive knows where the actuator is.  I cannot modify the sine wave program; but, can command a Move Absolute program in the drive, to take the actuator to zero, if it isn’t already there.  When the actuator is at zero, it is “In position” and a digital tag will go True. If the Tag is False, the actuator is not at zero, it’s at some other position,  and only the Move Absolute program can return the actuator to zero. So, when launching this position command program, In a Red Lion G3 HMI, using only Basic C programming, how would you write a control program that would test the status of the actuator’s position, and, finding it at zero (the “InPos” tag is true) would start the Sine Wave program.  And, If the “InPos” Tag is false, would start the Move Absolute program, which would return the actuator to zero, and when the actuator is In Position, would start the Sine Wave program. Here’s the tricky part. It will take only a few milliseconds to start the Move Absolute program (if required) .. but how do you get the “C” control program you are writing, to wait until the actuator actually reaches zero, and the “inPos” tag goes true … which could take several seconds? I don’t believe there is a WaitFor function in “C” , and you cannot send either the Move Absolute, or the Sine Wave program more than once .. so, if a loop is used, it can loop only one time .. presumably with conditional delays. (however that's done)  You cannot use Sleep().. that would be cheating.. the full program must run in the least amount of time, and you do not know how far the actuator is from zero. You could use if (! InPos) or if (InPos) to qualify what programs to run .. but, where does the “Wait for In position”  fit into C Programming?  You might be able to use Continue .. but, ya still have to wait for “InPos” to go True…..before running the Sine Wave.       Thanks Much, Regards, Michael
  6. I need a program that will utilize 4 Banner Lights. They each have 3 colors except for the one on the top it has 5.... I need each to be on together, but I want the output color to be randomized. I'm brand new to PLC's and would like to use RSLogix 5000, this will be a giant help for me to play with and alter to further my learning. Thanks. Using 16 Outputs, but only 14 are used. Ive thought about an array possibly, but this is my first time trying to write code on 5000 ive used 500 in the past, and the whole tags thing is weird to me.
  7. Hello everyone! I try get a value of confidence data of sensor LR560 by Hart (Command #206) , but i dunno how send a command to HART way CIP Message.  I tried with " CIP Services to Pass-through a HART Message to the HART Field Device" but don't work.  Equipment: CPU: 1756-L63 RSlogix 5000, v 20. Hart Input: 1756-IF8H Level Sensor, Sitrans LR560 Best regards.
  8. Profibus Function Blocks for Q2ASCPU for Melsec ST Lite RIO inter-connection. Please assist in advising the attainment of such blocks - if any existing. Thanks
  9. Hi All, I'm still quite new to Unity and Modicon PLCs. I have a PLC program running in simulation mode for development/test and I'd like to follow the logic inside a running block. I can't seem to just double click the function block while online to see it's 'inside' logic. Is there a way to inspect the inside of a running function block? How can I check and diagnose the logic a running function block? Thanks!
  10. Hello all,    I am trying to mask out some values out of a bar code from cognex data scanner. Here is an example of what I am trying to achieve Data from Cognex: 2275019xf1-8877R215BA1234567 i just need 2275019XF1-8877R215B    I know i can program the bar code scanner to not to read but that would cause a lot of downtime. I wanna to know how to mask such a big number. Any help would be appreciated. I would be using RSlogix5000   Thanks Pratik 
  11. ESATR / EGATR Commands

    Good morning folks, I've browsed this forum often enough over the past few years that I think it's time I finally signed up.  Lots of good ideas and advice that I've benefited from and I hope to return the favour some day. So on to my question.... I'm currently knee deep in a project using a CJ2M PLC and I have to send and receive chunks of data over Ethernet/IP.  To do this, I'm using the ESATR and EGATR commands (set / get attribute).  I would like to know if these commands finish execution (ie. the ethernet port completes the transaction) even if the input conditions to the command are no longer true.  Specifically, if I use the "port ready" system flag (A202.00 is an input to my FB in this case) as a condition to trigger the ESATR command, this bit will go low once the port becomes busy (ie. during execution).  So will that interrupt the completion of the ESATR command resulting in an incomplete transaction and data loss?  I've looked through the help files on the command but don't get a clear picture of how it behaves. Perhaps the attached JPEG shows more clearly what I mean. Thanks, PC
  12. Hi, My Powerflex 525 Drive is currently working in the Project. I wanted to observe the drive parameters when the drive is running and live with PLC. I usually do that by getting online with the PLC (1756L72S) from RSLogix5000 and then by going in to the Drive Properties from the I/O Configuration folder i use to click on Drive tab and from there i was able to observe all the Drive parameters with the real-time values on which drive is running. Now when i try to observe the Same real time parameters on my other PF525 drive, i follow the same procedure as mentioned above till going into the Drive properties and when i try to click on drive tab its gives me a Screen with a message "AUTOMATIC CONNECTION FAILED". The status of drive in the drive properties still shows me that the drive is running. How can i observe the Real-time Parameters for this other PF525 Drive? Thanks.    
  13. I am very knowledgeable with RSLogix5 and RSLogix500, but want to become well-versed with RSLogix5000 advanced algorithms, strategies, and program types—(Ladder, Sequential Function Charts, Function Block Diag, Structured Text), and motion control, such as servo-controllers. . . mostly interested in structured text. I’m also interested in the nuances of RSLogix5000, ControlLogix & CompactLogix regarding design, on-line programming, and off-line programming, etc. Can anyone recommend a course or courses that cover this subject matter? Thanks!
  14. Hi, i'm a newbie in plc programming, i've started to learn recently. I have written a program by Rslogix 5000, but my tutor want me to build a HMI using Advanced HMI for simulation. Searching on goggle seem to be hopeless now, it would be thanksful if anyone can show me how to link RSlogix 5000 program with AdvancedHMI step by step, especially, i'm stuck at register IP address, port, com. Thanks for your reading!
  15. hi,  I have a question. I want to get an email from rslogix 5000 automatically. Can this one be done? Thanks
  16. Hi, can you help me how to make program indirect address for plc omron? I use PLC CP1E Thanks
  17. Hello,  I have a question on updating a laptop that we are using.  The current laptop I have is using windows xp with Rslogix500 version 6.20 and rslogix5000 version v20.04.00 (cpr 9 sr 5).  Lately the laptop has been running slow and having comm issues.  The usb ports get tied up and communication has been almost impossible with rslinx.  I constantly have been getting that that device is not recognized and the only way i have been able to establish communication is to keep rebooting the computer to free up the comm ports.  The computer takes about 15 mins. to reboot and load again.  Anyway, I have got the go ahead to get a new laptop.  My questions are what should i get and how much can i upgrade without having a bunch of headaches.  My thought was to purchase a laptop with windows 7 but I am not sure what that would involve to do so.  Is there a fee to upgrade versions?  Is windows 7 the best operating system to upgrade to?  Should i just get a computer with windows xp on it and leave everything the same?  Any advice here would be much appreciated.
  18. Greetings, I'm here in my home lab trying to acquire a working knowledge of UDT's.  I've had to work with them in the past in large existing programs and they were a pain to track down and find out what IO they were really controlling.  I have a decent understanding of what they are and I've created several to play with here using my softlogix processor and a digital flex IO rack. My issue starts when i'm trying connect my UDT's to the physical IO.  it looks like I cant use a simple move instruction (which would be way too easy and exactly what I need)  I have a flex IO 8 point output.  Local:1:O.Data[0] I have a UDT consisting of (see attachment) Valve001  Valve001.Out     Valve001.Out.OPEN     Valve001.Out.CLOSE   Valve001.In     Valve001.In.OPEN     Valve001.In.CLOSED I have a copy instruction set to copy Valve001    to Local:1:O.Data[0]     Length 2 that allows the Out.Open and Out.Close UDT's to control bits 0 and 1 of the 8 bit output . .... great. Now I have another UDT setup to control lighting... Door   Door.Out.OPEN   Door.Out.CLOSE I want to control bits 2 and 3 I make another copy instruction in a line before the original copy instruction that states Copy Door to Local:1:O.Data[0] Length 4 but i'm really just fighting for the same 2 bits that the valve controls.... how can I control bits 2 and 3 for the door/lighting logic using these UDT's?   and that's not yet getting into having physical inputs moved/copied to the UDT input bits. thanks!!    
  19. can you help me? bring me some example to build function block program with Gx Works? I use Q02U CPU   thanks
  20. where are the FB libraries

    Hello, Im looking for the in built function blocks, but i cannot find it in the program files/ omron folder where the manual says (even with search for *.cxf), perhaps i dont have it installed, but where can i get them from? As i remember i downloaded cx-one from the official omron web page after login etc, so thats why i dont understand why am i missing the fb libraries What else place there is to find useful FB-s? Thanks!
  21. I am using a 1769-ASCII card to talk to a Mass Flow Controller, the problem is that I need to send it a string of HEX characters. Initially I was sending a sting of '0221AD' and I found that the device was not responding. Then i sent a string of '$02$21$AD' and I got the response i was looking for. There is one packet of data that i need to calculate so I cant manually add the dollar sign to the string, I have tried everything to add a concatenate $ to a string of AD to get $AD dynamically and I cant find anything that works. To get the hex, i am summing decimal values and them converting it to hex. The issue is that the $ is reserved char. Does anyone have any ideas or suggestions to get me over this hurdle? Thanks!
  22. Hello.   A colleague sent me a screenshot (attached) with a peculiar issue. An ADD function that only sends 0 as the outcome, and a DTOS function that only sends " . I have confirmed that all variables used in the ADD block are declared as integers, and both SumInt6 and String10 are not currently being modified somewhere else.  This impatient colleague is baffled, while I am just sharing this issue in the hopes that someone will eventually come with the simple answer that we are overlooking, or a complex one that we could never hope to realize by ourselves.   Thanks in advance.
  23. Unable to Monitor in GXworks2

    Hi! Anyone can help regarding this issue. I'm not able to monitor the Motor Block that I have created. there's no error either in the output screen but i'm thinking what is the cause of not running in the simulation which shows the Motor Folder RED  even it was compiled. thanks for the help!     Note: I'm new in mitsubishi.
  24. Hey guys, this is probably a stupid question so I apologize if it is, but I have a PanelView Plus 6 700 and a CompactLogix L36ERM on one of my machines at my plant.  We have several different molds that run in this machine, so we have 5-7 different PLC programs that can possibly run in this processor, depending on which mold is in.  I'm planning to go to a single program with recipes, but I haven't had the time to set that up yet.  So we use the PanelView for troubleshooting, and adjusting process paramters.  On the main screen in the PanelView I have the time/date and also the program name.  What I have been doing is just creating a string tag in RSLogix 5000 that is the program/processor name (we use the same name for the processor and program) and then on my PanelView I just create a string display that looks at the string tag name in the processor.  That way anytime a mold is changed over and the PLC program is downloaded, the PanelView displays the correct program/processor name.   Now this is all fine and dandy and works as long as if a new program is created, we remember to change the string tag to the name of the new program, we often run new sample parts and what we do is rename an existing program that has similar logic and save it as a new program name.  The problem comes up because if somebody copies an existing program and makes a new one, the string tag is still going to say the name of the old PLC program.  Now if we only had one or two or even 5 machines, it would be simple enough to just remember to change that string tag.  Our, or I should say MY problem is that we have approximately 40ish machines in our plant, and I can't always remember to change that string tag every time we create a new program.  I should say that I have been, but there are times that I may forget. My question is this, is there any way that in FactoryTalk View ME Studio to have a string display the name of the processor or the name of the PLC program automatically without having to manually enter the name into the string tag that I created in RSLogix 5000?  Like is there a system tag somewhere that has the name of the processor or the name of the program?   That was way more explaining then probably necessary.  It's early and I've had way too much coffee haha.   Thanks guys.
  25. Function block self-made

    Hi, i want to make a function block which will contain a block GP.CPRTCL (for predefined comm protocol). GP.CPRTCL has an input "Un" who only receives constant (H,K). On input of my own function block i can set a constant variable, but inside block that variable isn't a constant anymore (GP.CPRTCL doesn't recognize a variable). Is there a way for receiving constant variable in GP.CPRTCL block ("Un") if it is in another block. Regards