Difference between revisions of "MC-Basic:ESTOKENCOUNT"

From SoftMC-Wiki
Jump to: navigation, search
m
 
(5 intermediate revisions by 2 users not shown)
Line 12: Line 12:
 
Returns number of tokens (byte-codes) executed by Interpreter since its invocation.  This command is used for diagnostics, like detection of endless loops in entry station context.<br>
 
Returns number of tokens (byte-codes) executed by Interpreter since its invocation.  This command is used for diagnostics, like detection of endless loops in entry station context.<br>
 
       1 – Ethernet<br>
 
       1 – Ethernet<br>
       2 – DPRAM<br>
+
       3 – Virtual Entry Station<br>
       3 – Virtual Entry Station<br>
 
 
       4 – Ethernet2
 
       4 – Ethernet2
  
{{Note/Important|Systems with FPGA version 8.51, firmware 4.0.0 and higher support IP-over DPRAM, hence entrystation type will be either 1 or 4.}}
 
  
 
|TYPE=
 
|TYPE=
Line 22: Line 20:
  
 
|RANGE=
 
|RANGE=
1 to 4
+
1, 3, 4
  
 
|UNITS=
 
|UNITS=
Line 50: Line 48:
  
 
|SEE ALSO=
 
|SEE ALSO=
* [[Axystems:MC-Basic:REDIRECTSTDOUT|REDIRECTSTDOUT]]
+
* [[MC-Basic:REDIRECTSTDOUT|REDIRECTSTDOUT]]
* [[Axystems:MC-Basic:GETENTRYPRIORITY|GETENTRYPRIORITY]]
+
* [[MC-Basic:GETENTRYPRIORITY|GETENTRYPRIORITY]]
* [[Axystems:MC-Basic:SETENTRYPRIORITY|SETENTRYPRIORITY]]
+
* [[MC-Basic:SETENTRYPRIORITY|SETENTRYPRIORITY]]
  
  
 
}}
 
}}

Latest revision as of 08:40, 22 May 2014

Returns number of tokens (byte-codes) executed by Interpreter since its invocation.  This command is used for diagnostics, like detection of endless loops in entry station context.
       1 – Ethernet
      3 – Virtual Entry Station
       4 – Ethernet2

Syntax

? ESTokenCount

Availability

Since Version 4.5.28

Type

Long

Range

1, 3, 4

Scope

Configuration, Task, Terminal

Limitations

Read Only.

ESTokenCount will return error 5029 ("No such device") for inactive entry station.

Examples

-->?ESTokenCount(1)

4

-->?ESTokenCount(2)

Error:  5029, "No such device.", Task: ,ESEthern0, Line: 1, Module: Entry_Station

See Also