beautypg.com

Fb212: read in individual measured values – VEGA VEGACOM 557 Profibus FMS User Manual

Page 41

background image

VEGACOM 557 Profibus FMS

41

Setup

FB212: Read in individual measured values

With this functional component, an individual measured value is read in. Saving is done in the
stated data component beginning from data word offset.

Important information:

The interface number and the order number must be adapted to your application, if neces-
sary. These values relate to the values set in the CP connection planning.

Call:

The functional component must be called up in each program cycle.

:SPA FB 212

Name :R-MW

MWNR : MW 30

meas. value no. (Index) = 1...256

DB : MW 32

data component for file

OFFS : MW 34

Offset in data component

STAT : MW 50

Status, return value

Status :

0000

= OK

0080 = MWNR Error, unvalid meas. value no.

00FF = No. reading order passed to CP

Listing

FB 212 C:[email protected] LAE=142

Blatt 1

Network 1 0000

Name :R-MW

Bez :MWNR E/A/D/B/T/Z: E BI/BY/W/D: W

Bez :DB E/A/D/B/T/Z: E BI/BY/W/D: W

Bez :OFFS E/A/D/B/T/Z: E BI/BY/W/D: W

Bez :STAT E/A/D/B/T/Z: A BI/BY/W/D: W

0022 : ————— Parameter —————

0024 : MWNR: meas. value no. = 1..256

0026 : DB : Aim data component

0028 : OFFS: Offset in aim DB

002A : return : STAT : 0000 = OK

002C : 00FF = not processed

002E : 0080 = MWNR Error

0030 : ————————————————

0032 :A DB 240 Operating-component

0034 :

0036 :O M 0.0

0038 :ON M 0.0

003A :SPA FB 247

003C Name :CONTROL

003E SSNR : KY 0,0

interface number = 0

0040 A-NR : KY 0,1

order number = 1

0042 ANZW : MW 2

0044 PAFE : MB 255

0046 :

0048 :U M 3.1

004A :SPB =M1 Order run

004C :

004E :