.

SqNode.IoWaitMax

The maximum amount of time between when the output bit is set on the controller via MPX and when the hardware state takes effect. See the "Output Waits" section.

Version History

Introduced in MPX 2.0.

Units

Seconds

Type

Double (read only)

Visual Basic

Syntax

Property IoWaitMax As Double

Sample Code

 
Dim sqNode As Mpx.SqNode = Controller.SynqNet(0).Node(0)

'Set the output bit value immediately without waiting for
'the hardware state to change.
sqNode.DigitalOutWait = False
sqNode.DigitalOutBit(0) = True

'Wait until the hardware state changes. IoWaitMax is in
'seconds and Sleep is in milliseconds.
System.Threading.Thread.Sleep(sqNode.IoWaitMax * 1000.0)


Sample Application

 

C#

Syntax

double IoWaitMax;

Sample Code

 
Mpx.SqNode sqNode = Controller.SynqNet[0].Node[0];

// Set the output bit value immediately without
// waiting for the hardware state to change.
sqNode.DigitalOutWait = false;
sqNode.DigitalOutBit[0] = true;

// Wait until the hardware state changes. IoWaitMax
// is in seconds and Sleep is in milliseconds.
int delay = (int)(sqNode.IoWaitMax * 1000.0);
System.Threading.Thread.Sleep(delay);

 

See Also

DigitalOutBit
DigitalOutSet

"Output Waits" section on the Overview of MPX I/O

 

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