Data transfer to the PLC
7.2 Control program example
3WL/3VL circuit breakers with communication capability - PROFIBUS
System Manual, 03/2011, A5E01051353-02
161
Network 8
Intermediate result after entering "Call SFC13"
CALL "DPNRM_DG"
REQ :=M90.0 //Triggered by program sequence
LADDR :=W#16#7FE //Diagnostics address of the slave in HEX
RET_VAL:=MW92 //
RECORD :=P#DB20.DBX 60.0 BYTE 28
BUSY :=M91.1 //Acknowledgment read still active
Note
P#DB20.DBX 60.0 BYTE 28 represents a pointer for storing the read data:
P# = ID pointer
DB20 = data block to be used
.DBX60.0 = offset (here 60 bytes)
BYTE = ID for repetition factor type
28 = repetition factor (diagnostics length → 28 bytes)
However, this data block must first be generated!
The precise structure of the diagnostics is included in Chapter 10.
7.2.7
Sync/Unsync/Freeze/Unfreeze
General
These commands are functions that aim at any number of nodes (slaves) simultaneously.
Step 1 Call block
To call the block, type in the line "Call SFC11" with return in program code.
Note
If block SFC11 is not yet included in the block folder, it is automatically copied from the
standard library of STEP7.
Network 9
Intermediate result after entering "Call SFC11"
CALL "DPSYC_FR"
REQ :=
LADDR :=
GROUP :=
MODE :=
RET_VAL:=
BUSY :=