MC-Basic:SYSTEM.LED
Language: | English • 中文(简体) |
---|
This property controls (turn on/off) the three general purpose LEDs. If SYSTEM.LED is qualified by a <value>, then only that LED is written and the value must be 0 or 1. When queried, the return value corresponds to the current state of the LED(s).
Syntax
Sys.Led{.<led number>} = <value>
System.Led{.<led number>} = <value>
?Sys.Led{.<led number>}
?System.Led{.<led number>}
Availability
Version 3.0 and higher; PCI and Standalone only
Type
A query returns a Long value.
Range
<led number>: 1 to 3
<value>: 0 to 7
Scope
Configuration, Task or Terminal
Limitations
- When setting the LEDs, the property takes only a Long value
- Not supported in EtherCAT system
Examples
System.LED = 5 'LED #s 1 & 3 are turned ON, LED # 2 is turned OFF
System.LED.1 = MyVar 'The variable 'MyVar' is written to LED # 1. 'MyVar' must have a value of 0 or 1 only.