Configuration by Syntactical Parameters

<< Click to Display Table of Contents >>

 

Configuration by Syntactical Parameters

Use the following syntax for each field in E3 or Elipse Power:

Device: Insert the device's address on the network. If it is equal to 0 (zero) and the selected protocol is different from ISOTCP or ISOTCP243, then it is replaced by the Default Slave Address. If the selected protocol is ISOTCP or ISOTCP243, this value must be left as 0 (zero). The Device field may also be left blank, as long as it is inserted in the Item field before the colon symbol

Item: This field must obey one of the defined syntaxes described next

 

Use the following general syntax if area is not equal to DB. Values inside brackets are optional:

<[Device:]><Area><[Type]><Address>[.Bit]

 

Where:

Device: PLC address as exposed in the Device item, if it was not informed in that field

Area: Data area inside the PLC. The following options can be used:

S

SM

AI (Analog Input)

AQ (Analog Output)

C (Counter)

T (Timer)

I (Digital Input)

Q (Digital Output)

M (Memory)

HC (High Speed Counter)

Type: Data type to read. The next table shows all possible symbols for these data types

Available options for data types

Data Type

Meaning

X

Used to extract a bit from a byte

B

Byte

W

Word

D

DWord

I

Int

LI

DInt

F

Float

S

String

WS

WString

S5T

S5Time

RB

Byte (LSB First)

RW

Word (LSB First)

RD

DWord (LSB First)

RI

Int (LSB First)

RLI

DInt (LSB First)

SW

Word (least significant byte first)

SD

DWord (least significant byte first)

SI

Int (least significant byte first)

SLI

DInt (least significant byte first)

 

NOTES

LSB First data types mean the bit order is least significant bit comes first and its interpretation is as the reverse of the other data types.

Data types with the least significant byte first mean the byte order is least significant byte comes first and most significant byte comes last.

 

Address: Numerical address to read

Bit: Optional informing the bit from a word to read or write, between 0 (zero) and 31

 

Example:

(PLC 4, bit 1 from memory at address 10)
Device: Blank - Item 4:M10.1

 

If the data area is equal to DB, also known as V, use the following syntax. Values inside brackets are optional:

<[Device:]>DB<DBNumber>:<Type><Address><[.Bit]>

 

Device: Refers to the same optional item of the general syntax

DBNumber: Fill it in with the DB number. If the memory contains a single or unspecified DB block, fill it in with value 1 (one)

Address: Numerical address (offset) to read

Bit: Optional value informing the bit of a type to read or write, between 0 (zero) and 31

 

Available options for data types on DB data areas

Data Type

Meaning

DBX

Used to extract a bit from a byte in a DB

DBB

Used to read or write a byte in a DB

DBW or DW

Used to read or write a Word in a DB

DBD or DD

Used to read or write a Double Word in a DB

DBI or DI

Used to read or write a Int in a DB

DBLI or DLI

Used to read or write a DInt in a DB

DBF or DF

Used to read or write a Floating Point (32-bit real) in a DB

DBS or DS

Used to access a String in a DB

DBWS or DWS

Used to access a WString in a DB

DBS5T

Used to access an S5Time-type timer in a DB

DBB

Used to read or write a byte in a DB (LSB First)

DBW or DW

Used to read or write a Word in a DB (LSB First)

DBD or DD

Used to read or write a Double Word in a DB (LSB First)

DBI or DI

Used to read or write a Int in a DB (LSB First)

DBLI or DLI

Used to read or write a DInt in a DB (LSB First)

SDBW or SDW

Used to read or write a Word in a DB (least significant byte first)

SDBD or SDD

Used to read or write a Double Word in a DB (least significant byte first)

SDBI or SDI

Used to read or write a Int in a DB (least significant byte first)

SDBLI ou SDLI

Used to read or write a DInt in a DB (least significant byte first)

 

Examples:

(PLC 2, Word starting at address 20 of DB1)
Device: 2 - Item: DB1:DW20
(Same as the previous one, but Device was informed in the Item field)
Device: Empty - Item: 2:DB1:DW20
(PLC 7, DB 5, bit 2 from byte 7)
Device: Empty - Item: 7:DB5:DBX7.2

 

The syntax for String or WString data types in the DB data area is the following:

<[Device:]>DB<DBNumber>:DBS<Address><[Maximum length]>

 

Where:

Device, DBNumber, and Address: Refer to the same items of the general syntax

Maximum length: Optional informing the maximum length declared on the String or WString. If it is not informed, then it considers the maximum default length of the String (254 characters) or of the WString (16382 characters)

 

Examples of syntax for Strings:

(PLC 2, String starting at address 16 of DB17,
using PLC's maximum default length)
Device: 2 - Item: DB17:DBS16
(same as the previous one, but Device was informed in the Item field
and with a maximum allocated length of 25 characters)
Device: Empty - Item: 2:DB17:DBS16[25]
(PLC 4, String starting at address 100 of DB10,
with a maximum allocated length of 50 characters)
Device: Empty - Item 4:DB10:DS100[50]

Was this page useful?