Tag Address Configuration
- Last UpdatedDec 16, 2021
- 2 minute read
The tags supported by OPCLX are:
-
Controller tags
-
Program tags.
Controller Tags
Controller tags contain data which is accessible to the programs within the RSLogix project. When controller tag is configured in OPC gateway, the same can be configured in the Plant SCADA in the following formats depending on the OPC server:
[OPCTopic]TagName
Syntax with the FactoryTalk and RSLinx Classic is the same in case of controller tags.
The table below describes the syntax and example for configuring controller tags:
|
Address |
Plant SCADA type |
OPCLX type |
Example |
|---|---|---|---|
|
[OPCTopic]<item_id> |
DIGITAL |
VT_BOOL |
[OPCLX_test]bool_symbol |
|
[OPCTopic]<item_id> |
BYTE |
VT_UI1 |
[OPCLX_test]byte_symbol |
|
[OPCTopic]<item_id> |
INT |
VT_I2 |
[OPCLX_test]int_symbol |
|
[OPCTopic]<item_id> |
LONG |
VT_I4 |
[OPCLX_test]long_symbol |
|
[OPCTopic]<item_id> |
REAL |
VT_R4 |
[OPCLX_test]real_symbol |
|
[OPCTopic]<item_id> |
STRING |
VT_ARRAY of |
[OPCLX_test]bool_symbol |
Program Tags
Program tags contain data that is used exclusively within a program in RSLogix project. When a program tag is configured in OPC gateway, the same can be configured in Plant SCADA in the following formats depending on the OPC server:
Syntax with the FactoryTalk OPC server is:
::[OPCTopic]Program:MainProgram.<TagName>
Syntax with the RSLinx Classic OPC server is:
[OPCTopic]Program:MainProgram.<TagName>
The table below describes the syntax and example for configuring program tags RSLinx Classic:
|
Address |
Plant SCADA type |
OPCLX type |
Example |
|---|---|---|---|
|
[OPCTopic]<Program:MainProgram>. |
DIGITAL |
VT_BOOL |
[OPCLX_test] |
|
[OPCTopic]<Program:MainProgram>. |
BYTE |
VT_UI1 |
[OPCLX_test] |
|
[OPCTopic]<Program:MainProgram>. |
INT |
VT_I2 |
[OPCLX_test] |
|
[OPCTopic]<Program:MainProgram>. |
LONG |
VT_I4 |
[OPCLX_test] |
|
[OPCTopic]<Program:MainProgram>. |
REAL |
VT_R4 |
[OPCLX_test] |
|
[OPCTopic]<Program:MainProgram>. |
STRING |
VT_ARRAY of |
[OPCLX_test] |
The table below describes the syntax and examples for configuring program tags FactoryTalk:
|
Address |
Plant SCADA type |
OPCLX type |
Example |
|---|---|---|---|
|
::[OPCTopic]<Program:MainProgram>. |
DIGITAL |
VT_BOOL |
::[OPCLX_test] |
|
::[OPCTopic]<Program:MainProgram>. |
BYTE |
VT_UI1 |
::[OPCLX_test] |
|
::[OPCTopic]<Program:MainProgram>. |
INT |
VT_I2 |
::[OPCLX_test] |
|
::[OPCTopic]<Program:MainProgram>. |
LONG |
VT_I4 |
::[OPCLX_test] |
|
::[OPCTopic]<Program:MainProgram>. |
REAL |
VT_R4 |
::[OPCLX_test] |
|
::[OPCTopic]<Program:MainProgram>. |
STRING |
VT_ARRAY of |
::[OPCLX_test] |