Hi,
I need some help configuring the system block SFC20 "BLKMOV" in a S7-400 system. I want to copy DW 6 and 3 more words ,total 4 words, from DB100 to DB200. I want the first word from DB100 to end up in DW32 in DB200. There is a couple of ways to write the input parameters to the SFC20 that the S7 compiler think is OK, but I don't know which one that will do the trick. In the help text it says that both the SRCBLK & the DSTBLK is "area", but if I want to copy between datablocks I can't define DSTBLK as area, only as the start of the area. Examples: This way I can declare both source and destination as area but I can't change datablock:
OPN DB100
CALL "BLKMOV"
SRCBLK :=P#DBX 6.0 BYTE 8
RET_VAL:=#RetVal
DSTBLK :=P#DBX 32.0 BYTE 8
This way I can change datablock but the destination is then declared as the start of the destination area. What about this?
OPN DB100
CALL "BLKMOV"
SRCBLK :=P#DBX 6.0 BYTE 8
RET_VAL:=#RetVal
DSTBLK :=DB200.DBB32