MC-Basic:SYSTEM.DOUT.SIM
Language: | English |
---|
This property is used to define the digital output mode as simulated or real.
It works similar to the property axis.SIMULATED.
1 = simulated
0 = real
--> ?sys.dout.sim.3001 ' querying slave number 3, bit number 1 status.
--> sys.dout.sim.2004 = 1 ' determined slave number 2, bit number 4 to be simulated.
Short form
Sys.Dout.sim
Syntax
System.Dout.sim = <value>
System.Dout.sim.<bit number> = <value> 'bit number can set also the specific bit at the specific slave.
System.Dout.sim[<bit number>] = <value>
System.Dout.sim[<bit number>][<range>] = <value>
?System.Dout.sim
?System.Dout.sim.<bit number>
?System.Dout.sim[<bit number>]
? System.Dout.sim[<bit number>][<range>]
Note: if a digital output assigned to be simulated, the same syntax for a real digital output will work as well (the same as for simulated axis).
Availability
Since version 0.4.18.2.x
Type
long
Range
Decimal: 0 to 8 388 607 (223 –1)
Hex: 0x0 to 0x7FFFFF
Number of default mapped bits on softMC: 1 to 23
When working with slaves:
- Syntax - sys.dout.sim<ijkl>
- i - Stands for slave number at EtharCAT/CANopen chain.
- j,k,l - Stands for bit number at slave.
Default
0
Scope
Configuration, Task or Terminal
Limitations
- When setting outputs, the property takes only a Long value.
- This property will not work with a simulated system, only real physical drives.
Examples
sys.dout.sim.2001 = 1 'defines bit number 1 in slave 2 as simulated.