Search the Community

Showing results for tags 'how to access bits in word variable in function block??'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Found 110 results

  1. Hi:     How can I copy multiple bits example, M2000 to M2015 to D10 (I am using FX3U) ?   Thanks  
  2. How to take single bit form input WORD by Structured Text? Can i write somethink like: inVar[i]  
  3. Siemens S7-1500 and SICK

    Hello all, Let me start by saying that although I have been working with PLCs for 20+ years I am very (as in brand) new to the Siemens world (my wheelhouse is AB). That being said I have a Siemens S7-1500 (1511 specifically) CPU with a couple of SICK multi-turn Profi-Net encoders (AFM60A-S4NB018x12) that I need to talk to. - I am using TIA v13 with all of the updates. - I have the GSD file from SICK for the encoder. - I have no clue what I am doing - I can see the encoder values update in the watch table as I move the encoder. All fine and dandy so far... Here's where the white flag is going up.... - I am of the belief that there are existing function blocks out there 'somewhere' that can read and write to the base parameters. I have contacted our local rep who deferred me to SICK. I have emailed and left messages with them and have not gotten a return anything thus far. Here's our application... We are attaching each encoder to its own rotary gear mechanism. The rotary will need to turn in the CW direction approximately 400 degrees then return to its start point by rotating in the CCW direction by the same amount. If/When production/maintenance needs to 'rehome' the assembly, the expectation is that they 'pin' the drive in a known location then a bit would be set within the CPU that would assign a specific value to the encoder's actual position. In the SICK manual (8015078/YIX6/2015-01-16) on page 31 (section 3.6.3) there is reference to Preset control. This is what I believe we need to perform the aforementioned function. Does anyone have any examples that they could share on how to read/write to these encoders by use of a Function Block or other? Relatively desperate for help at this point. Can post test code if need be. Thank you in advance, TLAF
  4. CitectScada 7.4 variable tag not working?

    Good day, I'm currently trying out citectSCADA 7.4 as part of my work. I'm currently just learning how it works and am already having problems with the program. I've used several guides on how to use variable tags wherein a DIGITAL variable tag is used to turn a symbol ON and OFF with two push buttons aptly named 'ON' and 'OFF'. I've already used the Express Communication Wizard to create an I/O server named 'IOserver' along with an I/O Device named 'IODev' that uses Disk I/O Device with Citect Generic Protocols. They are all under a cluster named 'Cluster1'. From there I made a variable tag with the tag name 'TEST' with the I/O Device using IODev with the Data Type set to 'Digital'. The address is set to 'D1'. Equipment, Item Name, Comment, Eng Zero Scale and Eng Full Scale are left empty. From there I went to the Citect Graphics Builder and made two buttons and a symbol icon. In the Symbol Set Properties under the appearance tab I used the 'on/off' option with the ON symbol when coding area I typed 'TEST=1'. In the push button properties under the Input tab. I checked the 'Up' tickbox and in the Up Command coding area I typed 'TEST=1'. I did the same for the other push button except for 'TEST=0'. Running the program under demo mode and pressing the 'on' button and the symbol stays in its OFF state. Is there a solution to my problem?
  5. Hi!!! Could anyone please tell me how can i make my recipe function working having : 1. SQL database linkage 2. VBA programme 3. Without making new recipe tags (want to use actual plc tags only, no new recipe tags) I am new to factory talk so please tell me from the scratch. It would be highly appreciable. Thank You.
  6. I am very new to PLC's, I work in a power plant and we have an ABB DCS. We have some vendors that use PLC's and they try to make them work with our system. Currently I am working on a project were I am trying to add 8 analog outputs to the PLC. I am working with two 1756-L71 controllers (redundant) and the rev for the program that was written 20.01. Basically I have 8 analog inputs that I want to bring to the spare analog outputs that I have. I want to see these inputs in our DCS. I wrote simple logic that at the end of the rung has a move block moving the source which is the input and taking it to the destination which I made an alias tag for the output channel that would correspond. Problem is I can see the source number moving, but the destination number stays at 0. I can type a number into the destination and it will work. I can see my 4-20 signal I am sending out in the DCS. Everything before the move function is true, I have and open contact, and a closed contact and they both are green. This is happening on all eight of my outputs that I am working on. Please help I have learned a lot from this experience but I cannot figure out what has me stuck this time.
  7. http://accautomation.ca/now-you-can-have-robust-data-logging-for-free-part-1/ YouTube overview: https://www.youtube.com/watch?v=6Xa2HYVOxE0 Robust PLC Data LoggerWith traditional loggers, software will read the memory of the PLC and store in a local computer. If the network stops or the PLC communication fails then the logging will stop.Creating a robust PLC data logger allows the communication to be stopped for a period of time without losing any of the data for collection. This is accomplished by storing the data locally on the PLC until communication is restored. All of the data is then read without loss. The amount of time that the connection can be lost will be dependent on the memory size of the PLC and the frequency of the data collected.This series will walk you through the steps to create and implement a robust PLC data logger using the following equipment and hardware. Automation Direct – Do-More – H2-DM1E PLC (Ethernet Modbus TCP)Do-more Designer 1.3 (Simulator instead of PLC mentioned above)Windows based computer running IISVisual Basic 6Regards, Garry http://www.accautomation.ca
  8. In my program, I have about 100 rungs for 100 faults. Each rung looks very similar. I thought I could make the code more maintainable by using function blocks, to avoid having to change each rung individually (if I needed to). Would it be best practice to create a new instance for each fault, or to reuse the same instance for each fault? I come from a C and java background, so I am confused as to whether a function block is supposed to be like a function (in C), or supposed to be like a class (in Java), or neither...
  9. Let me set the scene. I am inside my function block. I would like move an internal integer into an integer that belongs to my program symbol table. I would like to do it inside the function block, so that the function block is self contained. i.e. it does not need any extra inputs/outputs in the function block call. Is this possible? If I was writing this in Object Oriented code, I would just write this within my method: myGlobalVariable = myLocalInteger; and that would be that...
  10. Hi all, While upgrading HMI from PanelBuilder32 to FactoryTalk View I encounter a problem using I/O to interface with a PanelView Plus. The communication is defined in RSLogix 5 program as Rack 3 group 2 Size 3/4, range 32-37. PLC communication with the panel is not changed, but buttons in old PanelView using I:34 and I:35 work, in the new PV+ they don't, all bits remain zero. Block transfers Read and Write are all sending data to rack 3 group 2 module 0. While testing I noticed O:32 is used as status bits by the Block Transfers - maybe inputs I:34 and I:35 are also used for somethings similar by a new PanelView Plus? Thanks!