RSLadder ActiveX Controls
I know this is an old post but I recently have used RSLadder 500 in an RSView32 project and have stumbled across this which I hope others may also find useful.
To create a button to automate right click commands for RSLadder do the following:
1. Determine the object name by right-clicking the RSLadder control and selecting Object Name / ToolTip (default is usually RockwellSoftwareRSLadder5001). You can rename this if you like but take a note of what it is.
2. Create a button and make the press (or release) action do the following:
Invoke [DisplayName].[ObjectName].[Command]([Parameter])
So to explain...
'Invoke' is a command to interact with the ActiveX object.
'DisplayName' is the title of your display, or just use 'Me' without the quotes to use the currently active display (I always use Me).
'ObjectName' is the name of the ActiveX object I told you to find out previously.
'Command' is the command name that you want to use - I have a list below.
'Parameter' is optional, but is used by some commands to specify a required field.
Example...
I have a button that opens up Ladder 3...
Invoke Me.RockwellSoftwareRSLadder5001.ProgFile(3)
Ladder 6...
Invoke Me.RockwellSoftwareRSLadder5001.ProgFile(6)
A button that allows me to configure comms...
Invoke Me.RockwellSoftwareRSLadder5001.ConfigComms
A button that goes online...
Invoke Me.RockwellSoftwareRSLadder5001.GoOnline
and offline...
Invoke Me.RockwellSoftwareRSLadder5001.GoOffline
Hope this helps some people. I have attached an image of a full command list I have found - most are pretty self explanatory...
https://www.dropbox.com/s/ysu6nrx0dp91ae6/RSLadder.fw.png?dl=0