Tag Reference

<< Click to Display Table of Contents >>

 

Tag Reference

Write-Only

Block Tags are needed to perform writings. The Block Element 0 (zero) of this Block Tag always corresponds to protocol's function code. Block Elements from 1 (one) to 3 (three) contains the values to write. Use a Block Tag's size compatible with the number of bytes used by a function.

 

Description

N1

Element 0

Element 1

Element 2

Element 3

Functions without data

0 (zero)

Function

-

-

-

Functions with 1 (one) byte of data

1 (one)

Function

Byte #1

-

-

Functions with 2 (two) bytes of data

2 (two)

Function

Byte #1

Byte #2

-

Functions with 3 (three) bytes of data

3 (three)

Function

Byte #1

Byte #2

Byte #3

 

Example of Writing Blocks Using VBScript

' Writing to Block Tag cmd_b
' (B1.B2.B3.B4 = 1.0.0.0, size of two Block Elements)
' Declares an array with two positions
Dim v(1)
' Function code = 128 d = 80
' h = prevents accessing a remote station during a scan
v(0) = 128
' 3 d = 3 h = number of a remote station
v(1) = 3
' Writes array v to Block Tag cmd_b
Application.GetObject("Driver.Writings.cmd_b").WriteEx v, Now, 192

 

Read-Only

Block Tags are needed to perform readings. The Block Element 0 (zero) of this Block Tag always corresponds to protocol's function code. Block Elements from 1 (one) to 3 (three) contain the values to read. Use a Block Tag's size compatible with the number of bytes used by a function.

 

NOTE

All communications performed by this Driver are asynchronous, that is, the return of a writing command does not imply on an immediate reception of a reading response. Therefore, this Driver returns to an application, based on a callback mechanism, responses as they are received. Thus, the scan time of Tags and the time-out of this Driver are not considered during readings.

 

Description

N1

Element 0

Element 1

Element 2

Element 3

Functions without data

4 (four)

Function

-

-

-

Functions with 1 (one) byte of data

5 (five)

Function

Byte #1

-

-

Functions with 2 (two) bytes of data

6 (six)

Function

Byte #1

Byte #2

-

Functions with 3 (three) bytes of data

7 (seven)

Function

Byte #1

Byte #2

Byte #3

Was this page useful?