Search the Community

Showing results for tags 'function block addressing'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 76 results

  1. Modbus fonction block error

    Hi everyone, first time posting here. I've got a problem with the Modbus MTCP-CP1L-Server fonction block. it worked fine for a good amount of time until i try to change an ethernet switch (not managed) on my network. at this moment the fonction block started to give me an error code (2211 ''unit is busy, can't execute''). So i put the old switch back again and I called Omron and they tell me to download Etherway and try to send some data to it but they can't do more. I did and BAM, it worked again. everything was fine for about a week and i was like, okay if etherway can ''solve my problem with the fonction block, i can put the new switch again, No I can't. It give me the same error, I try'd so many thing( put the old switch, everything that was possible in Etherway, change IP address, ethernet setting, reboot everything, connecting the unit direct to my PC. nothing can erase that error.  Unit is an CP1L-EM with built-in Ethernet port did someone had have the same problem, or have any idea that can help me ? thank. Sorry for my poor English, its not my first language.     
  2. Function Block addressing

    Hello all.  I have a program which has 8 function blocks. I recently added extra functionality to one of the programs (not the function blocks). I added the new variables to the global symbols table and added the new code, but when I compiled the new code, the variable addresses in three of the function blocks had changed. This is a problem, because we use memory cassettes to download new versions of code, so when the new version is downloaded to a machine in some far flung part of the world, these variables will be overwritten (they are hours run variable, so are important for servicing purposes).   My understanding is that CX assign's variable addresses in Function Blocks and we have no control over this. Bit if I only added variables to the Global symbol table, why are the FB addresses affected??   Any input appreciated. 
  3. Sample blocks for S7 1200 plc's

    Hi experts, please share the sample blocks for the EDITABLE TIMER block it should be editable from HMI(Siemens). And also motor run hour block. Actually i am having all blocks in tia v12 version and sadly i dont have the old software to convert it again. So please share the blocks that it shoud be work in TIA V14 for s7 1200 plc's. Please note that the blocks should use add instructions to calculate the time because i don't have much memory.
  4. Good day. I'm using 1756 L71S GuardLogix Integrated Safety Controller with Studio 5000 v28. My controller is connected to a third party software through ethernet connection, it simulates my project hardware and provides all the signals to my PLC. To know all the hardware signallocation at PLC memory, it uses a Tag export file provided by Studio 5000. In other PLCs, when you declare a variable as hardware input, you have to select in which address from the memory you want this input to be read, something like "Bit Input 0.0". But in AB this step is skipped, that is all addresses are managed by Studio5000 and hidden from the user. Is there any configuration at Studio 5000 that let me assign or at least see this addresses? Normally I would prefer my tags addresses to be hidden, but in this specific case it is more useful to know memory addresses.  
  5. Hi everyone, Using Cicode programming ... I'm try to make a function empressed Button's input command that still running forever until the user press the Button again .. so if i press the Button at first the function inside Button will be running , But i wonder to terminate that function by press same button second time or don't mind if you suppose other Button for stop running the function ... plz help to make a code or something else to stop running of my function.
  6. Pointer Device memory

    To those who don't know the GX Works2 compiler treats any function block referenced used in your code as a place to copy the entire set of code data into your program. Function block calls are not handled like pointers even though the should be. [You'll consume all your pointer space by thinking function blocks are great.]
  7. Hey, I recently started trying my hand at creating function blocks. At the moment I'm trying to create a PID function block, however I keep getting this error: "ERROR: Variable does not have enough size." No idea why it does this. Can anyone help?  
  8. Internal function block variables

    I have a function block where the first internal variable is showing as address H1420 in the Global Symbol table. When I add another retained variable to the function block then save and compile the code, the variable address in the global symbol table shifts from H1420 to H1488.  I need to retain the address as I will be downloading code and I need to ensure the address if H1420 stays with that variable.    Can anyone help with this?
  9. Omron Function Block variables

    Hello all.  I posted earlier in the week regarding downloading new code to an Omron PLC, but I think the question was a bit vague. As a follow up, and hopefully to clarify, I have the following query. I have created an upgraded program which will be downloaded by field techs using memory cassettes. The revised area of code is essentially a Function Block which amends service lamp behaviour, and in creating it, I have amended the existing function block and added new Internal variables. Is there any way I can ensure that the new variables don''t over write or move the existing  variables in the PLC, because this is what is happening when I download it.    HELP!!!!!!!!!
  10. hello.   I've been trying to communicate this omron plc CP1L-EM30DT1-D, with a yaskawa inverter cimr-vu4a0004faa. but i can't figure out how to make de correct mov or configuration in de DM. i need to run/stop, change frequency.    some help, please. :) 485PRUEBA.cxp 485PRUEBA.opt
  11. Modbus Addressing in Weintek HMI

    Modbus addressing in Weintek HMI to poll data from Temperature sensor through RS485. In my system i have connected Temperature sensor to I/O Scanner has output in terms of RS-485 which directly connected to COM3 Port pin. No. 6 (as Negative) & 9 (as Positive) of HMI (Model No: MT8071iE) and HMI connected to PC via ETHERNET. I want to read temp on HMI screen via MODBUS protocol. So, can you please provide me instruction about addressing of MODBUS register in Easy-Builder Software so can read data of corresponding register. Because when i do compile i got an error like " Device no Response". I hope i will get reply from your side as Fast as possible to overcome this problem. Thank you.
  12. Hello all. I have been working with an SLC 5/04 system, which houses various Digital and Analog INs and OUTs, up to Slot 29. I am currently mainly working with Slot 25, an Analog Input: 1746-NI16I. This is a system which has already been set up and has been running for the best part of 8-10 years. This particular card has had some spare inputs, one of which I am trying to connect to. In the Advanced Configuration, only a few Channels are actually "Enabled", and each channel is pretty much slightly different from another in terms of Input Type, Filter Frequency and Data Format. I am trying to set up Input 14, which is Channel 15, to "Enable" it, 4-20mA Input Type, Filter Frequency of 6 Hz and Data Format of either Raw/Proportional or Engineering Units. Now, after I have made my choices, I click apply, and then OK. I am then confronted by a pop-up which states: "Configuration Rung and Data Integer Data File Number: 25 Integer Data Element: 100 Rung to be inserted: XIC S2:1/15 COP #N25:100 #O0:25.0 24 At Program File Number: 4 82" I have the options of OK or Cancel. If I click OK, I now have LAD 4, Rung 82 Highlighted. This First Scan Bit and COP function were already here, but does that mean I have now altered what is being written to "#O:25.0"? I now Download the Changes. However, after all this, I am not getting any Analog input reading coming in from the Live PLC. What is this COP function? What does it do? How do I properly set up this Analog Card?   Thanks for your time, -Jame
  13. So I did this simple Function Block, pretty simple, and yet it keeps giving me this error, after a bunch of failed combinations the error persists, without telling me whats wrong. And therefore won't even allow me to download the program to the PLC (CJ2M CPU31) or even simulate.   I heard it's a simple thing to fix but I really dont know how to, since I'm quite new to this. Here's the function block  itself in the picture and the programming inside it, although since it gives me no errors, i don't think that would be the problem
  14. Block Compare Instruction

    Is there a Block Compare Instruction like the one in Omron PLC for Mitsubishi PLC? If the Omron PLC is BCMP (68), then what is the name of the instruction on the Mitsubishi PLC? I tried to use BKCMP in the Mitsubishi PLC, but the way it works is not the same as the one in Omron PLC
  15. 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.
  16. Gx Works 2 ve fx2n için bir fonksiyon kütüphanesine ihtiyacım var. Servo ve step motor kontrolü için.   thank you
  17. 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.
  18. 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
  19. 505 workshop addressing

    Hi,  I'm attempting to convert some old Siemens workshop 505 code to control logix and i have basically no siemens experience at all and i'm confused as to how to tell what actual output card X1 or X2085 is referencing??   same with inputs.   
  20. 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
  21. Hello all, i'm looking at installing a completely new network for our PLC system, using a ring topology. at the same time i would like to incorporate the IP cameras and VOIP into the same network.  each system is on a different sub net, PLC = x.x.1.x, Cameras= x.x.2.x, VOIP= x.x.3.x estimated camera traffic will be 25 Mbps, PLC 10 Mbps, VOIP no more than 1 Mbps  switches would be capable of 100 Mbps  question: managed or un-managed switches? if it is possible to use un-managed without affecting operations then this would be a massive cost saving    please only comment if you have practical experience implementing this  many thanks Dan  
  22. Hi, I'm working in so machine basic v1.5 and I'm wondering if it is possible to change the start time and stop time in a schedule block with a %MW. So is there a possibility to for example say %CH0.??? := %MW5 in an operation block? And is there a page where u can see al the possible codes. I already discovered that %TM0.P changes its preset but i don't find a list of al those possibility's.
  23. 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!
  24. 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
  25. Hi, can you help me how to make program indirect address for plc omron? I use PLC CP1E Thanks