Please enable JavaScript to view this site.

This keyword allows a variable of type STRU_INT (STRUCT_P) to be defined.

It is used by the interrupt handling instructions int_timer(), int_after(), int_inp().

It consists of the following information:

Field

Type

Description

Attributes

cntr

I32

BIT 0: If set to 0 there is continuous execution of the interrupt. If set to 1 you have one-shot execution

BIT 1: If set to 0 it uses STRU_INT.count as the interrupt counter. If set to 1 it uses STRU_INT.count as a flag by setting it to 1 every time an interrupt occurs. It is up to the user to reset STRU_INT.count to zero

Read/write

count

I32

Interrupt counter

Read/write

intTime

REAL

Time [sec] relative to the occurrence of the interrupt. This time should be compared with the system parameter synch_hw_time [microsec], which corresponds to the time of the last system synch.

WARNING: intTime is in [sec] while synch_hw_time is in [microsec]. To calculate at what time distance the interrupt occurred from the last system synch use the formula: delta_sec = intTime - (synch_hw_time * 1e-6). This formula should be used within the rule called by the interrupt, in which case it will always be: 0 < delta_sec < si

Read

maskPhoto

I32

Mask of the axes whose photos are wanted on the occurrence of the interrupt

Read/write

nrule

I32

Number of rules to be activated (it must be contained in the $ rule_time file and/or in the $ rule_inp file)

Read/write

pos[1-32]

REAL

Photographed position of axes (enabled by maskPhoto) on interrupt

Read

sts

I32

1, the data structure is used by the instructions int_timer, int_inp, int_after

2, the data structure is used by the Rule_periodic instruction

Read

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC