MARKER SCREEN


MARKER SCREEN

The Marker Screen allows you to monitor the status of Markers.

Marker (M[ ]) is similar to flag, but the value of markers is not set directly. When Marker (M[ ]) is specified in the left side of an assignment (=) in a TP program and the statement is executed, the expressions are defined as Background Logic internally, and the expression is executed repeatedly. The marker (M[ ]) always has the result of the expression.

By default, the Marker function is disabled, the Marker menu is not displayed, and M[ ] can not be taught in TP program. To use the Marker function, set $MIX_LOGIC.$USE_MKR to TRUE.

  • When a Marker assignment statement is executed in a normal TP program, the statement is registered to Background Logic. The statement is executed as Background Logic until another expression redefines the marker. Execution of the statement does not stop even though the program is paused or aborted, because it is Background Logic.

  • By default, there are 8 markers (M[1]-M[8]). The number of markers can be changed by system variable "$MIX_LOGIC.$NUM_MARKERS". Maximum number of markers is 100. One marker takes 300bytes permanent memory pool.

  • The scanning time to calculate a marker assignment statement is the same as the scanning time of Normal mode Background Logic. Having marker assignment statements defined affects the scan time of background logic.

  • Clear the defined marker expression to stop the calculation. To clear the defined expression, execute the CLEAR operation in the Marker detail menu or execute the following line of TP program.

    M[1]=()
    

  • If a marker is not assigned to an expression and the marker is used in another statement, the "INTP-347 Read I/O value failed" error occurs when the marker value is read.

  • M[ ] cannot be specified in the left side of assignment statement in Background Logic.