Download CIMPLICITY HMI Tracking Operation Manual

Transcript
Prt.ServiceCount (Property Read)
Syntax:
Prt.ServiceCount
Description:
Contains a count of the number of Service found with a prior GetServiceList call.
Example:
Dim prt as new Prt
' Get a list of services from PRT
'
and display them one by one in a message box.
prt.GetServiceList
for j = 0 to prt.ServiceCount - 1
MsgBox prt.Service(j).Id
next j
PrtAttribute.Id (Property Read/Write)
Syntax:
PrtAttribute.Id
Description:
String property contains the attribute name of an Item ID .
Example:
Dim prt as new Prt
' Get a list of items from PRT and display the first item’s
'
attribute names and values one by one in a message box.
prt.GetItemList
for j = 0 to prt.Item(0).AttrCount - 1
MsgBox prt.Item(0).Attr(j).Id &"="& prt.Item(0).Attr(j).Value
next j
GFK-1216F
Appendix E - Basic Control Engine Extensions for Production Tracking
E-11