X hits on this document

535 views

0 shares

4 downloads

0 comments

69 / 133

69

Allen-Bradley ControlLogix Ethernet Driver Help

ASCII equivalent of the REAL value (clamped to 255). Example: SINT = 65dec = "A".

2. If accessing more than a single element, the Controller Tag must be an array. The value of the string will be the null- terminated ASCII equivalent of all the REALs (clamped to 255) in the string.

1 character in string = 1 REAL, clamped to 255

Note: REAL strings are not packed. For greater efficiency, use SINT strings or the STRING structure instead.

*non-zero values will be clamped to true. **Values exceeding 255 will be clamped to 255. ***Values exceeding 65535 will be clamped to 65535. ****Float value will be a valid IEEE single precision Floating point number.

Examples Examples highlighted in yellow signify common use cases.

REAL Controller Tag - realtag = 512.5 (decimal)

Server Tag Address

Format

Data Type

Notes

realtag realtag realtag realtag realtag realtag [3] realtag [3] realtag {3} realtag {1} realtag {1}

realtag [3] {1} realtag . 3 realtag . 0 {32}

realtag / 1 realtag / 4

Standard

Boolean

Standard

Byte

Standard

Word

Standard

DWord

Standard

Float

Array Element

Boolean

Array Element

DWord

Array w/o Offset

DWord

Array w/o Offset

Float

Array w/o Offset

Boolean

Array w/ Offset

Float

Bit

Boolean

Array w/o Offset

Boolean

String String

String String

Value = true Value = 255 Value = 512 Value = 512 Value = 512.5 Invalid: Tag not an array. Also, Boolean is invalid. Invalid: Tag not an array. Invalid: Tag not an array. Value = [512.5] Invalid: Bad data type. Invalid: Tag not an array. Value = true

Value = [0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,...0] Bit value for 512

Value = unprintable character = 255 decimal Invalid: Tag not an array.

Address Format Standard Standard Standard Standard Standard

Data Type Boolean Byte Word DWord Float Float

Notes Invalid: Tag cannot be an array. Invalid: Tag cannot be an array. Invalid: Tag cannot be an array. Invalid: Tag cannot be an array. Invalid: Tag cannot be an array. Invalid: Server Tag missing dimension 2 address.

[3]

Array Element

[1,3]

Array Element

Boolean

Invalid: Boolean not allowed for array elements.

[1,3]

Array Element

Float

Value = 259.8

{10}

Array w/o Offset

Byte

Value = [82,69,65,76,255,255,255,255,9,10]

{2} {5}

Array w/o

Float

Value = [82.1,69.2,65.3,76.4,256.5]

realarraytag

= [[82.1,69.2,65.3,76.4], .0],[13.0,14.0,15.0,16.0]]

realarraytag

Controller Tag - reala .6,258.7,259.8],[9.0

rraytag [4,4] ,10.0,11.0,12

realarraytag

realarraytag

REAL Array [256.5,257

Server Tag realarraytag realarraytag realarraytag realarraytag realarraytag realarraytag

www. kepware.com

Document info
Document views535
Page views557
Page last viewedThu Dec 08 15:08:02 UTC 2016
Pages133
Paragraphs5515
Words40931

Comments