.

SqNodeSegment.UserData

A set of bytes reserved for user use.

When reading UserData, the size of the array returned will be equal to the SqNodeSegment.UserDataSizeMax property, no matter how many elements were specified when UserData was set.

When setting UserData, unspecified end elements will be initialized to zero,
This property is saved to the SynqNet node segment’s non-volatile memory.

Version History

Introduced in MPX 2.0.

Type

Array of Bytes

Visual Basic

Syntax

Property UserData As Variant

Sample Code

 

Example 1
x = Controller.SqNode(3).SqNodeSegment(1).UserData

Example 2
Dim RobotIoSegment As MPXCtl.SqNodeSegment
Set RobotIoSegment = Controller.SqNode(3).SqNodeSegment(1)

x = RobotIoSegment.UserData

Example 3
Dim RobotIoSegment As MPXCtl.SqNodeSegment
Set RobotIoSegment = Controller.SqNode(3).SqNodeSegment(1)

RobotIoSegment.DigitalIn(0, 8) = Array(CByte(1), CByte(2), CByte(3))


Sample Application

 

C#

Syntax

 

 

Sample Code

 

See Also

UserDataSizeMax

SqNode Object
UserData
UserDataSizeMax

 

       Legal Notice  |  Tech Email  |  Feedback
      
Copyright ©
2001-2021 Motion Engineering