PlcENIPSlot Property

General info

Label

Slot

Description

The slot number of the CPU on the rack containing the EtherNet/IP card. If a path is specified, the slot number is ignored. If either slot or path is not specified, the rack is scanned and the first CPU found is used.

Data type

UInt32

Min value

0

Type

Regular

Code

6473

Symbolic name

MODEL_PROP_PLCENIPSLOT

Lua access code

syslib.model.properties.PlcENIPSlot

Available since

1.52

Parent properties

PlcENIPAdvanced

Attributes

Name Tooltip
PROP_CONFIGURABLE The property is configurable and can be changed with DataStudio and the various inmation APIs.
PROP_VISIBLE The property is visible in DataStudio and can be read by the inmation APIs.
PROP_HAS_LOLIMIT The property has a low limit.
PROP_NULLABLE This Property can have no value.

Examples

Read from or write to the PlcENIPSlot property.

  • Lua

  • C#

-- Read from the PlcENIPSlot
syslib.getvalue("<OBJECT FULL PATH>.PlcABLogix5000Device.PlcABLogix5000ENIPParam.PlcENIPAdvanced.PlcENIPSlot")

-- Write to the PlcENIPSlot
syslib.setvalue("<OBJECT FULL PATH>.PlcABLogix5000Device.PlcABLogix5000ENIPParam.PlcENIPAdvanced.PlcENIPSlot", 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 PlcENIPSlot
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.PlcABLogix5000Device.PlcABLogix5000ENIPParam.PlcENIPAdvanced.PlcENIPSlot"));
// Write to the PlcENIPSlot
Result result = sli.WriteValue(sc, new WriteItem(VALUE, "<OBJECT FULL PATH>.PlcABLogix5000Device.PlcABLogix5000ENIPParam.PlcENIPAdvanced.PlcENIPSlot"));