Вы находитесь на странице: 1из 6

15

S7-300 S7-400
A5E00261410-01

15-1

15

15.1
SFC5 "GADR_LGC"


. SFC5
"GARD_LGC" (convert geographical address to logical address [
])
, .

SUBNETID

INPUT

BYTE

RACK

INPUT

WORD

I, Q, M, D, L,

SLOT

INPUT

WORD

SUBSLOT

INPUT

BYTE

I, Q, M, D, L,

I, Q, M, D, L,

SUBADDR

INPUT

WORD

RET_VAL

OUTPUT

IOID

OUTPUT

LADDR

OUTPUT

15-2

I, Q, M, D, L,

:
0, 0

( )
1 21 ( ).
DP

,

.
,

0.

,
> 0.
.

(
,
0).

INT

I, Q, M, D, L,

I, Q, M, D, L

BYTE

I, Q, M, D, L

WORD

I, Q, M, D, L

:
B#16#54: (PI)
B#16#55: (PQ)
, SFC
B#16#54.
, SFC
B#16#54
.

S7-300 S7-400
A5E00261410-01

15



(W#16#...)
0000

8094

SUBNETID.

8095

RACK.

8096

SLOT.

8097

SUBSLOT.

8098

SUBADDR.

8099

809A

8xyy

, .
RET_VAL

S7-300 S7-400
A5E00261410-01

15-3

15

15.2 ,
, SFC49 "LGC_GADR"

SFC 49 LGC_GADR (convert logical address to geographical


address [ ])
,
.

IOID

INPUT

BYTE

LADDR

INPUT

WORD

I, Q, M, D, L,

RET_VAL

OUTPUT

INT

I, Q, M, D, L

AREA

OUTPUT

BYTE

I, Q, M, D, L

I, Q, M, D, L,

:
B#16#54 = (PI)
B#16#55 = (PQ)
,

.
, B#16#54.
.

.

RACK

OUTPUT

WORD

I, Q, M, D, L

: ,

.
.

SLOT

OUTPUT

WORD

I, Q, M, D, L

SUBADDR OUTPUT

WORD

I, Q, M, D, L

AREA
AREA ,
RACK, SLOT SUBADDR (. ).
AREA

S7-400

S7-300

15-4

DP

S5 P

S5 O

S5 IM3

S5 IM4

RACK, SLOT SUBADDR


RACK:
SLOT:
SUBADDR:
.
RACK, SLOT SUBADDR
RACK:
SLOT:
SUBADDR: S5x

S7-300 S7-400
A5E00261410-01

15


(W#16#...)

0000

8090


IOID
8xyy

, .
RET_VAL

S7-300 S7-400
A5E00261410-01

15-5

15

15.3
SFC50 "RD_LGADR"

. SFC 50
RD_LGADR (read module logical addresses [
]) .
STEP 7. SFC50
PEADDR PAADDR
.

IOID

INPUT

BYTE

LADDR

INPUT

WORD

I, Q, M, D, L,

RET_VAL

OUTPUT

INT

I, Q, M, D, L,

I, Q, M, D, L

PEADDR

OUTPUT

ANY

I, Q, M, D, L

PECOUNT

OUTPUT

INT

I, Q, M, D, L

PAADDR

OUTPUT

ANY

I, Q, M, D, L

PACOUNT

OUTPUT

INT

I, Q, M, D, L

:
B#16#54: (PI)
B#16#55: (PQ)


PI,
WORD.
PI
PQ,
WORD.
PQ


(W#16#...)
0000

8090


IOID.
PEADDR:
WORD.
PAADDR:
WORD.
PEADDR:
.
PAADDR:
.

80A0
80A1
80A2
80A3
8xyy

15-6

, .
RET_VAL

S7-300 S7-400
A5E00261410-01