Outcodes – Rockwell Automation FactoryTalk Historian SE DataLink 4.2 User Guide User Manual

Page 112

Advertising
background image

FactoryTalk Historian DataLink User Guide

104

Outcodes

FactoryTalk Historian DataLink function syntax includes integer outcode
arguments. The outcodes determine how appended data (page 22) are
returned and output cells are oriented.

Outcodes are automatically generated by function dialog boxes and task
panes. However, if you enter a function manually in Excel's function bar,
you may need to calculate and include appropriate outcode values yourself.

A function outcode is a decimal representation of binary bits. In
FactoryTalk Historian DataLink, bits carry the following meanings:

1st bit: Show Timestamps bit

2nd bit: Orientation bit (columns/row)

3rd bit: Show Percent Good bit

4th bit: Hide Count bit

5th bit: Show Extended Status bit

6th bit: Show Annotations bit

7th bit: Show Start Time

8th bit: Show End Time

9th bit: Show Min/Max Time

For example, a 0 outcode in a PICurrVal() function results in a current
snapshot value in the designated output cell. An outcode of 1 places a time
stamp in column one and the snapshot value in column two of a 1 x 2
array. An outcode of 2 places a time stamp in row one and the snapshot
value in row two of a 2 x 1 array.

Advertising