beautypg.com

Baumer GK473 User Manual

Page 15

background image

Manual_GK473_S7_Profibus_EN.doc 15/32

Baumer IVO GmbH & Co. KG

04.05.11

Villingen-Schwenningen,

Germany


3.5 Store, compile and load

Select „Store and compile“ in HW config to load the hardware configuration into the PLC. This has to
be done after ANY modification in the hardware configuration.

3.6 Organization block OB1

Create a master program as described in the following.

After polling operation of the key for clearing the status-LEDs of OB82 and OB86 the program will
consistently read according to label NOCL the 16 bytes input data into data block DB10 by help of
function SFC14. These are messages of the gateway respectively of the spindle position displays
(SPAs).

Next step is output of the 16 Bit output data by help of function SFC15 of data block DB11 for
consistent transfer to the gateway. The output data imply the commands to the gateway respectively
SPA.

The end of OB1 operates a 16 bit binary counter serving as trigger of the 16 LEDs of the output
module at identifiers 6 and 7. This way a cyclic processing of OB1 is verified.

The organization block OB1 is continuously operated in a cyclic way, reason why data are always
transferred in the same way. The gateway will only consider a transfer as relevant (new) if the count
byte (first byte of a data block) has been altered (refer to manual GK473). Filling respectively
evaluation of the data blocks is not considered in this example.