23.03.2017 Views

wilamowski-b-m-irwin-j-d-industrial-communication-systems-2011

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Communication Aspects of IEC 61499 Architecture 55-5<br />

START<br />

RUNSTOP<br />

COLD<br />

WARM<br />

STOP<br />

E_RESTART<br />

“RUN”<br />

“STOP”<br />

INIT INITO<br />

REQ CNF<br />

IND<br />

SWITCH2<br />

QI QO<br />

LABEL1 OUT<br />

LABEL0<br />

IN<br />

RS_GATE<br />

EI EO0<br />

EO1<br />

E_SWITCH<br />

G<br />

DT<br />

INIT INITO<br />

REQ IND<br />

PERIODIC<br />

START EO<br />

STOP<br />

E_CYCLE<br />

DT<br />

LOGIC<br />

INIT INITO<br />

NEW CNF<br />

REQ CR<br />

LIGHTS<br />

MODE LED3<br />

LED2<br />

LEDS<br />

INIT INITO<br />

REQ CNF<br />

LEDS4<br />

LED3<br />

LED2<br />

KNOB<br />

1 QI QO<br />

W OUT<br />

“TIME”<br />

t#250ms<br />

TYPE<br />

IVAL<br />

MODE<br />

INIT INITO<br />

REQ IND<br />

SWITCH3<br />

LED1<br />

LED0<br />

BITN<br />

LED1<br />

LED0<br />

C0<br />

C1<br />

1<br />

QI<br />

QO<br />

“ALL, CHASE_UP, CHASE_DOWN”<br />

CHOICES<br />

OUT<br />

I<br />

Controller<br />

START STOP TIME MODE<br />

ALL<br />

CHS_UP<br />

LED3<br />

CHS_DOWN LED2 LED1 LED0<br />

FIGURE 55.2<br />

between them.<br />

FB diagram shows the distribution of functionalities between blocks and event and data flow<br />

LOGIC<br />

LEDS<br />

This block contains the control logic of the system. Given the current operation mode (as<br />

a number at the MODE data input), it produces a new combination of four values at the<br />

LED0 … LED3 data outputs upon the input event REQ<br />

Interface to the LEDs. Upon receiving the REQ input event refreshes the LEDs with the<br />

values of the LED0 … LED3 data inputs<br />

Besides, there are three more service FBs:<br />

START<br />

RS_GATE<br />

PERIODIC<br />

Emits an event at its COLD event output upon physical restart of the device executing<br />

this application<br />

Trigger, emitting events corresponding to START and STOP commands of the start/stop<br />

switch<br />

Upon activation by the start event generates events periodically with the frequency determined<br />

by its DT data input. In our application, this event is connected to the LOGIC FB<br />

causing the next lights pattern generation<br />

The IEC 61499 FBs are great for fast prototyping and simulation. Thus, in order to test the control<br />

logic, the developer can substitute interfaces to physical peripherals by instances of FB types that emulate<br />

those peripherals using human–machine interface elements, as illustrated in Figure 55.3. As long as<br />

the interfaces of two FB types are the same, this operation is very simple and preserves the structure of<br />

interblock connections.<br />

Thus, the RUNSTOP FB is now implemented using the RADIO_BOOL FB type that creates and<br />

listens to the radio button element with two values: RUN and STOP. As a result of the FB-type substitution,<br />

the application logic can be initially tested without having the peripherals connected. The reverse<br />

substitution will produce the fully deployable application.<br />

© <strong>2011</strong> by Taylor and Francis Group, LLC

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!