CommandID Property

General info

Label

Command ID

Description

Identifies a command taken from the command stack.

Data type

UInt64

Type

Regular

Code

138

Symbolic name

MODEL_PROP_COMMANDID

Lua access code

syslib.model.properties.CommandID

Available since

1.0

Parent classes

Core

Attributes

Name Tooltip
PROP_VOLATILE The property exists during runtime of the service only and is not saved to the image.
PROP_INCREMENT The property value is incrementing on reads.

Examples

Read from or write to the CommandID property.

  • Lua

  • C#

-- Read from the CommandID
syslib.getvalue("<OBJECT FULL PATH>.CommandID")

-- Write to the CommandID
syslib.setvalue("<OBJECT FULL PATH>.CommandID", VALUE)
TcpConfig tcpcfg = new TcpConfig() { HostNameOrIp = "localhost", Port = 6512 };
SecurityCredentials sc = new SecurityCredentials() { ProfileName = "<username>", Password = "<password>" };
StatelessInterface sli = new StatelessInterface(tcpcfg);

// Read from the CommandID
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.CommandID"));
// Write to the CommandID
Result result = sli.WriteValue(sc, new WriteItem(VALUE, "<OBJECT FULL PATH>.CommandID"));