SoggyFisherman
Member
Hello everyone. Long time listener, first time caller.
I'm having a problem with RSLinx OPC in an Excel VBA application. I have posted this over on the Rockwell Software site forum, but from past experience I don't think I'll get any solutions over there. There is a much better pool of resources over here, I think.
The application is reading a stand-alone rack of Allen-Bradley Point-I/O (1734 series) over Ethernet/IP using RSLinx OEM. I'm using the OPC Automation Wrapper from Software Toolbox to access the OPC objects in VBA (why does A-B only distribute an Automation Wrapper with SDK?). Everthing is going well except that I am not able to set the Update rate for the OPC group.
The program gets the OPCGroups collection and adds a group object which I named "AIO_Group". The problem is when I set the Update Rate for the OPCGroup object (AIO_Group.UpdateRate) to say 1000, the actual rate drops to 1. I confirmed this by reading the UpdateRate property later on in the program, and by monitoring the OPC Diagnostics in RSLinx. Does anyone know of any special handling for this property?
The strange part is that if I take out the group UpdateRate statement and add one to set the OPCGroups collection object DefaultGroupUpdateRate property, it works fine. But that way I lose the ability to set individual group update rates (I want one at 2 seconds and one at 500ms).
Has anyone done this successfully with RSLinx? Thanks.
Don
I'm having a problem with RSLinx OPC in an Excel VBA application. I have posted this over on the Rockwell Software site forum, but from past experience I don't think I'll get any solutions over there. There is a much better pool of resources over here, I think.
The application is reading a stand-alone rack of Allen-Bradley Point-I/O (1734 series) over Ethernet/IP using RSLinx OEM. I'm using the OPC Automation Wrapper from Software Toolbox to access the OPC objects in VBA (why does A-B only distribute an Automation Wrapper with SDK?). Everthing is going well except that I am not able to set the Update rate for the OPC group.
The program gets the OPCGroups collection and adds a group object which I named "AIO_Group". The problem is when I set the Update Rate for the OPCGroup object (AIO_Group.UpdateRate) to say 1000, the actual rate drops to 1. I confirmed this by reading the UpdateRate property later on in the program, and by monitoring the OPC Diagnostics in RSLinx. Does anyone know of any special handling for this property?
The strange part is that if I take out the group UpdateRate statement and add one to set the OPCGroups collection object DefaultGroupUpdateRate property, it works fine. But that way I lose the ability to set individual group update rates (I want one at 2 seconds and one at 500ms).
Has anyone done this successfully with RSLinx? Thanks.
Don