Control Of Events - HEIDENHAIN iTNC 530 HSCI Technical Manual

Hide thumbs Also See for iTNC 530 HSCI:
Table of Contents

Advertisement

9.12.2 Control of events

List of events
Example
1836
The parallel processes can make events available to one another. This saves
processing time otherwise spent in the constant interrogating of operating
states by the individual processes. A special feature of event control is the
waiting period, during which the process can "sleep" for a programmed time.
With this function you can repeat program sections in a slow time grid, for
example for display or monitoring functions.
In the OEM.SYS file, enter the command PLCEVENTS= to enter the complete
name of an ASCII file in which you define the events. The entries in the event
file are listed line by line with the following syntax:
<Job name> ; <condition> ; <event mask>; [comment]
Event
Function
<Job name>
This name is identical with the label specified with
the spawn command. The iTNC evaluates only the
first 16 characters.
<Condition>
Logical expression in accordance with the C
language convention, identical with the syntax used
in function FN20 (see "Data transfer PLC > NC
program (Q-parameters)" on page 1714).
Operand: M/I/O/T/C/B/W/D with a number that is
permissible for this type
Condition:
== Equal to
!= or <> Not equal to
< Less than
> Greater than
<= Less than or equal to
>= Greater than or equal to
If you enter no condition, the interruption will
continue until the operand = 0.
<Event mask>
Hexadecimally coded mask of events that are
triggered if the condition is fulfilled. The constraints
defined in Module 9260 apply for bits 16 to 31.
Entry in the OEM.SYS file:
PLCEVENTS=PLC:\EXAMPLE.PEV
Content of the file PLC:\EXAMPLE.PEV:
JOB_1;I5==1;$0010; Event $0010 to process JOB_1, if I5==1
JOB_1;B20==5;$0004; Event $0004 to process JOB_1, if B20==5
AUXJOB;W6 <10;$0100; Event $0100 to process AUXJOB, if W6 <10
The iTNC triggers an event if a particular condition is met after one run of the
cyclic PLC program and if this condition was not met after the previous run of
the cyclic PLC program (edge formation). The number of events of this type
that can be activated simultaneously is limited to 15.
HEIDENHAIN Technical Manual iTNC 530 HSCI

Advertisement

Table of Contents
loading

Table of Contents