How can we help?

SRC Constants and Variables

You are here:
< All Topics

Standard SRC Source Variables

The Standard Status Relay Controller has 8 discrete inputs and 6 discrete outputs. Seven of the inputs can be accessed within the DataXchange Expression Builder using the following expression syntax. The eighth input is used as a part counter. Standard Constants and Variables are available for both the Standard and Extended SRC.

 Variable NameSyntax
Connect Time[SRC.connect_time]
Connected Time[SRC.connected_time]
SRC Input X001[SRC.X001]
SRC Input X002[SRC.X002]
SRC Input X003[SRC.X003]
SRC Input X004[SRC.X004]
SRC Input X005[SRC.X005]
SRC Input X006[SRC.X006]
SRC Input X007[SRC.X007]
SRC Input X008[SRC.X008]
SRC Part Count[SRC.part_count]

All of the variables also have a corresponding Previous variable which will hold the status from the last time a poll took place.

 Variable NameSyntax
Connect Time (Previous)[SRC.prev_connect_time]
Connected Time (Previous)[SRC.prev_connected_time]
SRC Previous Input X001[SRC.prev_X001]
SRC Previous Input X002[SRC.prev_X002]
SRC Previous Input X003[SRC.prev_X003]
SRC Previous Input X004[SRC.prev_X004]
SRC Previous Input X005[SRC.prev_X005]
SRC Previous Input X006[SRC.prev_X006]
SRC Previous Input X007[SRC.prev_X007]
SRC Previous Input X008[SRC.prev_X008]
SRC Part Count[SRC.prev_part_count]

SRC Constants

The SRC Constants are used to identify the state of the input or output.

 Constant NameSyntax
ALTERNATING[SRC.ALTERNATING]
HIGH[SRC.HIGH]
LOW[SRC.LOW]

SRC Target Variables

The SRC has capability to use the outputs with a continuous or a pulsed signal. The continuous signal will set the any one of the outputs to either the High or Low state. The pulsed output will set any one of the outputs to a High state for the defined duration in milliseconds, then the output will go to the Low state.

 Variable NameSyntax
SRC Output Y001 Continuous[SRC.CY001] {state}
SRC Output Y002 Continuous[SRC.CY002] {state}
SRC Output Y003 Continuous[SRC.CY003] {state}
SRC Output Y004 Continuous[SRC.CY004] {state}
SRC Output Y005 Continuous[SRC.CY005] {state}
SRC Output Y006 Continuous[SRC.CY006] {state}

The syntax in curly brackets is information that must be replaced. In this case, {state} needs to be replaced with either H or L for High or Low states respectively.

For example, to set it to the high state use the following target:

SRC.CY002{H}

 Variable NameSyntax
SRC Output Y001 Pulse[SRC.PY001] {ms}
SRC Output Y002 Pulse[SRC.PY002] {ms}
SRC Output Y003 Pulse[SRC.PY003] {ms}
SRC Output Y004 Pulse[SRC.PY004] {ms}
SRC Output Y005 Pulse[SRC.PY005] {ms}
SRC Output Y006 Pulse[SRC.PY006] {ms}

The syntax in curly brackets is information that must be replaced. In this case, {ms} needs to be replaced with the length of the pulse in milliseconds.

For example, to use a pulse time of 5 seconds, that would be 5000 ms as follows:

SRC.PY002{5000}

Extended SRC Source Variables

The Extended Status Relay Controller has 8 additional discrete inputs. Unlike the Standard SRC, these can not be adjusted for additional functionality. They will only report values of High and Low.

 Variable NameSyntax
SRC Input X101[SRC.X101]
SRC Input X102[SRC.X102]
SRC Input X103[SRC.X103]
SRC Input X104[SRC.X104]
SRC Input X105[SRC.X105]
SRC Input X106[SRC.X106]
SRC Input X107[SRC.X107]
SRC Input X108[SRC.X108]
Integer Conversion of X101 -X108[SRC.integer]

All of the variables also have a corresponding Previous variable which will hold the status from the last time a poll took place.

 Variable NameSyntax
SRC Previous Input X101[SRC.prev_X101]
SRC Previous Input X102[SRC.prev_X102]
SRC Previous Input X103[SRC.prev_X103]
SRC Previous Input X104[SRC.prev_X104]
SRC Previous Input X105[SRC.prev_X105]
SRC Previous Input X106[SRC.prev_X106]
SRC Previous Input X107[SRC.prev_X107]
SRC Previous Input X108[SRC.prev_X108]
The Previous Integer Conversion of X101 -X108[SRC.prev_integer]

Extended SRC Constants

The SRC Constants are used to identify the state of the input or output.

 Constant NameSyntax
HIGH[SRC.HIGH]
LOW[SRC.LOW]

Extended SRC Analog Variables

These are the returned values from the analog inputs on the extended SRC.  The SRC can be configured with a custom number range based off the original 4 – 20 milliamps. More information 

 Variable NameSyntax
SRC Input AI01[SRC.AI01]
SRC Input AI02[SRC.AI02]
SRC Input AI03[SRC.AI03]
SRC Input AI04[SRC.AI04]

All of the variables also have a corresponding Previous variable which will hold the status from the last time a poll took place.

 Variable NameSyntax
SRC Previous Input AI01[SRC.prev_AI01]
SRC Previous Input AI02[SRC.prev_AI02]
SRC Previous Input AI03[SRC.prev_AI03]
SRC Previous Input AI04[SRC.prev_AI04]
Table of Contents