Driver-specific functions

Previous chapterNext chapter Show allShow all    Hide allHide all

This driver supports the following functions:

Time synchronization

By writing to a variable of Type C_CS_NA_1 (T103), the current time of the PC is sent to the PLC. The IOA of these variables must be 0.

Time synchronization in reverse direction:

The driver can accept and evaluate a T103 telegram in reverse direction from the device. If the device sends a T03 telegram, the time on the PC will be taken from the device, however only if the difference between the device time and the PC time does not exceed the configured maximum difference (see driver dialog basic setting).

General request

A general request can be re-executed at a later time. In order to do so, a variable of type C_IC_NA_1 (T100) must be written to. The IOA of these variables must be 0. While the general request is active, the value of this variable is 1. If the general request could not be executed correctly, this variable will receive I-Bit. Variables of type T100 can be created separately for every sector. This allows you to check whether the sectors of a device can be reached.

Connection status

The current connection status can be requested via a USINT variable of type "internal state" (T00). If the value of this variable is 5, this means that a connection is active and that the general request was finished successfully.

Filetransfer

There are three implemented functions for the file transfer. The first is for getting the directory, the second for getting files and the third is for deleting files.
To request a directory, the target value "DIR" (for the root directory) or „DIR n.m" (for a subdirectory) must be sent to a String variable of type "call directory / call file" (T122). n is the IOA of the subdirectory, whereas m is the NameOfFile. If the directory was received successfully, the String variable of type "directory" (T126) contains the directory contents as readable text. The format of the files is as follows:

IOA.NameOfFile;FileLength;Timestamp;SOF

In order to get a file from the PLC, a target value "GET n.m" must be sent to a String variable of type "call directory / call file" ( T122). n is the IOA of the file, whereas m is the NameOfFile. If the file was received successfully, it is put into the directory set as "Directory for file transfer". A new subfolder is created for every COA.

Example: Get the file with IOA 1 and NameOfFile 10 from sector 151

Send the target value "GET 1.10" to a variable of type T122 and COA 151.
The file is stored in the folder C:\TEMP\IEC870\151\1.10 .

In order to delete a file from the PLC, a target value "DEL n.m" must be sent to a String variable of type "call directory / call file" ( T122). n is the IOA of the file, whereas m is the NameOfFile.

Select & execute

The command input must be used in order to use "select & execute". For that, the option "select before operate" of the variable must be activated.

"Direct execute" is always used for the setting of target values via the standard set value functionality.

Limitations

See IEC60870-5-101/104 interoperability list for information about supported communication parameters and type names.

"select and execute" can only be used for command input. Otherwise, "direct execute" will be used.