Download IOPT Tools User Manual - GRES

Transcript
2 Introduction to IOPT Petri Nets
The IOPT class [1], derived from the Place-Transition low level Petri net class [2], employs the
standard Petri net Places, Transitions and Arcs. In addition, IOPT nets also allow the definition of
input Signals, output Signals, input Events, output Events and Arrays containing tables of data.
Input signals are used to obtain information from the external world, for instance to read the state of
sensors, read user interface buttons, or read signals from other systems. Output signals may be used
to manipulate mechanical actuators, illuminate LEDs to create user interfaces or send information to
other systems. A digital signal is represented by a Boolean value and an analog signal is represented
by an Integer range value.
Events are usually associated with changes in signal values. Input Events are triggered by changes
in input Signals and output Events will cause changes in output Signals. An IOPT controller might
wait for specific input Events and react accordingly, by changing the value of output Signals.
Complex systems can be implemented using several IOPT sub-systems communicating with each
other by the means of Signals and Events. A sub-type of input Events, called autonomous Events,
not associated with any input Signal, are used exclusively for inter-subsystem communication.
Figure 2 presents an example model used to implement a quadrature decoder hardware component.
This model interprets a sequence of digital electrical pulses on two input signals, channel A and
channel B, used to encode the position of a moving mechanical part, as the rotor of an electrical
motor, a rotary button or even the ball of a computer mouse. Pulse frequency is proportional to the
movement speed and the signal precedence, i.e. changes in channel A happen before B, or B before
A, define the movement direction. By counting all pulses and the respective direction, the model
can track the movement of the physical device connected to a quadrature encoder.
Fig. 2: IOPT Model - Quadrature decoder
IOPT Tools user manual
3