crashcup

MrPLC Member
  • Content count

    13
  • Joined

  • Last visited

Community Reputation

0 Neutral

About crashcup

  • Rank
    Sparky

Profile Information

  • Gender Male
  • Location Michigan
  • Country United States
  1. Looking for new options in PLC Brands

    OMRON It's cheaper and all the programming software is in 1 package.
  2. One year without smoking.

    Just a little more time and the psycological aspect will fade away too. You have already beat the 'chemical' addiction part. Keep it up - you won't be sorry (unless you have an addictive nature, then get some hypnosis.) Good Luck. (from a reformed smoker of Kools)
  3. Not sure if this is the place to post this, I aplogize if it is not. If you are like me, you may do both PLC programming and AutoCAD work. I wrote the freeware program EZScript-PRO so I could make fast AutoCAD changes, batch plot and do anything a script or LISP program could do - FAST! I have never charged for this software and maintain it at a couple of sites. You can download it from www.ezscriptpro.com as well as on www.angelfire.com/clone/ezscript/ No trojans, not viruses, no backdoors, just a nice clean application to make your AutoCAD life easier.
  4. Communication between HMI and PLC

    I can tell you in Wonderware, all I/O addresses have to have CIO before the Word.Bit address. Like thus: CIO 1.12
  5. I have a VB6 program that may help those OMRON programmers who work with repeating rungs. Repeating rungs are those rungs that have the exact same form - but use different tags. I've discovered that 'Guru Bob' has done a similar thing for the AB platform, and my method is very similar. How it works: You first define all your Omron symbols and bring them into Excel, then save them as a CSV file. Then you create the rung to be replicated and save that as a text file. Load both of those into the replicator app and VIOLA, it spits out a text file of completed rungs. Paste that into CX-Programmer and you are done, - what a timesaver. Reduced mistakes and speed is the outcome I like about it. If there is any interest - I'll attach the app here. Let me know. Claude
  6. On an 'older' PLC-5 you can always get in via the serial port. Use the serial driver in RS-Linx, autoconfigure the serial port baud rate then you can connect and have access to all channel configuration. Uploading should be a breeze then - but without any comments.
  7. Wonderware I/O Server vs DAServer

    You need to select a DA server specific to your PLC.
  8. Wonderware I/O Server vs DAServer

    "i have some problems knowing the difference between a wonderware I/O Server vs DAServer" Both are developed by Wonderware. DA servers are their 'new line' of servers. although the legacy I/O servers still exist - but without much support. I agree, use the DA when possible. Wonderware knows best which servers work best with their own HMI software.
  9. Wonderware writing to SQL DB

    A. Install the SQL Database (DB). You'll need to know all about the tables. B. Set up a System DNS connection to the DB in Control Panel, Administrative Tools, Data Sources(ODBC) A. Then set up the WW SQL tags you want to read data into from the DB. C. Then set up your Bind List - (This maps your WW SQL tags to the fields in the DB. Match data types exactly.) Then in your script, set up a connection to your DB. (Code Snippet) Connection_String="DSN=dsn_myApp;APP=Microsoft Windows Operating System;WSID=(local);DATABASE=myDatabase;Trusted_Connection=Yes"; SQLResultCode=SQLConnect(SQL_ConnectionID,SQLConnectionString); IF SQLResultCode <> Then {check if connection was made} ErrorMessage = SQLErrorMessage(SQLResultCode); Endif; (To insert a record into the database) (Code Snippet) SQLResultCode = SQLInsert (SQL_Connection_ID, "Table NAme", "Bindlist Name"); To Close the DB connection (Code Snippet) SQLEnd(SQL_Connection_ID); All the SQL instructions (with help) are available in WW. Also check the WW support website for examples and technotes. www.wonderware.com
  10. To read to a SLC in your message instruction fill out the fields properly. Here is an example of a Micrologix reading from a SLC. The data table in the SLC is N25:0, length of 1. (Meaning you read 1 word fro the SLC, to read 10 change the length to 10.) The destination in the Micrologix will be an Integer tag array of N25. (If you read 10 words make sure the N25 array in the MLIX has at least 10 array items.. otherwise ERROR) (Same for the data table in the SLC. The # of elements must be there to read them.) First thing to do is set up the mapping. In the Logix5000 menu click Logic, Map PLC/SLC Messages. Enter the SLC file number you are reading. For Integer file N25, just enter the 25 - not the 'N'. Enter Micrologix Tag Name you are writing to. For this Enter N25. ( File Number = 25. Name = N25) (If you don't do the mapping, you'll never get it to work = ERROR) Now for the Message Instruction setup: Message Type: SLC Typed Read Source Element: N25:0 Number of Elements: 1 Destination Element: N25[0] Click the Communication tab to set the Communication path. Path: LocalENB, 2 , ip_address_of_SLC (example: LocalENB, 2 , 10.5.2.148) Communication Method is CIP Click the Tag tab. Name: msgReadSlC. Its a tag of type MESSAGE. Make sure you can Ping IP address the SLC by typing Ping xxx.xxx.xxx.xxx (of course you substitute the SLC IP, not xxx.xxx.xxx.xxx.) (If it doesn't Ping correctly, it will never read = ERROR) Make sure in the SLC data table that Integer file N25 exists and it is has enough length for what you are trying to read. Remember reading N25:0 for a length of 10 is N25:0 - N25:9 Good luck.
  11. MICROLOGIX 1200 AND VISUAL BASIC

    See my post #12 in the A-B Forum for an attachment that might help you.
  12. DDE Question

    Try setting your VB form as a DDE source, then make your VB button do a dde link to Linx via a Topic you create in Linx. The DDE topic in VB is the topic name in Linx and the item is the datatable (bit) you want to send data to. I have done this many times to read and write data to a PLC/SLC via VB6. See the attached file. It's a VB program that reads/writes to a PLC5 via Linx and DDE. You'll have to modify it for your use, but I used it to configure a PLC5 with bits and words all over the data table. PLC5_DDE.ZIP