Sample Applications
5-3
FC 56
J31069-D0155-U001-A0-7618
5.2
Calling the FC 56 Cyclically (e.g., in OB 1)
The following program is an example of calling and scanning the FC 56 in an
application. The definition of the data structure is described in chapter 5.5.
Parameterization of the MOBY command was already covered in the definition of
the “MOBY DB.”
Baustein: OB1 cycle execution
Netzwerk: 1 call FC56
memory bit 1.0 is set: Start MOBY command for 1st SLG
memory bit 1.1 is set: Start MOBY command for 2nd SLG
memory bit 1.2 is set: Start init_run for 1st SLG
memory bit 1.3 is set: Start init_run for 2nd SLG
memory byte 2: OB1 used as edge triggered memory
x01:
x02:
CALL ”MOBY FH-MT”
Params_DB
:=56
Params_ADDR :=0
CALL ”MOBY FH-MT”
Params_DB
:=56
Params_ADDR :=300
A
M
1.2
FP
M
2.2
S
”MOBY DB”.SLG[1].init_run
JC
x01
AN
”MOBY DB”.SLG[1].ready
JC
x01
A
”MOBY DB”.SLG[1].error
JC
x01
A
M
1.0
FP
M
2.0
S
”MOBY DB”.SLG[1].command_start
A
M
1.3
FP
M
2.3
S
”MOBY DB”.SLG[2].init_run
JC
x02
AN
“MOBY DB”.SLG[2].ready
JC
x02
A
”MOBY DB”.SLG[2].error
JC
x02
A
M
1.1
FP
M
2.1
S
“MOBY DB”.SLG[2].command_start
NOP
0
//
Call FC 56 for each SLG in
each cycle
//
memory bit init_run for 1st SLG
//
memory bit command_start for
1st SLG
//
memory bit init_run for 2nd SLG
//
memory bit command_start for
2nd SLG
Summary of Contents for MOBY FC 56
Page 12: ...Introduction 1 6 FC 56 J31069 D0155 U001 A0 7618 ...
Page 63: ...5 1 FC 56 J31069 D0155 U001 A0 7618 Sample Applications 5 ...
Page 80: ...Sample Applications 5 18 FC 56 J31069 D0155 U001 A0 7618 ...
Page 90: ...Entry Exit Check of an MDS in an SLG Field 6 10 FC 56 J31069 D0155 U001 A0 7618 ...
Page 94: ...System Configuration 7 4 FC 56 J31069 D0155 U001 A0 7618 ...
Page 100: ...Commissioning Guidelines 8 6 FC 56 J31069 D0155 U001 A0 7618 ...
Page 101: ...9 1 FC 56 J31069 D0155 U001 A0 7618 Error Messages and Trouble Shooting 9 ...
Page 152: ...Programming MOBY ASM on PROFIBUS DP V1 B 30 FC 56 J31069 D0155 U001 A0 7618 ...