Skip to main content
Version: 8.1

system.iec61850.readFile

New in 8.1.25


This function is used in Python Scripting.

Description

This function downloads remote files from the configured IEC 61850 device to an identified local path.

Client Permission Restrictions

This scripting function has no Client Permission restrictions.

Syntax

system.iec61850.readFile(deviceName, remoteFilePath, localFilePath)

Parameters

TypeParameterDescription
StringdeviceNameThe name of the configured IEC 61850 device.
StringremoteFilePathThe remote file path on the server of the file to read.
StringlocalFilePathThe local file path on client to store the file contents.

Returns

No return value.

Scope

Gateway, Perspective Session

Code Examples

Example #1
# This example reads the file contents from device remote file path.
# The read file is stored in the local file path.

# Ignition 61850 Device Name
device_name = 'IEC61850'

# File name you wish to read for the 61850 Device
file_name = 'COMFEDE.ced'

# Full Path where the file will be read from the 61850 device
file_path = '/{0}'.format(file_name)

# Full Path where to store your file on your Ignition Gateway
local_path = '/usr/local/bin/ignition/COMFEDE/{0}'.format(file_name)


system.iec61850.readFile(device_name, file_path, local_path)

Keywords

system iec61850 readFile system.iec61850.readFile