The information provided below is intended to assist you in properly addressing a CIP driver tag.
|
Address |
Description |
IOI String |
|
Tag_Name |
Reads the Tag Tag_Name |
Tag_Name |
|
Tag_Name[n] |
Reads element n from Array Tag_Name |
Tag_Name(n) |
|
Tag_Name[n,m] or Tag_Name[n][m], etc. |
Reads element m from 2D Array Tag_Name |
Tag_Name(n)m |
|
Tag_Name.Attribute |
Reads Attribute from structure Tag_Name |
Tag_Name Attribute |
|
Tag_Name[n].Attribute |
Reads Attribute from structure in Array Tag_Name, Element n |
Tag_Name(n) Attribute |
Examples:
|
Address |
Description |
|
SetPoint |
Read the value of the tag SetPoint. |
|
Analog_Data[4] |
Read the value of element 4 of the Analog Data Array. |
|
Timers[6].PRE |
Read the value of the Preset Attribute of the 6th timer in the Timers Array. |
|
Inputs[5,9] |
Read the 9th Element of the Inputs 2 dimensional array. |
CIP Driver Tag Modifiers:
When writing to an address in the PLC, a Tag modifier must be specified. When reading a structure (e.g. a String) the tag modifier instructs the driver on how to decode the structure. At present only two structure types are supported: string and structure (which returns a stream representation of the structure which can be decoded be a custom tag type).
|
Modifier |
Description |
|
Address|BOOL |
Boolean |
|
Address|SINT |
8-bit signed integer |
|
Address|INT |
16-bit signed integer |
|
Address|DINT |
32-bit signed integer |
|
Address|REAL |
32-bit Real (float) |
|
Address|DWORD |
32-bit collection |
|
Address|STRING |
String [structure] value |
|
Address|STRUCT |
Returns a stream of a structure type Tag_Name |
CIP Driver Tag Modifiers:
Arrays of BOOLs are addressed differently than other arrays. For example if there is a TestBOOL[200] array defined, it can be read using TestBOOL.42 (i.e. read element 42).