Documentation
¶
Index ¶
- Constants
- Variables
- func DataBuild(tp DataTypes, data []byte, padded bool) []byte
- func LogicalBuild(tp LogicalType, address uint32, padded bool) []byte
- func Paths(arg ...[]byte) []byte
- func PortBuild(link []byte, portID uint16, padded bool) []byte
- type Controller
- type DataType
- type DataTypes
- type LogicalType
- type SegmentType
- type Tag
- type TagMap
- type UnConnectedSend
Constants ¶
View Source
const ReplyTooLarge typedef.Usint = 0x06
View Source
const ServiceReadFragmentedTag = 0x52
View Source
const ServiceReadTag = 0x4c
View Source
const ServiceWriteTag = 0x4d
Variables ¶
View Source
var TypeMap map[DataType]reflect.Kind
Functions ¶
func LogicalBuild ¶
func LogicalBuild(tp LogicalType, address uint32, padded bool) []byte
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewControllerFromClient ¶
func NewControllerFromClient(device *eip.Device, slot uint8) *Controller
func NewControllerFromIP ¶
func (*Controller) AllTags ¶
func (c *Controller) AllTags() (TagMap, error)
func (*Controller) GetAttributeAll ¶
func (c *Controller) GetAttributeAll() error
func (*Controller) SetTimeout ¶
func (c *Controller) SetTimeout(timeTicks typedef.Usint, timeoutTicks typedef.Usint)
func (*Controller) UCMM ¶
func (c *Controller) UCMM(mrr *eip.MessageRouterRequest) (*eip.SendDataSpecificData, error)
type LogicalType ¶
const ( LogicalTypeClassID LogicalType = 0 << 2 LogicalTypeInstanceID LogicalType = 1 << 2 LogicalTypeMemberID LogicalType = 2 << 2 LogicalTypeConnPoint LogicalType = 3 << 2 LogicalTypeAttributeID LogicalType = 4 << 2 LogicalTypeSpecial LogicalType = 5 << 2 LogicalTypeServiceID LogicalType = 6 << 2 )
type SegmentType ¶
const ( SegmentTypePort SegmentType = 0 << 5 SegmentTypeLogical SegmentType = 1 << 5 SegmentTypeNetwork SegmentType = 2 << 5 SegmentTypeSymbolic SegmentType = 3 << 5 SegmentTypeData SegmentType = 4 << 5 SegmentTypeDataType1 SegmentType = 5 << 5 SegmentTypeDataType2 SegmentType = 6 << 5 )
type Tag ¶
type Tag struct {
InstanceID uint32
Name string
Type DataType
Onchange func()
// contains filtered or unexported fields
}
func (*Tag) ReadParser ¶
type UnConnectedSend ¶
type UnConnectedSend struct {
TimeTick typedef.Usint
TimeOutTicks typedef.Usint
MessageRequestSize typedef.Uint
MessageRequest *eip.MessageRouterRequest
Pad typedef.Usint
RouterPathSize typedef.Usint
Reserved typedef.Usint
RouterPath []byte
}
func (*UnConnectedSend) Encode ¶
func (u *UnConnectedSend) Encode() []byte
Click to show internal directories.
Click to hide internal directories.