Example, Reference time stamp data read – Rockwell Automation 1336T PLC Comm. Adapter, Series B, FRN 2.xx-3.xx User Manual

Page 198

Advertising
background image

7–52

Publication 1336 FORCE–5.13 –– September, 1998

If an error occurs in the BTW, a value of -29952 is returned in word
2 of the BTR response.

Example

In this example, a reference time stamp data read was requested
through the BTW. Word 2 of the BTW defines this request with a
decimal value of 2816 for the PLC command code. The BTR
response indicates a successful request with a returned value of 2816
in BTR word 2. Words 4 through 7 then return the clock data. The
clock data indicates a time stamp of February 1995, the fifth day of
the week (Thursday), and a date of 23 (17 in ASCII). The hour,
minutes, and seconds change according to the time.

1

0

N10:10

2

3

4

5

6

7

8

9

N10:90

BTW
Data File

BTR
Data File

Data Format

0

0

7681

3

0

2816

2816

3594

5893

1282

N10:90

0E\01 0E\0A 17\05 05\02

S\.1S

Hr\Min Date\Day Yr\Mth

ASCII Display Values

Reference Time Stamp Data
Read

(continued)

Advertising