OSP-P200/P200A/P300/P300A Osp Api Kit INSTRUCTION MANUAL (2nd Edition)
OSP-P200/P200A/P300/P300A Osp Api Kit INSTRUCTION MANUAL (2nd Edition)
OSP-P200/P200A/P300/P300A Osp Api Kit INSTRUCTION MANUAL (2nd Edition)
1. Overview ......................................................................................................................................1
2. OSP-API ......................................................................................................................................1
2-1. System Configuration ............................................................................................................1
2-1-1. Operating Environment ....................................................................................................1
2-1-2. Reference Documents .....................................................................................................1
2-2. Client Computer Settings ......................................................................................................2
2-2-1. COM Registration ............................................................................................................2
2-2-2. Canceling COM Registration ...........................................................................................2
2-3. OSP-P Settings .....................................................................................................................3
2-3-1. Setting the Computer Name ............................................................................................3
2-3-2. Network Address Settings................................................................................................5
2-3-3. Adding a User Account ....................................................................................................7
2-3-4. Shared Folder Settings ....................................................................................................9
2-3-5. COM Security Settings .................................................................................................. 11
2-3-6. Windows Firewall Settings .............................................................................................17
2-4. Checking Settings ...............................................................................................................18
3. THiNC-API .................................................................................................................................19
Microsoft, Windows, Visual Studio, Visual Basic and Visual C++ are registered trademarks of
Microsoft Corporation in the U.S. and other countries.
1. Overview
With OSP API KIT, users can develop applications linked with OSP using OSP-API and THiNC-API.
Chapter 2 and subsequent chapters describe OSP-API and THiNC-API.
2. OSP-API
OSP-API (Application Programing Interface) is an API that runs on a client computer, and is for
running a Windows application for accessing OSP data via the network.
This document describes the setup procedure at Windows 10.
The screen details may differ if using another version of Windows. If this is the case, specify
settings as they appear on the screen for the applicable Windows OS.
- 1 -
2-2. Client Computer Settings
Administrator privileges (Administrator, etc.) are required to log on to the client computer.
The following command must be executed with administrator privileges. (*)
RXOSPAPI /RegServer
RXOSPAPI /UnregServer
- 2 -
2-3. OSP-P Settings
[Note] Specify the computer name and network address settings before connecting the
machine to the network.
Set these parameters after first checking with the system administrator.
[Note] The setting examples given in this manual are specified in consideration of ease of
connection, and do not necessarily offer complete security. If necessary, specify
settings which take security into consideration after checking with the system
administrator.
(2)
(1)
(3)
- 3 -
(4) Click “Change settings”.
(4)
(6)
(5)
(7)
(7) Click the [OK] button to return to the “System Properties” screen, and then press [OK] again to
close the screen.
Restart Windows.
- 4 -
2-3-2. Network Address Settings
Select Start * - (1) [Control Panel] - (2) [Network and Internet] - (3) [Network and Sharing
Center]. (*: Press the [CTRL] and [Cancel] keys simultaneously to display.)
(1)
(2)
(3)
(4)
(5)
- 5 -
(6) Click “Internet Protocol Version 4 (TCP/IPv4)”, and click the (7) [Properties] button.
(6)
(7)
(8) Select the “Use the following IP address:” option button, and set the (9) “IP address:” and
“Subnet mask:”, etc.
(8)
(9)
* If a DHCP server such as a Windows server or Internet router exists on the network, and
if able to automatically obtain the IP address from the server, select the "Obtain an IP
address automatically" option button.
- 6 -
2-3-3. Adding a User Account
Add a user account with the same user name and password as that used at the client computer
to OSP. This is necessary to access the communication interface when accessing the work
program folders on OSP from a client computer.
Select Start * - (1) [Control Panel] - (2) [System and Security] - (3) [Administrative Tools].
(*: Press the [CTRL] and [Cancel] keys simultaneously to display.)
(2)
(1)
(3)
(4)
- 7 -
(5) Select “Local Users and Groups” - “Users”.
(6) Select “New User...” from the “Action” menu.
(6)
(5)
(7)
(9) (8)
(10)
(11)
(11) Click the [Close] button.
- 8 -
2-3-4. Shared Folder Settings
Share the folder for work program files on OSP to enable operation from the client computer.
The “D:¥MD1” folder is assigned to the folder for work program files on OSP. The settings
required to share this folder with shared name "MD1" are as follows.
Select Start * - (1) [Explorer]. (*: Press the [CTRL] and [Cancel] keys simultaneously to display.)
(1)
(3)
(2)
(4)
(5)
- 9 -
(6) Select the “Share this folder” check box.
(7) If necessary, enter the “Share name:”. (The default is the same as the folder name.)
(8) Press the [Permissions] button.
(6)
(7)
(8)
(9)
(10)
(11)
[Note] In the above example, full control has been granted to everyone. Please note that in
order to enhance security, it is recommended that permissions should only be granted
to those specific users or groups added in "2.3.3 Adding a User Account".
- 10 -
2-3-5. COM Security Settings
Refer to the DCOMCNFG Help function for details on operation and settings for this tool.
Display the Start * menu, enter (1) "DCOMCNFG", and click the (2) “DCOMCNFG” item that
appears to run the DCOM configuration tool.
(2)
(1)
(2)
(1)
(3)
(4)
- 11 -
(5) Select the “COM Security” tab.
(5)
(6)
(9)
(7)
(8)
(9) Click the [Edit Limits...] button under "Launch and Activation Permissions".
(10) Select "Everyone", select the "Allow" check boxes for (11) "Local Launch", "Remote Launch",
"Local Activation", and "Remote Activation".
(10)
(11)
[Note] In (7) and (10) above, the “Allow” check boxes for "Local Access", “Local
Launch”, and “Local Activation” selected for “Everyone” must not be cleared.
(Windows will no longer start up normally if cleared.)
If necessary to enhance security, specify the settings indicated in “II. Individual
security settings”.
- 12 -
II. Individual security settings
(3)
(1) (2)
(4) (6)
(5)
(7)
- 13 -
(8) Click the [Advanced...] button.
(8)
(9)
(11)
(10)
(12) Ensure that the selected user (or group) has been entered for "Enter the object names to
select", and then click the [OK] button.
(12)
- 14 -
(14) Select the "Allow" check boxes for "Local Launch", "Remote Launch", "Local Activation", and
"Remote Activation" in the permissions area below, and then click the [OK] button.
(13)
(14)
- 15 -
□ Settings at other tabs
The default settings for other tabs are as follows.
- 16 -
2-3-6. Windows Firewall Settings
The Windows firewall should generally be set to the default "Off" setting. (OSP default status)
- 17 -
2-4. Checking Settings
To check the settings specified at previous sections, run a script file (MacId.VBS) used to obtain
the machine name at the client computer.
Run [Command Prompt] and jump to a folder containing a sample.
Execute a command in the following format.
> cscript MacId.vbs [/M] Remote
- 18 -
3. THiNC-API
THINC-API is an API for creating Windows applications that access OSP data running on OSP.
Leveraging the Microsoft .NET Framework, it is possible to create applications using a variety of
programming languages such as VB.NET, C #, MC ++, or compatible .NET languages. There is a
sample program and help in "program files¥okuma¥THINC API" on the THINC-API DVD. Please
refer to these for details.
- 19 -