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

From SoftMC-Wiki
Jump to: navigation, search
Line 1: Line 1:
 +
{{Languages}}
 
{{MC-Basic
 
{{MC-Basic
 
|SHORT FORM=
 
|SHORT FORM=

Revision as of 03:24, 2 May 2017

Language: [[::MC-Basic:SYSTEM.HOSTDOUBLE|English]]  • [[::MC-Basic:SYSTEM.HOSTDOUBLE/zh-hans|中文(简体)‎]]

Read value of a Double variable in DPRAM written by the host. There are 16 general purpose Double variables available for use by the host in order to communicate information quickly to the softMC.

Short form

Sys.Hdoub

System.Hdoub

Syntax

?Sys.HostDouble[<index>]

?System.HostDouble[<index>]

Availability

All versions

Type

Double

Range

0 to ± MaxDouble
<index>: integer 1 to   8

Default

0, value of the DPRAM variable

Scope

Task or Terminal

Limitations

  • Read only
  • Not supported in EtherCAT system

Examples

val1 = System.HostDouble[12]

See Also