Difference between revisions of "MC-Basic:SYSTEM.DIN.SIM"
(this page in being built) |
m |
||
Line 1: | Line 1: | ||
− | {{Languages}} | + | {{Languages|MC-Basic:SYSTEM.DIN.SIM}} |
{{MC-Basic | {{MC-Basic | ||
|SHORT FORM= | |SHORT FORM= | ||
Line 20: | Line 20: | ||
? System.Din.sim[<''bit number''>][<''range''>] | ? System.Din.sim[<''bit number''>][<''range''>] | ||
− | '''''Note''''': if a digital input defined | + | '''''Note''''': if a digital input defined as simulated, the same syntax for a real digital input will work as well (the same as for simulated axis). |
|AVAILABILITY= | |AVAILABILITY= | ||
Line 49: | Line 49: | ||
Number of default mapped bits on softMC: 1 to 23 <br> | Number of default mapped bits on softMC: 1 to 23 <br> | ||
When working with slaves: <br> | When working with slaves: <br> | ||
− | * Syntax - '''sys. | + | * Syntax - '''sys.din.sim''<ijkl>''''' |
* '''i''' - Stands for slave number at EtharCAT/CANopen chain. | * '''i''' - Stands for slave number at EtharCAT/CANopen chain. | ||
* '''j,k,l''' - Stands for bit number at slave. | * '''j,k,l''' - Stands for bit number at slave. |
Latest revision as of 14:51, 7 October 2018
Language: | English |
---|
This property is used to define the digital input mode as simulated or real.
A simulated digital input can be written, the same as a digital output.
It works similar to the property axis.SIMULATED.
1 = simulated
0 = real
--> ?sys.din.sim.3001 ' querying slave number 3, bit number 1 status.
--> sys.din.sim.2004 = 1 ' determined slave number 2, bit number 4 to be simulated.
Short form
Sys.Din.sim
Syntax
System.Din.sim = <value>
System.Din.sim.<bit number> = <value> 'bit number can set also the specific bit at the specific slave.
System.Din.sim[<bit number>] = <value>
System.Din.sim[<bit number>][<range>] = <value>
?System.Din.sim
?System.Din.sim.<bit number>
?System.Din.sim[<bit number>]
? System.Din.sim[<bit number>][<range>]
Note: if a digital input defined as simulated, the same syntax for a real digital input 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.din.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 inputs, the property takes only a Long value.
- This property will not work with a simulated system, only real physical drives.
Examples
sys.din.sim.2001 = 1 'defines bit number 1 in slave 2 as simulated.