Class: CIPClass

CIPClass

Class for accessing instance of this class, as defined in the memory map. Instances are accessed using instances or instance.


Members


<readonly> instances :Array.<cip.UDT>

Gets the available instances of the class in an array.

Type:
Since:
  • 1.3 (WAT 1.3)

<readonly> name :string

Gets the name of the class, as defined in the memory map

Type:
  • string
Since:
  • 1.0 (WAT 1.0)

<readonly> number :number

Gets the class number, as defined in the memory map

Type:
  • number
Since:
  • 1.0 (WAT 1.0)

Methods


instance(num)

Gets an instance of the class, if it has been defined in the memory map. The first instance is 1.

This method may also be accessed using the short name 'i' instead of the full name 'instance'.

Parameters:
Name Type Description
num number

Instance number to get, starts at 1.

Since:
  • 1.0 (WAT 1.0)
Returns:
Type
cip.CIPVar