Configuring Properties

<< Click to Display Table of Contents >>

 

Configuring Properties

Configuration parameters to communicate with devices are available on this Driver's properties window. In addition to this properties window, these settings can also be defined at run time in Elipse E3, Elipse Power, or Elipse Water applications. To do so, initialize this Driver in Offline mode, that is, execute an application with the Start driver OFFLINE option enabled, which is configured on the Setup tab of the properties window. The configuration options of this Driver are described on the next table.

Configuration options for CPI CIF Driver

Tab

Parameter

Offline String

Data Type

Description

CIF

Header/Ending Option

CIF.Header/Ending

Number

Defines a format for bytes of message headers and endings. Valid values for this option are 0: STX/ETX - STX/ACK/NAK on header and ETX on ending or 1: ASCII - '{' on header and '}' on ending

Check Option

CIF.Check

Number

Defines a method to calculate a byte check. Valid values for this option are 0: Parity or 1: Checksum. The Checksum option can only be used if the Header/Ending option is configured as 1 (one, ASCII)

Append Options

CIF.Append.CR

CIF.Append.LF

Number

Enables or disables appending Carriage Return (CR) or Line Feed (LF) bytes at the end of each message sent. Valid values for this option are 0: Disabled or 1: Enabled

Setup

Physical Layer

IO.Type

Text

Physical layer. By default, use the Ethernet option

Timeout

IO.TimeoutMs

Number

A time limit, in milliseconds, to receive data from a device's response. For example, the value 1000 defines a limit of 1 (one) second

Ethernet

Transport

IO.Ethernet.Transport

Text

Transport layer. By default, use the TCP option

Main IP

IO.Ethernet.MainIP

Text

IP address of a device, in the format [0-255].[0-255].[0-255].[0-255]

Port

IO.Ethernet.MainPort

Number

TCP/IP addressing port

 

All properties can be configured via Tags in String format, by using the syntactic parameter Item with "IO.SetConfigurationParameters" or the N1 parameter equal to -1 (minus one), N2 equal to 0 (zero), N3 equal to 0 (zero), and N4 equal to 3 (three). For more details and examples, please check topic Documentation of I/O Interfaces.

Was this page useful?