FC_RemoteDeviceCreate - General Information

Overview

Type:

Function

Available as of:

SystemInterface_1.32.6.0

Versions:

Current version

Task

Set up a device for file services on another controller or PC.

Description

This function creates a "remote file device" with the name i_sDevName. A network device has to be created for every remote computer whose data shall be reached.

The remote computer is specified with its IP address i_sHostIpAddr.

A network device name can follow the computer device name with a ":". The files are accessed transparently using FTP client services. An FTP server must be configured to be able to access a remote computer. When you open a remote file, the entire file is copied via the network to a local buffer. If a remote file is created, then an empty local buffer is opened. The read and write access operations are performed on the local copy of the file. If the file was opened for writing and changing, the local copy is sent back via the network to the remote computer when the file is closed.

NOTE: When you access the RemoteDevice, the subdirectories may not contain the "root" string.
NOTE: It is only possible to create one "remote file device".

Interface

Input

Data type

Description

i_sDevName

STRING [80]

Name of the "remote file device"

i_sHostIpAddr

STRING [80]

IP address of the remote computer

Return Value

Data type

Description

DINT

0: OK

Otherwise: Error detected

Examples

 FC_RemoteUserIdSet('otto','secret');  
 FC_RemoteDeviceCreate('usr:', '190.201.100.99');  
 FC_Open_WriteFile( 'usr:\myfile' );