Datman

MrPLC Member
  • Content count

    59
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Datman

  • Rank
    Sparky

Profile Information

  • Country New Zealand
  1. ah dang... looking at the instructions above, we have a modular SLC not a fixed IO SLC. Does anyone have any instructions/diagrams on how to reset this memory in a modular SLC?? picture of said culript processor is here:
  2. yea i tried the single rung thing, no joy. It came up with the same communication error once. then the next time i got a different error something about a corrupt processor. yay... and the phone connection is definitely crap.. Unfortunately here in New Zealand some places cannot get broadband, this site being one of them. So the process for dialing in to this particular customer is to connect to their modem using a laptop and bluetooth connection through our 3G cellphones, which connects to their modem, which lets us talk to their main network. ie many pieces in the connection puzzle for cock ups to occur. The silly thing is they have a ML1400 on site which i have programmed many times without issue. The first time i try to program the SLC, this happens.
  3. ah excellent good to have some concrete advice on how to do this thanks very much!! ok so basically there seems to be no way in hell i can recover this thing remotely. Man the missus will be happy, its the weekend here and a 5 hour drive to the customers plant so that means an overnight stop. ruined my weekend!! Dont even get overtime pay :(
  4. I just tried again and the comms error message i get when trying to download the program is simply "Download Failed - Communication Errors". Every time, even with a blank program. Is going to site and programming with a serial lead going to fix this??
  5. Hi guys i desperately need your urgent help!! I have searched a bit on the net but dont have any definitive answers... Basically we have an AB SLC 505 which is running a bit of devicenet remote I/O. I'm unsure on the exact hardware configuration as i'm new to this project. Anyway, yesterday we had to make some remote changes. There is a modem on site allowing us to dial into the network and we can then reprogram the PLC's on site. Its a slow dialup connection in to the site but it works. Until yesterday that is... I was performing a code download to the SLC, where is suddenly popped up with "communication error" and dropped out. I can still see the processor online with RSLinx but it is now named "DEFAULT". I cannot seem to download a program to it, sometimes i get the error "The selected processor is not a Micrologix or SLC PLC" or it will start to program, get through "Writing IO tables" etc but the drop out with same "communications error" as above. I have tried doing a who active go online, and i get the following dialogue: Default program loaded due to NVRAM error. A corrupt CRC was detedted (loss of battery power may cause this), or a power cycle in the middle of a user program download, initialize memory or memory module load. I hit OK. Says can not go online from default processor (no Program)You must perform a down load. But then when tryign to download it does all the stuff above and i cant download... I have seen articles on the net about having to do a complete processor reset, pulling processor out removing battery and shorting VCC and GND..???? Basically i want to know if its possible to recover this dang thing without having to drive 5 hours to site... It is a bit of a major... Its weird that it is sayign default but it has retained its comms settings and i can still see the processor with RSLinx. There were no errors within my program and i even tried using the old backup program with no success. any advice hugely appreciated! Rockwell have been absolutely no use whatsoever....
  6. RSView as OPC Server?

    try this: http://www.blftech.com/drivers.htm not sure about .net but i imagine they work with this. The only downside is that it seems you cannot write bitwise to an integer with a micrologix. other than that it seems to work fine.
  7. RSView as OPC Server?

    Well I finally managed to wrangle the boss into spending some money. now have a VB6 Active X that communicates directly over ethernet using Allen Bradley protocol. Makes life a lot easier and cheaper for us, not having to buy an OPC server for each job. Has a few down sides but pleased with the results so far from an ease of code point of view
  8. RSView as OPC Server?

    thanks guys, just as i thought. we have a CD for KEPServer Enterprise. Looks like it came with RSView32 or something, which we used on a different job. Would this do the job? Ive installed it and had a quick look, but cant quite get my head around it.
  9. This may be a dumb question... We a client with a computer which is running RSView Machine Edition to talk to a PLC.. Im guessing this is using RSLinx Enterprise... I have an application in Visual Basic 6.0, can i make this retrieve data from the RSView application using OPC... VB6 can use the RSOPCAuto.dll (whatever its called..) to acheive OPC comms via RSLinx in our normal applications, but I have never tried getting data from RSView. Is this at all possible in any form? Or would i need to buy RSLinx to put on the PC and talk to the PLC directly via OPC.
  10. Thanks for the offer Peter, but Rockwell have come through over the weekend for us, and so we are underway. The application is on a clients existing system that we are trying to improve the response on - we have had a fair bit to do with the RMC gear, and knowing the history of the QS thought that there must be another copy of the setup software out there somewhere! The other guys in the shop here (Jaymor Industries) remember you from a trip you had to NZ a few years ago and so were interested to hear that you had come back to me. Thanks again.
  11. Hello, I am looking for a copy of the "Hydraulic Configurator" software for the AB 1746-QS module. This is a free download from the rockwell website, but the link is not working correctly (http://www.ab.com/mem/appsys/prodinfo/applac/appla/QSsw/index.html) even when we are logged on correctly through the techconnect program. Does anyone have a copy or another link they could forward on to me? Cheers, Lyndsay
  12. also whats the difference between asyncwrite and syncwrite, same with the read??
  13. just one more question on this... is OPC slow to write? I have just a single write, which seems to take RSLinx 1 - 1.5seconds to write the data down to the PLC after the syncwrite call has finished. Is this normal? My updaterate in VB is set to something like 20, polled messages setting in RSLinx is set to 1msec. It is causing me some timing issue in my program, can i expect any faster?
  14. you are right... whats even weirder, is i cant pass my array into this fucntion as an integer, then cast it as a variant by doing writevalues = cvar(temparray)... the array must be declared and passed into this function as variant... i suspect maybe something to do with the size, a variant is 16bytes, an integer 2 bytes? why we only see it with the value 9 is beyond me though... anyway, thanks very much for your help!!!
  15. easiest if i just post my code here. these are my declarations: Dim WithEvents AnOPCServer As OPCServer Dim WithEvents ConnectedOPCServer As OPCServer Dim ConnectedServerGroup As OPCGroups Dim WithEvents ConnectedGroup As OPCGroup Dim Groupname As String Dim OPCItemCollection As OPCItems Dim ItemCount As Long Dim OPCItemIDs() As String Dim ItemServerHandles() As Long Dim ItemServerErrors() As Long Dim ClientHandles() As Long Public Function OPC_Connect() 'Call OPC_Connect("BOARD_GRADER") Dim ConnectedServerName As String Dim ConnectedServerName2 As String Dim i As Integer Dim test As Variant 'Create a new OPC Server object Set ConnectedOPCServer = New OPCServer 'Load the selected server name to start the interface ConnectedServerName = "RSLinx OPC Server" 'Attempt to connect with the server (Local only) ConnectedOPCServer.Connect (ConnectedServerName) 'Prepare to add a group to the current OPC Server ' Get the group interface from the server object Set ConnectedServerGroup = ConnectedOPCServer.OPCGroups ' Set the desire active state for the group ConnectedServerGroup.DefaultGroupIsActive = True 'Set the desired percent deadband ConnectedServerGroup.DefaultGroupDeadband = 0 ' Add the group and set its update rate Groupname = "GRADER" Set ConnectedGroup = ConnectedServerGroup.Add(Groupname) ' Set the update rate for the group ConnectedGroup.UpdateRate = 500 ConnectedGroup.IsSubscribed = True 'create the items in the group ItemCount = 1 OPCItemIDs(1) = "[BOARD_GRADER]N13:0,L10,C1" 'Item1 = Primary PLC Control Word ClientHandles(1) = 1 Set OPCItemCollection = ConnectedGroup.OPCItems 'Gets an items collection from the current Group OPCItemCollection.DefaultIsActive = True 'Sets the items collection to active 'This line adds the items we’ve chosen to the items collection and in turn to the group in the OPC Server OPCItemCollection.AddItems ItemCount, OPCItemIDs, ClientHandles, ItemServerHandles, ItemServerErrors End Function this is my test function for performing the write. taken from your function above and modified slightly. if you increase the value that the array WriteValues is written as, (WriteValues(i) = i + 2) so that the first element is 9, you should see the error occur.. Public Sub TestWrite() ' Dim Arrays for SyncWrite Dim SyncServerHandles() As Long Dim Values() As Variant Dim WriteData Dim SyncErrors() As Long Dim ItemCount As Integer Dim WriteValues() As Integer Dim i As Long ' Get Number of Items in Group From Server ItemCount = ConnectedGroup.OPCItems.Count ItemCount = 1 ' Redim Arrays for Item Count ReDim SyncServerHandles(ItemCount) ReDim Values(ItemCount) ReDim WriteData(ItemCount) ' Write values 1 to 10 to N63:500 to N63:509 and N63:510 to N63:519 ReDim WriteValues(9) ' Fill with Data For i = 0 To 9 WriteValues(i) = i + 2 Next ' Copy Array Data WriteData(1) = WriteValues 'Data to First Item in Group -- [TopicName]N63:500,L10,C1 'WriteData(2) = WriteValues 'Data to Second Item in Group -- [TopicName]N63:510,L10,C1 ' Pass in the ServerHandles and Values for the items active in Linx For i = 1 To ItemCount ' Pass in ServerHandles SyncServerHandles(i) = ConnectedGroup.OPCItems.Item(i).ServerHandle ' Pass in ClientHandles Values(i) = WriteData(ConnectedGroup.OPCItems.Item(i).ClientHandle) Next ' Write data to server ConnectedGroup.SyncWrite ItemCount, SyncServerHandles, Values, SyncErrors End Sub