Documentation ¶
Index ¶
- Constants
- func NeedsResolving(plcTag apiModel.PlcTag) bool
- func NewAdsSymbolicPlcTag(symbolicAddress string, arrayInfo []apiModel.ArrayInfo) (apiModel.PlcTag, error)
- func NewDirectAdsPlcTag(indexGroup uint32, indexOffset uint32, valueType apiValues.PlcValueType, ...) (apiModel.PlcTag, error)
- type AdsSubscriptionHandle
- func (t *AdsSubscriptionHandle) GetDirectTag() DirectPlcTag
- func (t *AdsSubscriptionHandle) GetNumConsumers() int
- func (t *AdsSubscriptionHandle) PublishPlcValue(value apiValues.PlcValue)
- func (t *AdsSubscriptionHandle) Register(consumer apiModel.PlcSubscriptionEventConsumer) apiModel.PlcConsumerRegistration
- func (d *AdsSubscriptionHandle) Serialize() ([]byte, error)
- func (d *AdsSubscriptionHandle) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
- func (d *AdsSubscriptionHandle) String() string
- type Configuration
- type DirectPlcTag
- func (m DirectPlcTag) GetAddressString() string
- func (m DirectPlcTag) GetArrayInfo() []apiModel.ArrayInfo
- func (m DirectPlcTag) GetValueType() apiValues.PlcValueType
- func (m DirectPlcTag) MarshalXMLAttr(name xml.Name) (xml.Attr, error)
- func (m DirectPlcTag) Serialize() ([]byte, error)
- func (m DirectPlcTag) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
- func (m DirectPlcTag) String() string
- type PlcTag
- type SubscriptionEvent
- type SymbolicPlcTag
- func (m SymbolicPlcTag) GetAddressString() string
- func (m SymbolicPlcTag) GetArrayInfo() []apiModel.ArrayInfo
- func (m SymbolicPlcTag) GetValueType() apiValues.PlcValueType
- func (m SymbolicPlcTag) Serialize() ([]byte, error)
- func (m SymbolicPlcTag) SerializeWithWriteBuffer(writeBuffer utils.WriteBuffer) error
Constants ¶
View Source
const NONE = int32(-1)
Variables ¶
This section is empty.
Functions ¶
func NeedsResolving ¶
func NewAdsSymbolicPlcTag ¶
Types ¶
type AdsSubscriptionHandle ¶
type AdsSubscriptionHandle struct {
// contains filtered or unexported fields
}
func NewAdsSubscriptionHandle ¶
func NewAdsSubscriptionHandle(subscriber spi.PlcSubscriber, tagName string, directTag DirectPlcTag, _options ...options.WithOption) *AdsSubscriptionHandle
func (*AdsSubscriptionHandle) GetDirectTag ¶
func (t *AdsSubscriptionHandle) GetDirectTag() DirectPlcTag
func (*AdsSubscriptionHandle) GetNumConsumers ¶
func (t *AdsSubscriptionHandle) GetNumConsumers() int
func (*AdsSubscriptionHandle) PublishPlcValue ¶
func (t *AdsSubscriptionHandle) PublishPlcValue(value apiValues.PlcValue)
func (*AdsSubscriptionHandle) Register ¶
func (t *AdsSubscriptionHandle) Register(consumer apiModel.PlcSubscriptionEventConsumer) apiModel.PlcConsumerRegistration
func (*AdsSubscriptionHandle) Serialize ¶
func (d *AdsSubscriptionHandle) Serialize() ([]byte, error)
func (*AdsSubscriptionHandle) SerializeWithWriteBuffer ¶
func (d *AdsSubscriptionHandle) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
func (*AdsSubscriptionHandle) String ¶
func (d *AdsSubscriptionHandle) String() string
type Configuration ¶
type Configuration struct { SourceAmsNetId readWriteModel.AmsNetId SourceAmsPort uint16 TargetAmsNetId readWriteModel.AmsNetId TargetAmsPort uint16 }
func ParseFromOptions ¶
type DirectPlcTag ¶
type DirectPlcTag struct { PlcTag IndexGroup uint32 IndexOffset uint32 ValueType apiValues.PlcValueType StringLength int32 DataType readWriteModel.AdsDataTypeTableEntry }
func CastToDirectAdsTagFromPlcTag ¶
func CastToDirectAdsTagFromPlcTag(plcTag apiModel.PlcTag) (DirectPlcTag, error)
func (DirectPlcTag) GetAddressString ¶
func (m DirectPlcTag) GetAddressString() string
func (DirectPlcTag) GetArrayInfo ¶
func (m DirectPlcTag) GetArrayInfo() []apiModel.ArrayInfo
func (DirectPlcTag) GetValueType ¶
func (m DirectPlcTag) GetValueType() apiValues.PlcValueType
func (DirectPlcTag) MarshalXMLAttr ¶
func (DirectPlcTag) Serialize ¶
func (m DirectPlcTag) Serialize() ([]byte, error)
func (DirectPlcTag) SerializeWithWriteBuffer ¶
func (m DirectPlcTag) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
func (DirectPlcTag) String ¶
func (m DirectPlcTag) String() string
type SubscriptionEvent ¶
type SubscriptionEvent struct {
*spiModel.DefaultPlcSubscriptionEvent
}
func NewSubscriptionEvent ¶
func NewSubscriptionEvent( tags map[string]apiModel.PlcTag, types map[string]apiModel.PlcSubscriptionType, intervals map[string]time.Duration, responseCodes map[string]apiModel.PlcResponseCode, values map[string]values.PlcValue, _options ...options.WithOption, ) SubscriptionEvent
type SymbolicPlcTag ¶
func CastToSymbolicPlcTagFromPlcTag ¶
func CastToSymbolicPlcTagFromPlcTag(plcTag apiModel.PlcTag) (SymbolicPlcTag, error)
func (SymbolicPlcTag) GetAddressString ¶
func (m SymbolicPlcTag) GetAddressString() string
func (SymbolicPlcTag) GetArrayInfo ¶
func (m SymbolicPlcTag) GetArrayInfo() []apiModel.ArrayInfo
func (SymbolicPlcTag) GetValueType ¶
func (m SymbolicPlcTag) GetValueType() apiValues.PlcValueType
func (SymbolicPlcTag) Serialize ¶
func (m SymbolicPlcTag) Serialize() ([]byte, error)
func (SymbolicPlcTag) SerializeWithWriteBuffer ¶
func (m SymbolicPlcTag) SerializeWithWriteBuffer(writeBuffer utils.WriteBuffer) error
Click to show internal directories.
Click to hide internal directories.