Difference between revisions of "MC-Basic:SYSTEM.VOUT"

From SoftMC-Wiki
Jump to: navigation, search
m (Miborich moved page Axystems:MC-Basic:SYSTEM.VOUT to MC-Basic:SYSTEM.VOUT: Global renaming of Axystems: namespace into (Main):)
m
Line 50: Line 50:
 
* [[MC-Basic:SYSTEM.VIN|SYSTEM.VIN]]
 
* [[MC-Basic:SYSTEM.VIN|SYSTEM.VIN]]
  
 
+
[[Category:MC-Basic:System|MC-Basic:System]]
 
}}
 
}}

Revision as of 14:33, 28 May 2014

SYSTEM.VOUT write or queries one or more of the 32 virtual outputs. When SYSTEM.VOUT is qualified by a bit number, only that output bit is written. SYSTEM.VOUT returns the value 1 or 0, depending on the value of the current state of the digital outputs. Virtual outputs are stored in the DPRAM and are retrieved by the Host.

Syntax

Sys.VOut{.<bit number>} = <value>

System.VOut{.<bit number>} = <value>

?Sys.VOut{.<bit number>}

?System.VOut{.<bit number>}

Availability

All versions

Type

A query returns a Double value. When setting outputs, the value is Long.

Range

0 to MaxLong  (232 –1, 0x FFFFFFFF) When a single bit is being accessed, the       argument must have the value 1 or 0.
<bit number>: 1 to 32

Scope

Configuration, Task or Terminal

Limitations

  • Not supported in EtherCAT system
  • If used as PLS output, the behavior is undefined
  • DPRAM exists only in SERCOS II version of Motion controller.

Examples

System.VOut = MyVar        ‘MyVar is written to the output word

SYstem.VOut.3 = MyVar    ‘MyVar is written to output bit number 3 and must have a value of 0 or 1

See Also